UNPKG

@visactor/vrender-animate

Version:

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

22 lines (21 loc) 810 B
import type { CustomPath2D, IGraphic, EasingType } from '@visactor/vrender-core'; import { ACustomAnimate } from './custom-animate'; export declare class MotionPath extends ACustomAnimate<any> { valid: boolean; pathLength: number; path: CustomPath2D; distance: number; totalLength: number; initAngle: number; changeAngle: boolean; cb?: (from: any, to: any, ratio: number, target: IGraphic) => void; constructor(from: any, to: any, duration: number, easing: EasingType, params?: { path: CustomPath2D; distance: number; cb?: (from: any, to: any, ratio: number, target: IGraphic) => void; initAngle?: number; changeAngle?: boolean; }); onBind(): void; onUpdate(end: boolean, ratio: number, out: Record<string, any>): void; }