Skip to content

Render empty gaps at connection crossings by default - #3011

Merged
alixander merged 3 commits into
masterfrom
feat/default-crossing-gaps
Nov 23, 2026
Merged

alixander merged 3 commits into
masterfrom
feat/default-crossing-gaps

Conversation

@alixander

@alixander alixander commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • sent from alixander's Codex

@alixander
alixander marked this pull request as ready for review November 23, 2026 17:02
@alixander
alixander merged commit 8c79420 into master Nov 23, 2026
3 checks passed
@alixander
alixander deleted the feat/default-crossing-gaps branch November 23, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: line jumps (hops) where connections cross option to add bridges/arcs to crossings/intersections

1 participant