class MockAnimationPlayer extends NoopAnimationPlayer {
constructor(element: any, keyframes: ɵStyleDataMap[], duration: number, delay: number, easing: string, previousPlayers: any[])
previousStyles: ɵStyleDataMap
currentSnapshot: ɵStyleDataMap
element: any
keyframes: Array<ɵStyleDataMap>
duration: number
delay: number
easing: string
previousPlayers: any[]
reset()
finish(): void
destroy(): void
play(): void
hasStarted()
beforeDestroy()
// inherited from animations/NoopAnimationPlayer
constructor(duration: number = 0, delay: number = 0)
parentPlayer: AnimationPlayer | null
totalTime: number
onStart(fn: () => void): void
onDone(fn: () => void): void
onDestroy(fn: () => void): void
hasStarted(): boolean
init(): void
play(): void
pause(): void
restart(): void
finish(): void
destroy(): void
reset(): void
setPosition(position: number): void
getPosition(): number
}
Constructor
constructor(element: any, keyframes: ɵStyleDataMap[], duration: number, delay: number, easing: string, previousPlayers: any[]) Parameters element | any | | keyframes | ɵStyleDataMap[] | | duration | number | | delay | number | | easing | string | | previousPlayers | any[] | | |
Properties
Property | Description |
previousStyles: ɵStyleDataMap | |
currentSnapshot: ɵStyleDataMap | |
element: any | Declared in Constructor |
keyframes: Array<ɵStyleDataMap> | Declared in Constructor |
duration: number | Declared in Constructor |
delay: number | Declared in Constructor |
easing: string | Declared in Constructor |
previousPlayers: any[] | Declared in Constructor |
Methods
reset() |
reset() Parameters There are no parameters. |
finish() |
finish(): void Parameters There are no parameters. Returns void |
destroy() |
destroy(): void Parameters There are no parameters. Returns void |
play() |
play(): void Parameters There are no parameters. Returns void |
hasStarted() |
hasStarted() Parameters There are no parameters. |
beforeDestroy() |
beforeDestroy() Parameters There are no parameters. |