lost-sia
Version:
Single Image Annotation Tool
51 lines (50 loc) • 2.52 kB
TypeScript
import { StoryObj } from '@storybook/react';
import { default as AnnotationTool } from '../../models/AnnotationTool';
import { default as Annotation } from '../../Annotation/logic/Annotation';
import { AnnotationSettings, UiConfig } from '../../types';
export declare const ActionsData: {
onAnnoEvent: import('@vitest/spy').Mock<(...args: any[]) => any>;
onKeyDown: import('@vitest/spy').Mock<(...args: any[]) => any>;
onKeyUp: import('@vitest/spy').Mock<(...args: any[]) => 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, onSetSelectedTool, onShouldDeleteAnno, }: {
annotations?: Annotation[];
annotationSettings: AnnotationSettings;
defaultLabelId?: number;
image: string;
isFullscreen?: boolean;
isImageJunk?: boolean;
isPolygonSelectionMode?: boolean;
selectedAnnotation: Annotation | undefined;
selectedAnnoTool: AnnotationTool;
toolbarHeight?: number;
polygonOperationResult?: import('../..').PolygonOperationResult;
possibleLabels: import('../..').Label[];
preventScrolling?: boolean;
uiConfig: UiConfig;
onAnnoCreated: (createdAnno: Annotation) => void;
onAnnoCreationFinished: (createdAnno: Annotation, hasAnnotationExisted: boolean) => void;
onAnnoChanged: (changedAnno: Annotation) => void;
onAnnoEditing: (annoToEdit: Annotation) => void;
onNotification?: (notification: import('../..').SIANotification) => void;
onRequestNewAnnoId: () => number;
onSelectAnnotation: (annotation?: Annotation) => void;
onSetSelectedTool: (tool: AnnotationTool) => void;
onShouldDeleteAnno: (internalAnnoId: number) => 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;