UNPKG

@visactor/vrender-animate

Version:

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

25 lines (24 loc) 804 B
import type { EasingType, IAnimate, IStep } from '@visactor/vrender-core'; import { ACustomAnimate } from './custom-animate'; export declare class IncreaseCount extends ACustomAnimate<{ text: string | number; }> { valid: boolean; private fromNumber; private toNumber; private decimalLength; private format; private formatTemplate; constructor(from: { text: string | number; }, to: { text: string | number; }, duration: number, easing: EasingType, params?: { decimalLength?: number; format?: 'percent' | 'thousandth' | 'none'; formatTemplate?: string; }); onFirstRun(): void; onEnd(cb?: (animate: IAnimate, step: IStep) => void): void; onUpdate(end: boolean, ratio: number, out: Record<string, any>): void; }