@visactor/vrender-animate
Version:
This module provides a graph-based animation system for VRender.
21 lines (20 loc) • 921 B
TypeScript
import type { EasingType, IAnimate, IStep } from '@visactor/vrender-core';
import { ACustomAnimate } from './custom-animate';
export interface IScaleAnimationOptions {
direction?: 'x' | 'y' | 'xy';
}
export declare class CommonIn extends ACustomAnimate<Record<string, number>> {
valid: boolean;
keys: string[];
constructor(from: null, to: null, duration: number, easing: EasingType, params?: IScaleAnimationOptions);
onBind(): void;
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
}
export declare class CommonOut extends ACustomAnimate<Record<string, number>> {
valid: boolean;
keys: string[];
constructor(from: null, to: null, duration: number, easing: EasingType, params?: IScaleAnimationOptions);
onBind(): void;
onEnd(cb?: (animate: IAnimate, step: IStep) => void): void;
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
}