- improved magnification level text

- removed magnification level
This commit is contained in:
2025-12-10 14:08:44 +00:00
parent 10e2644666
commit eb45eabde9
2 changed files with 1 additions and 11 deletions

View File

@@ -238,7 +238,7 @@ const RegionSelector = ({
/> />
<div className="flex flex-col space-y-3"> <div className="flex flex-col space-y-3">
<span className="text-xl">Digital Zoom mode</span> <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>} {mode === "zoom" && <small className={`text-gray-400 italic`}>Click image to digitally zoom</small>}
</div> </div>
</label> </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") => { const handleZoomClick = (e: KonvaEventObject<MouseEvent>, cameraFeedID: "A" | "B" | "C") => {
if (mode !== "zoom") return; if (mode !== "zoom") return;
const socket = getCurrentSocket(); const socket = getCurrentSocket();