develop #24
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user