Skip to content

shape: add cycle diagram layout#2775

Open
Zhaoziyuan2024 wants to merge 1 commit into
terrastruct:masterfrom
Zhaoziyuan2024:add-cycle-shape-layout
Open

shape: add cycle diagram layout#2775
Zhaoziyuan2024 wants to merge 1 commit into
terrastruct:masterfrom
Zhaoziyuan2024:add-cycle-shape-layout

Conversation

@Zhaoziyuan2024

Copy link
Copy Markdown

Fixes #1578

Summary

  • add shape: cycle as a legal diagram shape
  • add a cycle layout that places direct children around a ring in declaration order
  • route direct child edges inside cycle diagrams and support nested cycle extraction/reinjection
  • add compiler validation for fixed positions and self-entering edges inside cycle diagrams

Tests

  • go test ./d2layouts/...
  • go test ./d2graph ./d2target
  • go test ./d2compiler -run TestCompileCycleShape

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.

shape: cycle

1 participant