Repository navigation
feat(v6.51.1): canvases zoom out to 5% (ADR-253) - #306
Merged
Merged
Conversation
Svelte Flow's default minZoom of 0.5 also capped fitView, so large diagrams (the 274-node family tree) opened at 50% with most of the diagram off screen. A shared CANVAS_MIN_ZOOM = 0.05 is now passed to every <SvelteFlow>. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01EbTwcTX1wKVooS7oWd7cP9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The canvases didn't set a zoom limit, so they all used Svelte Flow's default
minZoomof 0.5. That limit also capsfitView, so large diagrams such as the 274-node Barlow family tree opened at 50% with most of the diagram off screen, and the zoom-out control stopped there.CANVAS_MIN_ZOOM = 0.05infrontend/src/lib/canvas/zoom.tsminZoomto every<SvelteFlow>:UnifiedCanvas(browse and edit),FullViewCanvas,ModelCanvas,BrowseCanvasmaxZoomis unchanged; the sequence canvas has its own viewport and isn't affectedFrontend-only; no API, MCP or CLI change, so surface parity is unaffected.
Test plan
frontend/tests/unit/canvasZoomRange.test.ts: red before the change (4 of 5 failed), green afterUnifiedCanvas.sveltewere already on main, on lines this change doesn't touch)🤖 Generated with Claude Code
https://claude.ai/code/session_01EbTwcTX1wKVooS7oWd7cP9