react-img-editor-pro
Version:
图片编辑器(微信截图编辑 PRO 版),来自 react-img-editor
26 lines (25 loc) • 891 B
TypeScript
import Plugin from './Plugin';
import { DrawEventParams } from '../common/type';
export default class Crop extends Plugin {
name: string;
iconfont: string;
title: string;
params: never[];
isPaint: boolean;
virtualLayer: any;
rect: any;
transformer: any;
toolbarId: string;
getRectWidth: () => any;
getRectHeight: () => any;
getRectX: () => any;
getRectY: () => any;
adjustToolbarPosition: (stage: any) => void;
createCropToolbar: (stage: any, sureBtnEvent: () => void, cancelBtnEvent: () => void) => void;
reset: (stage: any) => void;
onEnter: (drawEventParams: DrawEventParams) => void;
onDrawStart: (drawEventParams: DrawEventParams) => void;
onDraw: (drawEventParams: DrawEventParams) => void;
onDrawEnd: (drawEventParams: DrawEventParams) => void;
onLeave: (drawEventParams: DrawEventParams) => void;
}