chore(animations/aot): always export NoOpAnimationDriver (#13480)
This commit is contained in:
parent
aa40366a92
commit
fd8e15b15d
@ -10,7 +10,10 @@ import {AnimationPlayer} from '@angular/core';
|
|||||||
|
|
||||||
import {AnimationKeyframe, AnimationStyles, NoOpAnimationPlayer} from '../private_import_core';
|
import {AnimationKeyframe, AnimationStyles, NoOpAnimationPlayer} from '../private_import_core';
|
||||||
|
|
||||||
class _NoOpAnimationDriver implements AnimationDriver {
|
/**
|
||||||
|
* @experimental
|
||||||
|
*/
|
||||||
|
export class NoOpAnimationDriver implements AnimationDriver {
|
||||||
animate(
|
animate(
|
||||||
element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[],
|
element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[],
|
||||||
duration: number, delay: number, easing: string,
|
duration: number, delay: number, easing: string,
|
||||||
@ -19,11 +22,12 @@ class _NoOpAnimationDriver implements AnimationDriver {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
export abstract class AnimationDriver {
|
export abstract class AnimationDriver {
|
||||||
static NOOP: AnimationDriver = new _NoOpAnimationDriver();
|
static NOOP: AnimationDriver = new NoOpAnimationDriver();
|
||||||
abstract animate(
|
abstract animate(
|
||||||
element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[],
|
element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[],
|
||||||
duration: number, delay: number, easing: string,
|
duration: number, delay: number, easing: string,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user