UNPKG

romaine

Version:

React OpenCV Manipulation and Image Narration & Editing

23 lines 878 B
import type { ReactNode, DetailedHTMLProps, HTMLAttributes } from "react"; import React from "react"; import { CropperState } from "./Cropper"; import { RomaineRef } from "./Romaine.types"; export type CanvasProps = { image: File | string; onDragStop?: (s: CropperState) => void; onChange?: (s: CropperState) => void; pointSize?: number; lineWidth?: number; lineColor?: string; maxWidth: number; maxHeight: number; saltId?: string; }; export interface RomaineCanvas extends Omit<Omit<CanvasProps, "image">, "romaineRef"> { openCvPath?: string; children?: ReactNode; image: File | string | null; wrapperProps?: DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>; } export declare const Canvas: React.ForwardRefExoticComponent<RomaineCanvas & React.RefAttributes<RomaineRef>>; //# sourceMappingURL=Canvas.d.ts.map