@saran-ign/react-image-annotate
Version:
An Image Annotate Library for React
27 lines (26 loc) • 1.32 kB
TypeScript
import { RegionLabelProps } from '../RegionLabel';
import { Region } from '../types/region-tools.ts';
import { ProjectBoxFn } from '../ImageCanvas/use-project-box.ts';
import { MouseEvents } from '../ImageCanvas/use-mouse.ts';
import { ComponentType, FunctionComponent } from 'react';
type RegionTagsProps = {
regions: Region[];
projectRegionBox: ProjectBoxFn;
mouseEvents: MouseEvents;
regionClsList?: Array<string> | Array<{
id: string;
label: string;
}>;
regionTagList?: string[];
regionTagSingleSelection?: boolean;
onBeginRegionEdit: (r: Region) => void;
onChangeRegion: (r: Region) => void;
onCloseRegionEdit: (r: Region) => void;
onDeleteRegion: (r: Region) => void;
RegionEditLabel: ComponentType<RegionLabelProps> | FunctionComponent<RegionLabelProps> | null;
onRegionClassAdded: (cls: string) => void;
allowComments?: boolean;
onRegionTagAdded: (tag: string) => void;
};
export declare const RegionTags: ({ regions, projectRegionBox, mouseEvents, regionClsList, regionTagList, regionTagSingleSelection, onBeginRegionEdit, onChangeRegion, onCloseRegionEdit, onDeleteRegion, RegionEditLabel, onRegionClassAdded, allowComments, onRegionTagAdded, }: RegionTagsProps) => import("react/jsx-runtime").JSX.Element[];
export default RegionTags;