2017-02-28 20:49:37 -05:00
|
|
|
/** @experimental */
|
|
|
|
export declare class MockAnimationDriver implements AnimationDriver {
|
|
|
|
animate(element: any, keyframes: {
|
|
|
|
[key: string]: string | number;
|
|
|
|
}[], duration: number, delay: number, easing: string, previousPlayers?: any[]): MockAnimationPlayer;
|
2017-04-26 13:44:28 -04:00
|
|
|
computeStyle(element: any, prop: string, defaultValue?: string): string;
|
2017-02-28 20:49:37 -05:00
|
|
|
static log: AnimationPlayer[];
|
|
|
|
}
|
|
|
|
|
|
|
|
/** @experimental */
|
|
|
|
export declare class MockAnimationPlayer extends NoopAnimationPlayer {
|
2017-04-26 13:44:28 -04:00
|
|
|
currentSnapshot: ɵStyleData;
|
2017-02-28 20:49:37 -05:00
|
|
|
delay: number;
|
|
|
|
duration: number;
|
|
|
|
easing: string;
|
|
|
|
element: any;
|
|
|
|
keyframes: {
|
|
|
|
[key: string]: string | number;
|
|
|
|
}[];
|
|
|
|
previousPlayers: any[];
|
|
|
|
previousStyles: {
|
|
|
|
[key: string]: string | number;
|
|
|
|
};
|
|
|
|
constructor(element: any, keyframes: {
|
|
|
|
[key: string]: string | number;
|
|
|
|
}[], duration: number, delay: number, easing: string, previousPlayers: any[]);
|
2017-04-26 13:44:28 -04:00
|
|
|
beforeDestroy(): void;
|
2017-02-28 20:49:37 -05:00
|
|
|
destroy(): void;
|
|
|
|
finish(): void;
|
2017-04-26 13:44:28 -04:00
|
|
|
hasStarted(): boolean;
|
|
|
|
play(): void;
|
2017-02-28 20:49:37 -05:00
|
|
|
}
|