@qyu/anim-core
Version:
Animation definition and implementation
16 lines (15 loc) • 647 B
TypeScript
import type { Anim } from "../../anim/type/Anim.js";
import type { FrameScheduler } from "../../scheduler/type/FrameScheduler.js";
export type EmitterInterval<Point> = {
readonly point: () => Point;
readonly active: () => boolean;
readonly hardstop: () => void;
readonly softstop: () => void;
};
export type EmitterNewInterval_Params<Point> = {
readonly point: Point;
readonly anim: Anim<Point>;
readonly scheduler: FrameScheduler;
readonly batch?: null | ((callback: VoidFunction) => void);
};
export declare const emitter_new_interval: <Point>(params: EmitterNewInterval_Params<Point>) => EmitterInterval<Point>;