UNPKG

react-design-editor

Version:

Design Editor Tools with React.js + ant.design + fabric.js

29 lines (28 loc) 828 B
import { fabric } from 'fabric'; import { FabricEvent, FabricObject } from '../utils'; import Handler from './Handler'; declare class DrawingHandler { handler: Handler; constructor(handler: Handler); polygon: { init: () => void; finish: () => void; addPoint: (opt: FabricEvent) => void; generate: (pointArray: FabricObject<fabric.Circle>[]) => void; }; line: { init: () => void; finish: () => void; addPoint: (opt: FabricEvent) => void; generate: (opt: FabricEvent) => void; }; arrow: { init: () => void; finish: () => void; addPoint: (opt: FabricEvent) => void; generate: (opt: FabricEvent) => void; }; orthogonal: {}; curve: {}; } export default DrawingHandler;