- minor bugfixes

- added developer modal for viewing app data
This commit is contained in:
2025-12-12 12:18:17 +00:00
parent b38fbe132b
commit 3fbafbbcc7
10 changed files with 163 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ const RegionSelector = ({
const test = socket.data;
if (!socket.data) return null;
if (!test || !test.magnificationLevel) return "0x";
if (!test || !test.magnificationLevel) return "1x";
return test?.magnificationLevel;
};
@@ -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">{`current Zoom: ${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

@@ -206,7 +206,7 @@ const VideoFeedGridPainter = () => {
onMouseLeave={handleStageMouseUp}
className={`max-w-[55%] md:row-span-3 md:col-span-3 ${mode === "painter" ? "hover:cursor-crosshair" : ""} ${
mode === "eraser" ? "hover:cursor-pointer" : ""
}`}
} ${mode === "zoom" ? "hover:cursor-zoom-in" : ""}`}
>
<Layer
scaleX={scale}