d2 icon indicating copy to clipboard operation
d2 copied to clipboard

content of NOTE is lost in sequence_diagram.

Open bo-ku-ra opened this issue 1 year ago • 1 comments

i can read the NOTE.

shape: sequence_diagram;

a
b

b{
NOTE:'foobar'
}

i can not read the NOTE.

shape: sequence_diagram;

a
b

b{
NOTE:'foobar'
}
a -> b.NOTE

expected image

bo-ku-ra avatar Sep 17 '24 12:09 bo-ku-ra

i believe this is due to the way SPAN is described c.f. https://github.com/terrastruct/d2/issues/2095#issuecomment-2351236792

bo-ku-ra avatar Sep 17 '24 12:09 bo-ku-ra

Notes are children with no connections. That's the rules. If you add a connection to it, it becomes a span. This conforms to the rules

alixander avatar Sep 17 '24 17:09 alixander