From b078a3909794a19c2a17a3470ff04616d65c5859 Mon Sep 17 00:00:00 2001 From: Alex Bezdieniezhnykh Date: Tue, 18 Mar 2025 16:30:41 +0200 Subject: [PATCH] Azaion Suite to the web. First commit. Only rough sketches of future components is done. --- src/components/AnnotationMain.js | 1 - src/components/DetectionContainer.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/AnnotationMain.js b/src/components/AnnotationMain.js index 002d30e..6bc4ff7 100644 --- a/src/components/AnnotationMain.js +++ b/src/components/AnnotationMain.js @@ -42,7 +42,6 @@ function AnnotationMain() { const handleAnnotationSave = () => { const containerRef = { current: { offsetWidth: videoRef.current.videoWidth, offsetHeight: videoRef.current.videoHeight } }; - const annotationSelectedClass = selectedClass; const imageData = AnnotationService.createAnnotationImage(videoRef, detections, null, annotationSelectedClass, containerRef); if (imageData) { setAnnotations(prevAnnotations => ({ diff --git a/src/components/DetectionContainer.js b/src/components/DetectionContainer.js index a449f84..8d20b82 100644 --- a/src/components/DetectionContainer.js +++ b/src/components/DetectionContainer.js @@ -2,7 +2,7 @@ import React from 'react'; import Detection from './Detection'; -function DetectionContainer({ detections, selectedDetectionIndices, calculateColor, onDetectionMouseDown, currentDetection, onResize }) { +function DetectionContainer({ detections, selectedDetectionIndices, onDetectionMouseDown, currentDetection, onResize }) { return ( <>