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
{{ message }}
Repository navigation
Fit-to-screen button uses hardcoded scale instead of computing bounds #10
`internal/web/static/index.html` lines ~1565-1570: The `fitGraph()` function applies `scale(0.8)` centered on the container midpoint instead of computing the actual bounding box of all nodes.
Impact
"Fit to screen" doesn't actually fit the graph. Nodes may be off-screen after fitting.
Fix
Compute min/max x,y across all nodes, calculate proper scale and translate to fit all content with padding.
Activity
Refactor SDK: fix 13 issues from code review
Improve graph: adaptive forces, proper fit-to-screen, responsive SVG (#7
Improve graph: adaptive forces, fit-to-screen, responsive SVG (#7, #8, …
CalebisGross commentedon Mar 10, 2026
Fixed in #42 — fitGraph() now computes actual node bounding box.
refactor: split main.go monolith into 16 focused files