(animation: any)
| 1164 | } |
| 1165 | |
| 1166 | public animate(animation: any): AnimationPromise { |
| 1167 | const animationInstance = this.createAnimation(animation); |
| 1168 | const promise = animationInstance.play(); |
| 1169 | (promise as AnimationPromise).cancel = () => animationInstance.cancel(); |
| 1170 | return promise as AnimationPromise; |
| 1171 | } |
| 1172 | |
| 1173 | public createAnimation(animation: any): Animation { |
| 1174 | if (!this._localAnimations) { |
no test coverage detected