From 9790e98257fc9f062238b1a5bd7fc4313f8c13eb Mon Sep 17 00:00:00 2001 From: rakadu1 Date: Thu, 18 Sep 2025 15:37:03 +0530 Subject: [PATCH] feat(zoom): Implement interactive high-fidelity zoom window Adds a new zoom panel that provides a magnified, real-time view of the area under the cursor when "Close-Up Mode" is active. This feature enhances the tool's precision for detailed data analysis. Key features and fixes include: - Renders a high-fidelity, vector-based redraw of the scene, not a pixelated image. - Implemented dynamic zoom control via the mouse wheel when hovering over the main radar canvas. - The zoom sketch is fully decoupled from the main radar sketch to ensure stability and prevent UI freezes. - Includes a self-contained tooltip within the zoom window that correctly scales its size and text to match the zoom level. - The tooltip's position is now smart, dynamically moving to the least cluttered quadrant to avoid obstructing data points. - Connector lines and item highlighting are now fully functional and styled to match the main view's tooltip. Motion state added in the persistent overlays --- steps/index.html | 13 +- steps/src/dom.js | 6 +- steps/src/drawUtils.js | 726 ++++++++++++++++++++++++++---------- steps/src/main.js | 27 +- steps/src/p5/radarSketch.js | 87 ++++- steps/src/p5/zoomSketch.js | 416 +++++++++++++++++++++ steps/src/state.js | 1 + 7 files changed, 1050 insertions(+), 226 deletions(-) create mode 100644 steps/src/p5/zoomSketch.js diff --git a/steps/index.html b/steps/index.html index 9dd12de..26c3930 100644 --- a/steps/index.html +++ b/steps/index.html @@ -147,14 +147,15 @@ id="toggle-debug2-overlay" class="form-checkbox h-4 w-4 text-blue-600 rounded focus:ring-blue-500" /> Show Advanced Debug (A) + class="form-checkbox h-4 w-4 text-blue-600 rounded focus:ring-blue-500" /> GOD MODE -