filerobot-image-editor
Version:
Vanilla Javascript bridged version of filerobot image editor (FIE).
14 lines (11 loc) • 531 B
TypeScript
import { FilerobotImageEditorConfig, TABS, TOOLS, getCurrentImgDataFunction } from 'react-filerobot-image-editor';
declare class FilerobotImageEditor {
TABS: typeof TABS;
TOOLS: typeof TOOLS;
constructor(container: HTMLElement, config: FilerobotImageEditorConfig);
render(additionalConfig?: FilerobotImageEditorConfig): void;
terminate(): void;
getCurrentImgData: getCurrentImgDataFunction;
updateState: (newStatePart: {} | ((currentState: {}) => void)) => void;
}
export default FilerobotImageEditor;