UNPKG

lost-sia

Version:

Single Image Annotation Tool

25 lines (24 loc) 1.4 kB
import { default as Annotation } from '../logic/Annotation'; import { default as CanvasAction } from '../../models/CanvasAction'; import { AnnotationSettings, Label, Point, SIANotification } from '../../types'; import { default as AnnotationMode } from '../../models/AnnotationMode'; type AnnotationComponentProps = { scaledAnnotation: Annotation; annotationSettings: AnnotationSettings; possibleLabels: Label[]; svgScale: number; svgTranslation: Point; pageToStageOffset: Point; strokeWidth: number; nodeRadius: number; isSelected: boolean; isDisabled?: boolean; onFinishAnnoCreate: (fullyCreatedAnnotation: Annotation) => void; onLabelIconClicked: (markerPosition: Point) => void; onAction?: (annotation: Annotation, canvasAction: CanvasAction) => void; onAnnoChanged?: (annotation: Annotation) => void; onAnnotationModeChange?: (annotationMode: AnnotationMode) => void; onNotification?: (notification: SIANotification) => void; }; declare const AnnotationComponent: ({ scaledAnnotation, annotationSettings, possibleLabels, svgScale, svgTranslation, pageToStageOffset, strokeWidth, nodeRadius, isSelected, isDisabled, onFinishAnnoCreate, onLabelIconClicked, onAction, onAnnoChanged, onAnnotationModeChange, onNotification, }: AnnotationComponentProps) => import("react/jsx-runtime").JSX.Element; export default AnnotationComponent;