feature/ws-Camera #23

Merged
TobaOjo merged 3 commits from feature/ws-Camera into develop 2025-12-10 14:09:24 +00:00
10 changed files with 185 additions and 18 deletions
Showing only changes of commit eb45eabde9 - Show all commits

View File

@@ -238,7 +238,7 @@ const RegionSelector = ({
/>
<div className="flex flex-col space-y-3">
<span className="text-xl">Digital Zoom mode</span>
<pre className="text-xs text-gray-400">{getMagnificationLevel()}</pre>
<pre className="text-xs text-gray-400">{`current Zoom: ${getMagnificationLevel()}`}</pre>
{mode === "zoom" && <small className={`text-gray-400 italic`}>Click image to digitally zoom</small>}
</div>
</label>

View File

@@ -56,16 +56,6 @@ const VideoFeedGridPainter = () => {
}
};
const socket = getCurrentSocket();
const getMagnificationLevel = () => {
const test = socket.data;
if (!socket.data) return null;
if (!test || !test.magnificationLevel) return "0x";
return test?.magnificationLevel;
};
const handleZoomClick = (e: KonvaEventObject<MouseEvent>, cameraFeedID: "A" | "B" | "C") => {
if (mode !== "zoom") return;
const socket = getCurrentSocket();