mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
Breaking change: On `AnimationPlayer.setPosition` the argument is now of type `number` PR Close #49407
This commit is contained in:
committed by
Dylan Hunn
parent
9bd9a11f4e
commit
40ed152d21
@@ -123,7 +123,7 @@ export interface AnimationPlayer {
|
||||
play(): void;
|
||||
reset(): void;
|
||||
restart(): void;
|
||||
setPosition(position: any /** TODO #9100 */): void;
|
||||
setPosition(position: number): void;
|
||||
readonly totalTime: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1598,7 +1598,7 @@ export class TransitionAnimationPlayer implements AnimationPlayer {
|
||||
!this.queued && this._player.reset();
|
||||
}
|
||||
|
||||
setPosition(p: any): void {
|
||||
setPosition(p: number): void {
|
||||
if (!this.queued) {
|
||||
this._player.setPosition(p);
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ export interface AnimationPlayer {
|
||||
* Sets the position of the animation.
|
||||
* @param position A 0-based offset into the duration, in milliseconds.
|
||||
*/
|
||||
setPosition(position: any /** TODO #9100 */): void;
|
||||
setPosition(position: number): void;
|
||||
/**
|
||||
* Reports the current position of the animation.
|
||||
* @returns A 0-based offset into the duration, in milliseconds.
|
||||
|
||||
Reference in New Issue
Block a user