lost-sia
Version:
Single Image Annotation Tool
22 lines (21 loc) • 1.15 kB
TypeScript
import { default as AnnotationTool } from '../models/AnnotationTool';
import { ReactElement } from 'react';
import { AllowedTools, AnnotationSettings, Label } from '../types';
type ToolbarProps = {
annotationSettings: AnnotationSettings;
allowedTools: AllowedTools;
additionalButtons?: ReactElement | undefined;
isImageJunk?: boolean;
imageLabelIds?: number[];
isDisabled?: boolean;
isFullscreen?: boolean;
possibleLabels: Label[];
selectedTool: AnnotationTool;
onImageLabelsChanged?: (selectedImageIds: number[]) => void;
onSetIsFullscreen?: (isFullscreen: boolean) => void;
onSetIsImageJunk?: (isImageJunk: boolean) => void;
onSetSelectedTool?: (selectedTool: AnnotationTool) => void;
onShouldDeleteSelectedAnnotation?: () => void;
};
declare const Toolbar: ({ annotationSettings, allowedTools, additionalButtons, isImageJunk, imageLabelIds, isDisabled, isFullscreen, possibleLabels, selectedTool, onImageLabelsChanged, onSetIsFullscreen, onSetIsImageJunk, onSetSelectedTool, onShouldDeleteSelectedAnnotation, }: ToolbarProps) => import("react/jsx-runtime").JSX.Element;
export default Toolbar;