@up-group-ui/react-controls
Version:
Up shared react controls
25 lines (24 loc) • 636 B
TypeScript
import Shape from './Shape';
export interface CropedShape {
dataURL: string;
shape: Shape;
}
export interface UpDrawingProps {
src: string;
shapes?: Array<any>;
activationShape?: boolean;
displayActions?: boolean;
disabled?: boolean;
onChange?: (value: any, e: any) => void;
onDelAll?: (shapes: Array<any>) => void;
onDel?: (shape: any) => void;
onCrop?: (shape: CropedShape) => void;
onRotate?: (callback: (result: any) => void) => void;
}
export interface UpDrawingState {
activationShape: boolean;
src: string;
zones?: Array<any>;
selection?: any;
scale: number;
}