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

22 lines (21 loc) 707 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; } declare const TwoDVideoAnnotation: React.FC<TwoDVideoAnnotationProps>; export default TwoDVideoAnnotation;