From 18a7c5640eecba7ca10c8c950887725833d2416c Mon Sep 17 00:00:00 2001 From: rakadu1 Date: Mon, 23 Mar 2026 14:29:53 +0530 Subject: [PATCH] feat(ui): Refactor Zoom Sketch to floating panel with auto-hide UX - Extracted drag/resize logic from Data Explorer into reusable `ui.js` utility. - Migrated Zoom Sketch from GridStack into a free-floating, draggable, and resizable `z-30` overlay (default size 900x455). - Restored and optimized auto-hide timing lifecycle for Close-Up mode: - 0-5s: Clean freeze for data inspection without hovering. - 5-8s: Fading visual countdown warning prior to panel closure. - Implemented state flag `zoomPanelExplicitlyClosed` guaranteeing the "X" button correctly masks rapid re-triggers. - Bound 'g' toggle shortcut to aggressively wipe/close panels when exiting God Mode entirely. - Added visual "Mouse pointer Out of Bounds" overlay when cursor exits main radar canvas. --- steps/index.html | 296 ++++++++++++++++++++++++------------ steps/src/dataExplorer.js | 94 +----------- steps/src/p5/radarSketch.js | 98 ++++++------ steps/src/p5/zoomSketch.js | 28 +++- steps/src/state.js | 3 + steps/src/ui.js | 127 +++++++++++++++- 6 files changed, 399 insertions(+), 247 deletions(-) diff --git a/steps/index.html b/steps/index.html index b76baed..2d49b31 100644 --- a/steps/index.html +++ b/steps/index.html @@ -10,11 +10,11 @@ - + - + - + - + - - + + - +