UNPKG

romaine

Version:

React OpenCV Manipulation and Image Narration & Editing

20 lines 669 B
import { ImagePtr } from "../../types"; interface Props { image: string | File | null; saltId?: string; } export declare const useCanvas: ({ image, saltId }: Props) => { canvasRef: import("react").RefObject<HTMLCanvasElement>; createCanvas: () => Promise<void>; originalImageDims: { width: number; height: number; }; canvasPtr: import("react").RefObject<ImagePtr | undefined>; resetImage: () => void; /** loaded: Is the image loaded onto the canvas and does the pointer exist */ loaded: boolean; }; export type UseCanvasReturnType = ReturnType<typeof useCanvas>; export {}; //# sourceMappingURL=useCanvas.d.ts.map