UNPKG

lost-sia

Version:

Single Image Annotation Tool

25 lines (24 loc) 1.22 kB
import { CSSProperties } from 'react'; import { Point, SIANotification, AnnotationSettings } from '../../../types'; import { default as AnnotationMode } from '../../../models/AnnotationMode'; type PolygonProps = { annotationSettings: AnnotationSettings; coordinates: Point[]; isSelected: boolean; isDisabled?: boolean; annotationMode: AnnotationMode; setAnnotationMode: (annotationMode: AnnotationMode) => void; pageToStageOffset: Point; svgScale: number; svgTranslation: Point; style: CSSProperties; onAddNode: (coordinates: Point[]) => void; onDeleteNode: (coordinates: Point[]) => void; onFinishAnnoCreate: () => void; onIsDraggingStateChanged: (newDraggingState: boolean) => void; onMoving: (coordinates: Point[]) => void; onMoved: () => void; onNotification?: (notification: SIANotification) => void; }; declare const Polygon: ({ annotationSettings, coordinates, isSelected, isDisabled, annotationMode, pageToStageOffset, svgScale, svgTranslation, style, onAddNode, onDeleteNode, onFinishAnnoCreate, onIsDraggingStateChanged, onMoving, onMoved, onNotification, }: PolygonProps) => import("react/jsx-runtime").JSX.Element; export default Polygon;