lost-sia
Version:
Single Image Annotation Tool
41 lines (40 loc) • 1.71 kB
TypeScript
import { StoryObj } from '@storybook/react';
import { default as AnnotationTool } from '../../models/AnnotationTool';
import { default as Annotation } from '../../Annotation/logic/Annotation';
import { 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, image, selectedAnnoTool, possibleLabels, preventScrolling, uiConfig, }: {
annotations?: Annotation[];
image: string;
selectedAnnoTool: AnnotationTool;
possibleLabels: import('../..').Label[];
preventScrolling: boolean;
uiConfig: UiConfig;
onAnnoEvent?: (annotation: Annotation, canvasAction: import('../../models/CanvasAction').default) => void | undefined;
onKeyDown?: (e: any) => void | undefined;
onKeyUp?: (e: any) => void | undefined;
}) => import("react/jsx-runtime").JSX.Element;
parameters: {
layout: string;
};
tags: string[];
excludeStories: RegExp;
args: {
onAnnoEvent: import('@vitest/spy').Mock<(...args: any[]) => any>;
onKeyDown: import('@vitest/spy').Mock<(...args: any[]) => any>;
onKeyUp: import('@vitest/spy').Mock<(...args: any[]) => any>;
};
};
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;