refactor(platform-browser): move platform-browser/animations to animations/browser (#15130)
Closes: #15130
This commit is contained in:

committed by
Chuck Jazdzewski

parent
221899a930
commit
0aad270267
@ -19,8 +19,9 @@ const entrypoints = [
|
||||
'dist/packages-dist/http/typings/http.d.ts', 'dist/packages-dist/http/typings/testing/index.d.ts',
|
||||
'dist/packages-dist/forms/typings/forms.d.ts', 'dist/packages-dist/router/typings/router.d.ts',
|
||||
'dist/packages-dist/animations/typings/animations.d.ts',
|
||||
'dist/packages-dist/platform-browser/typings/animations/index.d.ts',
|
||||
'dist/packages-dist/platform-browser/typings/animations/testing/index.d.ts'
|
||||
'dist/packages-dist/animations/typings/browser/index.d.ts',
|
||||
'dist/packages-dist/animations/typings/browser/testing/index.d.ts',
|
||||
'dist/packages-dist/platform-browser/typings/animations/index.d.ts'
|
||||
];
|
||||
|
||||
const publicApiDir = 'tools/public_api_guard';
|
||||
|
7
tools/public_api_guard/animations/typings/browser/index.d.ts
vendored
Normal file
7
tools/public_api_guard/animations/typings/browser/index.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
/** @experimental */
|
||||
export declare abstract class AnimationDriver {
|
||||
abstract animate(element: any, keyframes: {
|
||||
[key: string]: string | number;
|
||||
}[], duration: number, delay: number, easing: string, previousPlayers?: any[]): any;
|
||||
static NOOP: AnimationDriver;
|
||||
}
|
27
tools/public_api_guard/animations/typings/browser/testing/index.d.ts
vendored
Normal file
27
tools/public_api_guard/animations/typings/browser/testing/index.d.ts
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
/** @experimental */
|
||||
export declare class MockAnimationDriver implements AnimationDriver {
|
||||
animate(element: any, keyframes: {
|
||||
[key: string]: string | number;
|
||||
}[], duration: number, delay: number, easing: string, previousPlayers?: any[]): MockAnimationPlayer;
|
||||
static log: AnimationPlayer[];
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class MockAnimationPlayer extends NoopAnimationPlayer {
|
||||
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[]);
|
||||
destroy(): void;
|
||||
finish(): void;
|
||||
}
|
@ -1,11 +1,3 @@
|
||||
/** @experimental */
|
||||
export declare abstract class AnimationDriver {
|
||||
abstract animate(element: any, keyframes: {
|
||||
[key: string]: string | number;
|
||||
}[], duration: number, delay: number, easing: string, previousPlayers?: any[]): any;
|
||||
static NOOP: AnimationDriver;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class BrowserAnimationsModule {
|
||||
}
|
||||
|
Reference in New Issue
Block a user