UNPKG

1.56 kBTypeScriptView Raw
1import { CubicBezierAnimationCurve as CubicBezierAnimationCurveDefinition, Animation as AnimationBaseDefinition } from '.';
2import { AnimationDefinition, AnimationPromise as AnimationPromiseDefinition, PropertyAnimation } from './animation-interfaces';
3export * from './animation-interfaces';
4export declare namespace Properties {
5 const opacity = "opacity";
6 const backgroundColor = "backgroundColor";
7 const translate = "translate";
8 const rotate = "rotate";
9 const scale = "scale";
10 const height = "height";
11 const width = "width";
12}
13export declare class CubicBezierAnimationCurve implements CubicBezierAnimationCurveDefinition {
14 x1: number;
15 y1: number;
16 x2: number;
17 y2: number;
18 constructor(x1: number, y1: number, x2: number, y2: number);
19}
20export declare abstract class AnimationBase implements AnimationBaseDefinition {
21 _propertyAnimations: Array<PropertyAnimation>;
22 _playSequentially: boolean;
23 private _isPlaying;
24 private _resolve;
25 private _reject;
26 constructor(animationDefinitions: Array<AnimationDefinition>, playSequentially?: boolean);
27 abstract _resolveAnimationCurve(curve: any): any;
28 protected _rejectAlreadyPlaying(): AnimationPromiseDefinition;
29 play(): AnimationPromiseDefinition;
30 private fixupAnimationPromise;
31 cancel(): void;
32 get isPlaying(): boolean;
33 _resolveAnimationFinishedPromise(): void;
34 _rejectAnimationFinishedPromise(): void;
35 private static _createPropertyAnimations;
36 static _getAnimationInfo(animation: PropertyAnimation): string;
37}