d2 icon indicating copy to clipboard operation
d2 copied to clipboard

[v0.6.4] label positions are not stable.

Open bo-ku-ra opened this issue 10 months ago • 3 comments

***: {&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&

bo-ku-ra avatar Apr 13 '24 14:04 bo-ku-ra

***: {&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&

terlar avatar Jun 13 '24 10:06 terlar

https://github.com/terrastruct/d2/issues/1908#issue-2241589517 oh, my point was already improved!

bo-ku-ra avatar Jun 13 '24 23:06 bo-ku-ra

Yeah, that is great news. I didn't see anything wrong with yours, so I guess it was fixed :)

terlar avatar Jun 14 '24 00:06 terlar