@orca-fe/painter
Version:
Konva Painter
20 lines (19 loc) • 634 B
TypeScript
import React from 'react';
import type { GraphShapeType, ShapeType } from '../def';
export interface ShapeCreatorProps extends React.HTMLAttributes<HTMLDivElement> {
shapeType?: ShapeType;
onDrawing?: (shape: GraphShapeType) => void;
onCreate?: (shape: GraphShapeType) => void;
onCancel?: () => void;
pointMapping?: (point: {
x: number;
y: number;
}) => {
x: number;
y: number;
};
graphMarkList?: GraphShapeType[];
maxMarkNum?: number;
}
declare const ShapeCreator: (props: ShapeCreatorProps) => import("react/jsx-runtime").JSX.Element;
export default ShapeCreator;