import Shape from './Shape'; export interface CropedShape { dataURL: string; shape: Shape; } export interface UpDrawingProps { src: string; shapes?: Array; activationShape?: boolean; displayActions?: boolean; disabled?: boolean; onChange?: (value: any, e: any) => void; onDelAll?: (shapes: Array) => void; onDel?: (shape: any) => void; onCrop?: (shape: CropedShape) => void; onRotate?: (callback: (result: any) => void) => void; } export interface UpDrawingState { activationShape: boolean; src: string; zones?: Array; selection?: any; scale: number; }