@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.
9 lines (8 loc) • 617 B
TypeScript
import type { FabricSelectionEvent } from "../types";
export declare const useObjectHandlers: (canvas: fabric.Canvas | null, selectedObject: fabric.Object | null, setSelectedObject: (obj: fabric.Object | null) => void, setCurrentColor: (color: string) => void, setCurrentStrokeWidth: (width: number) => void, originalImage: fabric.Image | null, saveState: () => void) => {
handleObjectSelection: (e: FabricSelectionEvent) => void;
handleObjectDeselection: () => void;
handleDeleteObject: () => void;
handleColorChange: (color: string) => void;
handleStrokeWidthChange: (width: number) => void;
};