UNPKG

@ozdemircibaris/react-image-editor

Version:

Professional React image editor component with blur, crop, shapes, drawing, and undo/redo functionality. Built with Fabric.js and modern React patterns.

5 lines (4 loc) 389 B
import { fabric } from "fabric"; export declare const useShapeHandlers: (canvas: fabric.Canvas | null, isCropping: boolean, isDrawing: boolean, currentColor: string, currentStrokeWidth: number, setIsSelectMode: (value: boolean) => void, setSelectedObject: (obj: fabric.Object | null) => void, saveState: () => void) => { handleAddShape: (shapeType: "rectangle" | "circle") => void; };