UNPKG

@qyu/anim-core

Version:

Animation definition and implementation

12 lines (11 loc) 385 B
import type { Anim } from "../type/Anim.js"; export type AnimLine_Point = { readonly state: number; }; export type AnimNewLine_Config = { readonly target: number; /** expected to be a positive number */ readonly velocity: number; readonly effect: (state: number) => void; }; export declare const anim_new_line: (config: AnimNewLine_Config) => Anim<AnimLine_Point>;