d2
d2 copied to clipboard
Sequence diagram: Multiple notes/connections on the same row?
Is there a way to put multiple notes/connections on the same row to make the sequence diagram more compact?
Example:
Would really love this feature!
The possible syntax could be something like:
a."note 1"
& b."note 2"
And this will put "note 1" and "note 2" in the same row.
Just that in d2layouts/d2sequence/sequence_diagram.go::placeNotes(), replace y := sd.maxActorHeight + sd.yStep by y := sd.maxActorHeight when the & symbol is detected (or something similar).
Related: can a note (in a sequence_diagram shape) or an arrow label (anywhere) use text formatting (e.g., md)?
EDIT: Found https://github.com/terrastruct/d2/issues/849.