class
final
class MockAnimationPlayer extends NoopAnimationPlayer { constructor(element: any, keyframes: { [key: string]: string | number; }[], duration: number, delay: number, easing: string, previousPlayers: any[]) previousStyles: {...} currentSnapshot: ɵStyleData element: any keyframes: {...} duration: number delay: number easing: string previousPlayers: any[] override onInit(fn: () => any) init() reset() finish(): void destroy(): void triggerMicrotask() 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 }
Property | Description |
---|---|
previousStyles: {
[key: string]: string | number;
} | |
currentSnapshot: ɵStyleData | |
element: any | Declared in Constructor |
keyframes: {
[key: string]: string | number;
}[] | Declared in Constructor |
duration: number | Declared in Constructor |
delay: number | Declared in Constructor |
easing: string | Declared in Constructor |
previousPlayers: any[] | Declared in Constructor |
override |
onInit() | |||
---|---|---|---|
|
fn | () => any |
init() |
---|
|
reset() |
---|
|
finish() |
---|
|
destroy() |
---|
|
triggerMicrotask() |
---|
|
play() |
---|
|
hasStarted() |
---|
|
beforeDestroy() |
---|
|
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/api/animations/browser/testing/MockAnimationPlayer