1 | var __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 | })();
|
11 | import { Animation } from '../animations/animation';
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | var Transition = (function (_super) {
|
28 | __extends(Transition, _super);
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
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 |
|
43 |
|
44 | Transition.prototype.init = function () { };
|
45 | |
46 |
|
47 |
|
48 |
|
49 | Transition.prototype.registerStart = function (trnsStart) {
|
50 | this._trnsStart = trnsStart;
|
51 | };
|
52 | |
53 |
|
54 |
|
55 | Transition.prototype.start = function () {
|
56 | this._trnsStart && this._trnsStart();
|
57 | this._trnsStart = null;
|
58 |
|
59 | this.parent && this.parent.start();
|
60 | };
|
61 | |
62 |
|
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));
|
70 | export { Transition };
|
71 | function Transition_tsickle_Closure_declarations() {
|
72 |
|
73 | Transition.prototype._trnsStart;
|
74 |
|
75 | Transition.prototype.parent;
|
76 |
|
77 | Transition.prototype.trnsId;
|
78 |
|
79 | Transition.prototype.enteringView;
|
80 |
|
81 | Transition.prototype.leavingView;
|
82 | }
|
83 |
|
\ | No newline at end of file |