ionic-angular
Version:
A powerful framework for building mobile and progressive web apps with JavaScript and Angular 2
79 lines • 2.26 kB
JavaScript
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
import { Animation } from '../animations/animation';
/**
*
* - play
* - Add before classes - DOM WRITE
* - Remove before classes - DOM WRITE
* - Add before inline styles - DOM WRITE
* - set inline FROM styles - DOM WRITE
* - RAF
* - read toolbar dimensions - DOM READ
* - write content top/bottom padding - DOM WRITE
* - set css transition duration/easing - DOM WRITE
* - RAF
* - set inline TO styles - DOM WRITE
*/
export var Transition = (function (_super) {
__extends(Transition, _super);
/**
* @param {?} plt
* @param {?} enteringView
* @param {?} leavingView
* @param {?} opts
*/
function Transition(plt, enteringView, leavingView, opts) {
_super.call(this, plt, null, opts);
this.enteringView = enteringView;
this.leavingView = leavingView;
}
/**
* @return {?}
*/
Transition.prototype.init = function () { };
/**
* @param {?} trnsStart
* @return {?}
*/
Transition.prototype.registerStart = function (trnsStart) {
this._trnsStart = trnsStart;
};
/**
* @return {?}
*/
Transition.prototype.isRoot = function () {
return !this.parent;
};
/**
* @return {?}
*/
Transition.prototype.start = function () {
this._trnsStart && this._trnsStart();
this._trnsStart = null;
};
/**
* @return {?}
*/
Transition.prototype.destroy = function () {
_super.prototype.destroy.call(this);
this.parent = this.enteringView = this.leavingView = this._trnsStart = null;
};
return Transition;
}(Animation));
function Transition_tsickle_Closure_declarations() {
/** @type {?} */
Transition.prototype._trnsStart;
/** @type {?} */
Transition.prototype.parent;
/** @type {?} */
Transition.prototype.trnsId;
/** @type {?} */
Transition.prototype.enteringView;
/** @type {?} */
Transition.prototype.leavingView;
}
//# sourceMappingURL=transition.js.map