Browse Source
feat(layout): implement GridStack.js for resizable dashboards and fix p5.js resize stability
feat(layout): implement GridStack.js for resizable dashboards and fix p5.js resize stability
- Implemented GridStack.js as the core dashboard manager, enabling responsive dragging and resizing of the Radar, Video, and SpeedGraph panels. - Replaced global windowResized events with debounced ResizeObserver instances attached to the specific panel containers. - Fixed a massive memory leak in p5.js sketches by explicitly calling .remove() on old Graphics buffers before recreation. - Optimized zoomSketch.js by removing destructive canvas teardown calls from radarSketch and using smoothed camera coordinates for tooltip bounding logic. - Patched tooltip overflow bugs in drawUtils.js and speedGraphSketch.js to intelligently clamp within panel edges, even in narrow columns. - Disabled native p5 windowResized triggers to prevent double-firing when moving the web app across multiple monitors.refactor/sync-centralize
6 changed files with 150 additions and 67 deletions
-
93steps/index.html
-
15steps/src/drawUtils.js
-
36steps/src/p5/radarSketch.js
-
24steps/src/p5/speedGraphSketch.js
-
40steps/src/p5/zoomSketch.js
-
11steps/src/ui.js
Write
Preview
Loading…
Cancel
Save
Reference in new issue