react-img-editor-pro
Version:
图片编辑器(微信截图编辑 PRO 版),来自 react-img-editor
22 lines (21 loc) • 606 B
TypeScript
import Plugin from './plugins/Plugin';
import React from 'react';
interface ReactImageEditorProps {
width?: number;
height?: number;
style?: React.CSSProperties;
plugins?: Plugin[];
toolbar?: {
items: string[];
};
src: string;
getStage?: (stage: any) => void;
callBase64Back?: (data: any) => void;
defaultPluginName?: string;
crossOrigin?: string;
}
declare function ReactImageEditor(props: ReactImageEditorProps): JSX.Element;
declare namespace ReactImageEditor {
var defaultProps: Partial<ReactImageEditorProps>;
}
export default ReactImageEditor;