UNPKG

react-visual-annotator

Version:

Powerful React image and video annotation tool for machine learning, computer vision, and AI training data creation. Features rotatable bounding boxes, polygons, keypoints, segmentation with TypeScript support and Material-UI components.

34 lines (32 loc) 1.31 kB
import { OverridableComponent } from '@mui/material/OverridableComponent'; import { SvgIconTypeMap } from '@mui/material'; import { AnnotatorToolEnum } from '../../MainLayout/types.ts'; import { CSSProperties, ReactElement } from 'react'; export interface WorkspaceProps { style?: CSSProperties; allowFullscreen?: boolean; hideHeader?: boolean; hideHeaderText?: boolean; headerItems?: Array<{ name: string; }>; iconDictionary: Record<string, OverridableComponent<SvgIconTypeMap>>; headerLeftSide: Array<ReactElement> | null; rightSidebarItems: Array<ReactElement>; onClickHeaderItem: (item: { name: string; }) => void; onClickIconSidebarItem: (item: { name: string; }) => void; selectedTools: Array<AnnotatorToolEnum>; iconSidebarItems: Array<{ name: string; helperText: string; alwaysShowing?: boolean; }>; rightSidebarExpanded?: boolean; children: ReactElement; } declare const _default: ({ style, iconSidebarItems, selectedTools, headerItems, rightSidebarItems, onClickHeaderItem, onClickIconSidebarItem, headerLeftSide, iconDictionary, rightSidebarExpanded, hideHeader, hideHeaderText, children, }: WorkspaceProps) => import("react/jsx-runtime").JSX.Element; export default _default;