mirror of
https://github.com/azaion/ui.git
synced 2026-04-22 09:06:34 +00:00
Azaion Suite to the web. First commit. Only rough sketches of future components is done.
This commit is contained in:
@@ -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 => ({
|
||||||
|
|||||||
@@ -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 (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user