Skip to content

Commit e1ff298

Browse files
authored
fix: animation types
1 parent 5f14845 commit e1ff298

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
export type { Pair, Transformation, TransformationType, TransformationValue, TransformFunctionsInfo, Point3D, AnimationPromise, Cancelable } from './animation-types';
2-
export { Animation, _resolveAnimationCurve } from './animation';
32
export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation';
3+
import type { AnimationDefinition, AnimationPromise } from './animation-types';
4+
5+
/**
6+
* Defines a animation set.
7+
*/
8+
export class Animation {
9+
constructor(animationDefinitions: Array<AnimationDefinition>, playSequentially?: boolean);
10+
public play: (resetOnFinish?: boolean) => AnimationPromise;
11+
public cancel: () => void;
12+
public isPlaying: boolean;
13+
public _resolveAnimationCurve(curve: any): any;
14+
}
15+
16+
export function _resolveAnimationCurve(curve: any): any;

0 commit comments

Comments
 (0)