(animationDefinitions: Array<AnimationDefinition>, playSequentially?: boolean)
| 26 | private _reject; |
| 27 | |
| 28 | constructor(animationDefinitions: Array<AnimationDefinition>, playSequentially?: boolean) { |
| 29 | if (!animationDefinitions || animationDefinitions.length === 0) { |
| 30 | console.error('No animation definitions specified'); |
| 31 | return; |
| 32 | } |
| 33 | |
| 34 | if (Trace.isEnabled()) { |
| 35 | Trace.write('Analyzing ' + animationDefinitions.length + ' animation definitions...', Trace.categories.Animation); |
| 36 | } |
| 37 | |
| 38 | this._propertyAnimations = new Array<PropertyAnimation>(); |
| 39 | for (let i = 0, length = animationDefinitions.length; i < length; i++) { |
| 40 | if (animationDefinitions[i].curve) { |
| 41 | animationDefinitions[i].curve = this._resolveAnimationCurve(animationDefinitions[i].curve); |
| 42 | } |
| 43 | this._propertyAnimations = this._propertyAnimations.concat(AnimationBase._createPropertyAnimations(animationDefinitions[i])); |
| 44 | } |
| 45 | |
| 46 | if (this._propertyAnimations.length === 0) { |
| 47 | if (Trace.isEnabled()) { |
| 48 | Trace.write('Nothing to animate.', Trace.categories.Animation); |
| 49 | } |
| 50 | return; |
| 51 | } |
| 52 | if (Trace.isEnabled()) { |
| 53 | Trace.write('Created ' + this._propertyAnimations.length + ' individual property animations.', Trace.categories.Animation); |
| 54 | } |
| 55 | |
| 56 | this._playSequentially = playSequentially; |
| 57 | } |
| 58 | |
| 59 | abstract _resolveAnimationCurve(curve: any): any; |
| 60 |
nothing calls this directly
no test coverage detected