UNPKG

lost-sia

Version:

Single Image Annotation Tool

52 lines (51 loc) 2.63 kB
import { StoryObj } from '@storybook/react'; import { default as AnnotationTool } from '../../models/AnnotationTool'; import { AnnotationSettings, UiConfig } from '../../types'; export declare const ActionsData: { onAnnoEvent: any; onKeyDown: any; onKeyUp: any; }; declare const meta: { title: string; component: ({ annotations, annotationSettings, defaultLabelId, image, isFullscreen, isImageJunk, isPolygonSelectionMode, polygonOperationResult, possibleLabels, preventScrolling, selectedAnnotation, selectedAnnoTool, toolbarHeight, uiConfig, onAnnoCreated, onAnnoCreationFinished, onAnnoChanged, onAnnoEditing, onNotification, onRequestNewAnnoId, onSelectAnnotation, onSetIsImageJunk, onSetSelectedTool, onShouldDeleteAnno, onTraverseAnnotationHistory, }: { annotations?: import('../../models').Annotation[]; annotationSettings: AnnotationSettings; defaultLabelId?: number; image: string; isFullscreen?: boolean; isImageJunk?: boolean; isPolygonSelectionMode?: boolean; selectedAnnotation: import('../../models').Annotation | undefined; selectedAnnoTool: AnnotationTool; toolbarHeight?: number; polygonOperationResult?: import('../..').PolygonOperationResult; possibleLabels: import('../..').Label[]; preventScrolling?: boolean; uiConfig: UiConfig; onAnnoCreated: (createdAnno: import('../../models').Annotation) => void; onAnnoCreationFinished: (createdAnno: import('../../models').Annotation, hasAnnotationExisted: boolean) => void; onAnnoChanged: (changedAnno: import('../../models').Annotation) => void; onAnnoEditing: (annoToEdit: import('../../models').Annotation) => void; onNotification?: (notification: import('../..').SIANotification) => void; onRequestNewAnnoId: () => number; onSelectAnnotation: (annotation?: import('../../models').Annotation) => void; onSetIsImageJunk: (newJunkState: boolean) => void; onSetSelectedTool: (tool: AnnotationTool) => void; onShouldDeleteAnno: (internalAnnoId: number) => void; onTraverseAnnotationHistory: (isUndo: boolean) => void; }) => import("react/jsx-runtime").JSX.Element; parameters: { layout: string; }; tags: string[]; excludeStories: RegExp; args: {}; }; export default meta; type Story = StoryObj<typeof meta>; export declare const Default: Story; export declare const WithPoints: Story; export declare const WithLines: Story; export declare const WithBBoxes: Story; export declare const WithPolygonAnnotations: Story;