Skip to content

cycle-diagram: keep arcs circular at node borders#2760

Open
TheDerbiedOne wants to merge 3 commits into
terrastruct:masterfrom
TheDerbiedOne:derby/cycle-diagram-border-anchors-v2
Open

cycle-diagram: keep arcs circular at node borders#2760
TheDerbiedOne wants to merge 3 commits into
terrastruct:masterfrom
TheDerbiedOne:derby/cycle-diagram-border-anchors-v2

Conversation

@TheDerbiedOne

Copy link
Copy Markdown

/claim #1578

Fixes cycle-diagram arc routing so curves start/end exactly on node borders without breaking the circular arc shape.

  • Computes circle/box intersection angles and resamples the arc between those trim angles
  • Falls back to the previous TraceToShape behavior if trim cannot be computed
  • Updates E2E golden outputs for cycle-diagram (dagre + elk)

Context: the bounty thread asks for the arcs to touch shape bounds while staying smooth/circular (see terrastruct/d2#1578).

@TheDerbiedOne TheDerbiedOne mentioned this pull request May 25, 2026
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.

2 participants