mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: animation types
This commit is contained in:
15
packages/core/ui/animation/index.d.ts
vendored
15
packages/core/ui/animation/index.d.ts
vendored
@ -1,3 +1,16 @@
|
|||||||
export type { Pair, Transformation, TransformationType, TransformationValue, TransformFunctionsInfo, Point3D, AnimationPromise, Cancelable } from './animation-types';
|
export type { Pair, Transformation, TransformationType, TransformationValue, TransformFunctionsInfo, Point3D, AnimationPromise, Cancelable } from './animation-types';
|
||||||
export { Animation, _resolveAnimationCurve } from './animation';
|
|
||||||
export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation';
|
export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation';
|
||||||
|
import type { AnimationDefinition, AnimationPromise } from './animation-types';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines a animation set.
|
||||||
|
*/
|
||||||
|
export class Animation {
|
||||||
|
constructor(animationDefinitions: Array<AnimationDefinition>, playSequentially?: boolean);
|
||||||
|
public play: (resetOnFinish?: boolean) => AnimationPromise;
|
||||||
|
public cancel: () => void;
|
||||||
|
public isPlaying: boolean;
|
||||||
|
public _resolveAnimationCurve(curve: any): any;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function _resolveAnimationCurve(curve: any): any;
|
||||||
|
|||||||
Reference in New Issue
Block a user