Repository navigation
Render empty gaps at connection crossings by default - #3011
Merged
Merged
Conversation
- sent from alixander's Codex
- sent from alixander's Codex
- sent from alixander's Codex
alixander
marked this pull request as ready for review
November 23, 2026 17:02
This was referenced Nov 23, 2026
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.
Human
AI
D2 leaves a small transparent opening in the back connection at a crossing. The existing paint order determines which connection stays continuous. The gap scales with stroke width and works on colored and transparent backgrounds without configuration.
SVG and native image exports share the same planner for rounded and cubic routes. It preserves shared endpoints, arrowheads and tangencies. Neighboring openings shrink to leave a stroke-width between them, and cuts on a folded route protect nearby return legs. Over-budget boards fall back to plain crossings.
Static dashed foregrounds only produce a gap where their ink could touch the back line. Animated dashes keep a stable opening throughout the cycle. A transparent foreground, a gradient with a fully transparent interval, and a compound dashed sketch with uncertain phase use plain crossings. Responsive SVG shares its geometry between light and dark themes. Straight hand-drawn routes and long legs of bent routes use a plain crossing if sketch displacement could carry the intersection outside the available opening.
Compare the same grid diagram before and after.
Regression tests cover dense crossings, nearby folds, invisible paint, short and long hand-drawn lines, dash phase, and native rendered pixels. The 74 changed SVG snapshots match their originals after removing the crossing masks and their wrapper groups.
Closes #1932
Closes #3005