UNPKG

@amnstak/react-image-annotate

Version:

[![npm version](https://img.shields.io/npm/v/@asi/react-image-annotate.svg)](https://www.npmjs.com/package/@amnstak/react-image-annotate)

22 lines (20 loc) 645 B
import { AnnotatorToolEnum, Image } from '../MainLayout/types'; export type IImageViewerType = { allowedArea?: { x: number; y: number; w: number; h: number; }; regionClsList?: (string | { id: string; label: string; color: string; })[]; regionTagList?: Array<string>; imageSrc: Image['src']; imageRegions: Image['regions']; selectedTool?: AnnotatorToolEnum; }; export declare const ImageViewer: ({ allowedArea, regionClsList, regionTagList, imageSrc, imageRegions }: IImageViewerType) => import("react/jsx-runtime").JSX.Element; export default ImageViewer;