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
Minimap: fit viewport indicator within minimap bounds
The viewport indicator could extend past the minimap borders when
the visible viewport was larger than the graph (zoomed out or small
graph with a large editor window): scale was computed from graph
bounds only, so a viewport of, say, 1200x800 world units rendering
into a 180x135 minimap with scale=0.24 produced a 286x190 indicator
rectangle — larger than the minimap itself.
Scale now uses the union of graph bounds and the visible viewport as
the content extent. When the viewport is inside the graph (zoomed in),
the behavior is unchanged: content = graph, minimap shows the whole
graph, indicator sits inside. When the viewport extends past the graph
(zoomed out), the minimap "zooms out" to show both — the indicator
always fits inside, and graph content appears smaller within it.
Node rendering (both SVG path and fallback rectangles) and the click-
to-navigate inverse transform also use the unified content origin so
everything stays consistent.
0 commit comments