@saran-ign/video-annotation-tool
Version:
[](https://www.npmjs.com/package/@saran-ign/video-annotation-tool) [](https://www.npmjs.co
22 lines (21 loc) • 707 B
TypeScript
import React, { ForwardedRef } from 'react';
interface Shape {
id: string;
[key: string]: any;
}
interface TwoDVideoAnnotationProps {
rootRef?: ForwardedRef<any>;
videoUrl: string;
shapes: Shape[];
setShapes: React.Dispatch<React.SetStateAction<Shape[]>>;
selectedShapeTool?: 'rectangle' | 'circle' | 'polygon' | null;
hideAnnotations?: boolean;
lockEdit?: boolean;
annotationColor?: string;
selectedAnnotationData?: (data: Shape | null) => void;
videoControls?: Record<string, any>;
videoTimeAnnotation: boolean;
showVideoDuration: boolean;
}
declare const TwoDVideoAnnotation: React.FC<TwoDVideoAnnotationProps>;
export default TwoDVideoAnnotation;