lost-sia
Version:
Single Image Annotation Tool
73 lines (72 loc) • 4.2 kB
TypeScript
import { StoryObj } from '@storybook/react';
import { Label, UiConfig } from '../../types';
export declare const ActionsData: {};
declare const meta: {
title: string;
component: ({ additionalButtons, allowedTools: propAllowedTools, polygonOperationResult, annotationSettings: propAnnotationSettings, uiConfig: propUiConfig, defaultAnnotationTool, defaultLabelId, image, isLoading, isPolygonSelectionMode, initialAnnotations, initialImageLabelIds, initialIsImageJunk, possibleLabels, onAnnoCreated, onAnnoCreationFinished, onAnnoChanged, onAnnoDeleted, onImageLabelsChanged, onIsImageJunk, onNotification, onSelectAnnotation, }: {
additionalButtons?: import('react').ReactElement | undefined;
allowedTools?: import('../..').AllowedTools;
polygonOperationResult?: import('../..').PolygonOperationResult;
annotationSettings?: import('../..').AnnotationSettings;
defaultAnnotationTool?: import('../../models').AnnotationTool;
defaultLabelId?: number;
image?: string;
isLoading?: boolean;
isPolygonSelectionMode?: boolean;
initialAnnotations?: import('../..').ExternalAnnotation[];
initialImageLabelIds?: number[];
initialIsImageJunk?: boolean;
possibleLabels: Label[];
uiConfig?: UiConfig;
onAnnoCreated?: (createdAnno: import('../../models').Annotation, allAnnos: import('../../models').Annotation[]) => void;
onAnnoCreationFinished?: (createdAnno: import('../../models').Annotation, allAnnos: import('../../models').Annotation[]) => void;
onAnnoChanged?: (changedAnno: import('../../models').Annotation, allAnnos: import('../../models').Annotation[]) => void;
onAnnoDeleted?: (deletedAnno: import('../../models').Annotation, allAnnos: import('../../models').Annotation[]) => void;
onImageLabelsChanged?: (selectedImageIds: number[]) => void;
onIsImageJunk?: (isJunk: boolean) => void;
onNotification?: (notification: import('../..').SIANotification) => void;
onSelectAnnotation?: (annotation: import('../../models').Annotation) => void;
}) => import("react/jsx-runtime").JSX.Element;
parameters: {
layout: string;
};
tags: string[];
excludeStories: RegExp;
args: {};
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
additionalButtons?: import('react').ReactElement | undefined;
allowedTools?: import('../..').AllowedTools;
polygonOperationResult?: import('../..').PolygonOperationResult;
annotationSettings?: import('../..').AnnotationSettings;
defaultAnnotationTool?: import('../../models').AnnotationTool;
defaultLabelId?: number;
image?: string;
isLoading?: boolean;
isPolygonSelectionMode?: boolean;
initialAnnotations?: import('../..').ExternalAnnotation[];
initialImageLabelIds?: number[];
initialIsImageJunk?: boolean;
possibleLabels: Label[];
uiConfig?: UiConfig;
onAnnoCreated?: (createdAnno: import('../../models').Annotation, allAnnos: import('../../models').Annotation[]) => void;
onAnnoCreationFinished?: (createdAnno: import('../../models').Annotation, allAnnos: import('../../models').Annotation[]) => void;
onAnnoChanged?: (changedAnno: import('../../models').Annotation, allAnnos: import('../../models').Annotation[]) => void;
onAnnoDeleted?: (deletedAnno: import('../../models').Annotation, allAnnos: import('../../models').Annotation[]) => void;
onImageLabelsChanged?: (selectedImageIds: number[]) => void;
onIsImageJunk?: (isJunk: boolean) => void;
onNotification?: (notification: import('../..').SIANotification) => void;
onSelectAnnotation?: (annotation: import('../../models').Annotation) => void;
}>) => import("react/jsx-runtime").JSX.Element)[];
};
export default meta;
type Story = StoryObj<typeof meta>;
/**
* SIA with dummy data
*/
export declare const Default: Story;
/**
* Minimal SIA example
*/
export declare const Minimal: Story;
export declare const Loading: Story;
export declare const Junk: Story;