ojos
Version:
High level API on top of Mirada (opencv.js) supporting bth browser and node.
19 lines (18 loc) • 958 B
TypeScript
import { easing, Fn, RemoveProperties } from 'misc-utils-of-mine-generic';
declare const easingExclude: {
'quad': number;
'easeInQuart': number;
'easeInQuint': number;
'easeInOutQuart': number;
};
export declare type Easing = keyof RemoveProperties<typeof easing, keyof typeof easingExclude>;
export declare const easingNames: ("bounceEasyOut" | "back" | "elastic" | "bounceEaseInOut" | "easeInQuad" | "easeOutQuad" | "easeInOutQuad" | "easeInElastic" | "easeOutBounce" | "easeInCubic" | "easeOutCubic" | "easeInOutCubic" | "easeOutQuint" | "easeInExpo" | "easeInOutQuint" | "easeInSine" | "easeInOutElastic" | "easeOutElastic" | "easeInOutExpo" | "easeInOutBack" | "easeOutBack" | "easeInBounce" | "easeInOutBounce")[];
export interface AnimateOptions {
easing: Easing;
duration: number;
draw: (n: number) => void;
lapse?: number;
end?: Fn;
}
export declare function animate(o: AnimateOptions): Promise<void>;
export {};