mc-image-editor
Version:
An image editor library for magic-cut app (http://www.magic-cut.in/)
9 lines (8 loc) • 381 B
TypeScript
export interface ImageEditorFeature {
name: string;
apply(context: CanvasRenderingContext2D, image: HTMLImageElement, ...args: Array<any>): void;
}
export declare type CustomImageEditorFeature = (context: CanvasRenderingContext2D, image: HTMLImageElement, ...args: Array<any>) => void;
export interface FeatureContainer {
[props: string]: ImageEditorFeature;
}