@visactor/vrender-animate
Version:
This module provides a graph-based animation system for VRender.
12 lines (11 loc) • 381 B
TypeScript
import type { IAnimationConfig } from '../executor/executor';
export interface IAnimationState {
name: string;
animation: IAnimationConfig;
}
export interface IAnimationStateManager {
registerState: (state: IAnimationState) => void;
applyState: (state: string | string[]) => void;
clearStates: () => void;
getCurrentState: () => string | string[] | null;
}