UNPKG

2.52 kBJavaScriptView Raw
1var __extends = (this && this.__extends) || (function () {
2 var extendStatics = Object.setPrototypeOf ||
3 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5 return function (d, b) {
6 extendStatics(d, b);
7 function __() { this.constructor = d; }
8 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9 };
10})();
11import { Animation } from '../animations/animation';
12/**
13 * @hidden
14 *
15 * - play
16 * - Add before classes - DOM WRITE
17 * - Remove before classes - DOM WRITE
18 * - Add before inline styles - DOM WRITE
19 * - set inline FROM styles - DOM WRITE
20 * - RAF
21 * - read toolbar dimensions - DOM READ
22 * - write content top/bottom padding - DOM WRITE
23 * - set css transition duration/easing - DOM WRITE
24 * - RAF
25 * - set inline TO styles - DOM WRITE
26 */
27var Transition = (function (_super) {
28 __extends(Transition, _super);
29 /**
30 * @param {?} plt
31 * @param {?} enteringView
32 * @param {?} leavingView
33 * @param {?} opts
34 */
35 function Transition(plt, enteringView, leavingView, opts) {
36 var _this = _super.call(this, plt, null, opts) || this;
37 _this.enteringView = enteringView;
38 _this.leavingView = leavingView;
39 return _this;
40 }
41 /**
42 * @return {?}
43 */
44 Transition.prototype.init = function () { };
45 /**
46 * @param {?} trnsStart
47 * @return {?}
48 */
49 Transition.prototype.registerStart = function (trnsStart) {
50 this._trnsStart = trnsStart;
51 };
52 /**
53 * @return {?}
54 */
55 Transition.prototype.start = function () {
56 this._trnsStart && this._trnsStart();
57 this._trnsStart = null;
58 // bubble up start
59 this.parent && this.parent.start();
60 };
61 /**
62 * @return {?}
63 */
64 Transition.prototype.destroy = function () {
65 _super.prototype.destroy.call(this);
66 this.parent = this.enteringView = this.leavingView = this._trnsStart = null;
67 };
68 return Transition;
69}(Animation));
70export { Transition };
71function Transition_tsickle_Closure_declarations() {
72 /** @type {?} */
73 Transition.prototype._trnsStart;
74 /** @type {?} */
75 Transition.prototype.parent;
76 /** @type {?} */
77 Transition.prototype.trnsId;
78 /** @type {?} */
79 Transition.prototype.enteringView;
80 /** @type {?} */
81 Transition.prototype.leavingView;
82}
83//# sourceMappingURL=transition.js.map
\No newline at end of file