@saran-ign/video-annotation-tool
Version:
[](https://www.npmjs.com/package/@saran-ign/video-annotation-tool) [](https://www.npmjs.co
24 lines (23 loc) • 764 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;
videoId?: string;
video_ref?: ForwardedRef<any>;
}
declare const TwoDVideoAnnotation: React.FC<TwoDVideoAnnotationProps>;
export default TwoDVideoAnnotation;