2016-06-23 09:47:54 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
|
*/
|
|
|
|
|
|
2016-06-30 13:07:17 -07:00
|
|
|
import {AnimationPlayer} from '@angular/core';
|
2016-05-25 12:46:22 -07:00
|
|
|
|
2016-08-30 18:07:40 -07:00
|
|
|
import {AnimationKeyframe, AnimationStyles, NoOpAnimationPlayer} from '../private_import_core';
|
2016-05-25 12:46:22 -07:00
|
|
|
|
2016-12-14 14:51:29 -08:00
|
|
|
/**
|
|
|
|
|
* @experimental
|
|
|
|
|
*/
|
|
|
|
|
export class NoOpAnimationDriver implements AnimationDriver {
|
2016-06-08 16:38:52 -07:00
|
|
|
animate(
|
|
|
|
|
element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[],
|
2016-11-14 16:59:06 -08:00
|
|
|
duration: number, delay: number, easing: string,
|
|
|
|
|
previousPlayers: AnimationPlayer[] = []): AnimationPlayer {
|
2016-05-25 12:46:22 -07:00
|
|
|
return new NoOpAnimationPlayer();
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-06-30 13:07:17 -07:00
|
|
|
|
2016-12-14 14:51:29 -08:00
|
|
|
|
2016-06-30 13:07:17 -07:00
|
|
|
/**
|
|
|
|
|
* @experimental
|
|
|
|
|
*/
|
|
|
|
|
export abstract class AnimationDriver {
|
2016-12-14 14:51:29 -08:00
|
|
|
static NOOP: AnimationDriver = new NoOpAnimationDriver();
|
2016-06-30 13:07:17 -07:00
|
|
|
abstract animate(
|
|
|
|
|
element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[],
|
2016-11-14 16:59:06 -08:00
|
|
|
duration: number, delay: number, easing: string,
|
|
|
|
|
previousPlayers?: AnimationPlayer[]): AnimationPlayer;
|
2016-06-30 13:07:17 -07:00
|
|
|
}
|