UNPKG

@qyu/anim-core

Version:

Animation definition and implementation

17 lines (16 loc) 706 B
import type { Anim } from "../type/Anim.js"; export type AnimNewPipe_InputPipe<PointSrc, PointOut> = { (point_input: PointOut): PointSrc; }; export type AnimNewPipe_OutputPipe<PointSrc, PointOut> = { (point_src: PointSrc): PointOut; }; export type AnimNewPipe_Config<PointSrc, PointOut> = { readonly pipei: AnimNewPipe_InputPipe<PointSrc, PointOut>; readonly pipeo: AnimNewPipe_OutputPipe<PointSrc, PointOut>; }; export type AnimNewPipe_Params<PointSrc, PointOut> = { readonly src: Anim<PointSrc>; readonly config: AnimNewPipe_Config<PointSrc, PointOut>; }; export declare const anim_new_pipe: <PointSrc, PointOut>(params: AnimNewPipe_Params<PointSrc, PointOut>) => Anim<PointOut>;