UNPKG

@saran-ign/video-annotation-tool

Version:

[![npm version](https://img.shields.io/npm/v/@saran-ign/video-annotation-tool.svg)](https://www.npmjs.com/package/@saran-ign/video-annotation-tool) [![npm downloads](https://img.shields.io/npm/dm/@saran-ign/video-annotation-tool.svg)](https://www.npmjs.co

24 lines (23 loc) 764 B
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;