You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(app): respect plot aspect ratio (16:9) when drawing map nodes
Plots are typically rendered with figsize=(16, 9), but the canvas
draw + hitbox code was forcing them into a square 22×22 slot, which
squashed everything horizontally.
Read the intrinsic aspect ratio from any loaded thumbnail variant
(naturalWidth/naturalHeight) and fit the draw rect / hit area into a
NODE_SIZE box without distortion — longer side stays at NODE_SIZE so
nodes share a consistent layout scale. Falls back to a square when
nothing is loaded yet (matches the placeholder).
New helpers: nodeAspectRatio, fitToBox (both pure, unit-tested).
Refs #5646
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments