You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

59 lines
1.8 KiB

/**
* @license Angular v12.2.16
* (c) 2010-2021 Google LLC. https://angular.io/
* License: MIT
*/
import { AnimationDriver } from '@angular/animations/browser';
import { AnimationPlayer } from '@angular/animations';
import { NoopAnimationPlayer } from '@angular/animations';
import { ɵStyleData } from '@angular/animations';
/**
* @publicApi
*/
export declare class MockAnimationDriver implements AnimationDriver {
static log: AnimationPlayer[];
validateStyleProperty(prop: string): boolean;
matchesElement(element: any, selector: string): boolean;
containsElement(elm1: any, elm2: any): boolean;
query(element: any, selector: string, multi: boolean): any[];
computeStyle(element: any, prop: string, defaultValue?: string): string;
animate(element: any, keyframes: {
[key: string]: string | number;
}[], duration: number, delay: number, easing: string, previousPlayers?: any[]): MockAnimationPlayer;
}
/**
* @publicApi
*/
export declare class MockAnimationPlayer extends NoopAnimationPlayer {
element: any;
keyframes: {
[key: string]: string | number;
}[];
duration: number;
delay: number;
easing: string;
previousPlayers: any[];
private __finished;
private __started;
previousStyles: {
[key: string]: string | number;
};
private _onInitFns;
currentSnapshot: ɵStyleData;
constructor(element: any, keyframes: {
[key: string]: string | number;
}[], duration: number, delay: number, easing: string, previousPlayers: any[]);
reset(): void;
finish(): void;
destroy(): void;
play(): void;
hasStarted(): boolean;
beforeDestroy(): void;
}
export { }
//# sourceMappingURL=testing.d.ts.map