UNPKG

react-echarts-mark-board

Version:

Mark drawing tool, support for drawing lines , rays and other graphics.

29 lines (28 loc) 771 B
export declare type Anchor = [number, number]; export declare type Anchors = Anchor[]; export declare type ShapeType = "line" | "polygon" | "sides" | "arrow" | "sides_polygon"; export declare type Shape = { anchors: Anchors; color?: string; over: boolean; type: ShapeType; data?: any; }; export interface Props { selected: number; value: Shape[]; showGrid?: boolean; lineWidth?: number; onChange?: (data: { selected: number; shapeList: Shape[]; }) => void; onReady?: (arg0: { createShape: (opt: { shapeType: ShapeType; color?: string; data?: any; }) => void; deleteShape: (shapeType: number) => void; }) => void; }