lost-sia
Version:
Single Image Annotation Tool
23 lines (22 loc) • 1.07 kB
TypeScript
import { CSSProperties } from 'react';
import { AnnotationSettings, Point } from '../../../types';
import { default as AnnotationMode } from '../../../models/AnnotationMode';
type LineProps = {
annotationSettings: AnnotationSettings;
coordinates: Point[];
isSelected: 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;
};
declare const Line: ({ annotationSettings, coordinates, isSelected, annotationMode, pageToStageOffset, svgScale, svgTranslation, style, onAddNode, onDeleteNode, onFinishAnnoCreate, onMoving, onMoved, onIsDraggingStateChanged, }: LineProps) => import("react/jsx-runtime").JSX.Element;
export default Line;