UNPKG

@visactor/vrender-animate

Version:

This module provides a graph-based animation system for VRender.

14 lines (13 loc) 556 B
import type { EasingType } from '@visactor/vrender-core'; import { ACustomAnimate } from './custom-animate'; export interface IUpdateAnimationOptions { diffAttrs: Record<string, any>; animationState: string; diffState: string; data: Record<string, any>[]; } export declare class State extends ACustomAnimate<Record<string, number>> { valid: boolean; constructor(from: null, to: null, duration: number, easing: EasingType, params?: IUpdateAnimationOptions); update(end: boolean, ratio: number, out: Record<string, any>): void; }