Azaion Suite to the web. First commit. Only rough sketches of future components is done.

This commit is contained in:
Alex Bezdieniezhnykh
2025-03-18 16:30:41 +02:00
parent 2ab732c6b4
commit b078a39097
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -42,7 +42,6 @@ function AnnotationMain() {
const handleAnnotationSave = () => { const handleAnnotationSave = () => {
const containerRef = { current: { offsetWidth: videoRef.current.videoWidth, offsetHeight: videoRef.current.videoHeight } }; const containerRef = { current: { offsetWidth: videoRef.current.videoWidth, offsetHeight: videoRef.current.videoHeight } };
const annotationSelectedClass = selectedClass;
const imageData = AnnotationService.createAnnotationImage(videoRef, detections, null, annotationSelectedClass, containerRef); const imageData = AnnotationService.createAnnotationImage(videoRef, detections, null, annotationSelectedClass, containerRef);
if (imageData) { if (imageData) {
setAnnotations(prevAnnotations => ({ setAnnotations(prevAnnotations => ({
+1 -1
View File
@@ -2,7 +2,7 @@
import React from 'react'; import React from 'react';
import Detection from './Detection'; import Detection from './Detection';
function DetectionContainer({ detections, selectedDetectionIndices, calculateColor, onDetectionMouseDown, currentDetection, onResize }) { function DetectionContainer({ detections, selectedDetectionIndices, onDetectionMouseDown, currentDetection, onResize }) {
return ( return (
<> <>