d2
d2 copied to clipboard
[v0.6.4] label positions are not stable.
***: {&shape: person;width:0; label.near: top-center }
a:a{shape:person}
b:bb{shape:person}
c:ccc{shape:person}
d:dddd{shape:person}
e:eeeee{shape:person}
f:ffffff{shape:person}
g:ggggggg{shape:person}
h:hhhhhhhh{shape:person}
i:iiiiiiiii{shape:person}
j:jjjjjjjjjj{shape:person}
k:kkkkkkkkkkk{shape:person}
https://play.d2lang.com/?l=&script=XMtNCsMgEMXxvadw1YXQ0vXLaXRmEk2CESN0EXL30toPmN_y_3jOOdjjskdfBLZI3bc8PBK3iPtgVx9kvWXxFbZt5UqSm1R7GuPhj37qn9MEhKASgYhUYzAzqyiQF1VHjG8qT5g61SPihxoS0pdaZsw_alqw_KntGQAA__8%3D&
***: {&shape: person; width: 60; height: 60}
groups: Groups {
artifact-registry-reader: "Artifact Registry Reader" {
shape: person
}
log-sink-writer: Log Sink Writer {
shape: person
}
}
It becomes even worse and apparent if you wrap it in another shape: https://play.d2lang.com/?l=&script=dI0xC8IwEIX3_IpHB4dCwMkhnZxcnOrgHOyZHJWmXE6KlPx3aeji4HTH-jea9vWYT3k6GdymElymjosPGh0OB07ROIQdfuLMUHSe84Ol3qxGsCL8tM_1AoFziofK-QHEofmvCP0O0JfUVNF4GfUAMUArxRs5mm0i7BuLdcUcONpxL0Gf9VivgEAAP_&layout=elk&
https://github.com/terrastruct/d2/issues/1908#issue-2241589517 oh, my point was already improved!
Yeah, that is great news. I didn't see anything wrong with yours, so I guess it was fixed :)