- improved magnification level text
- removed magnification level
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user