Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v0.6.4] label positions are not stable. #1908

Open
bo-ku-ra opened this issue Apr 13, 2024 · 3 comments
Open

[v0.6.4] label positions are not stable. #1908

bo-ku-ra opened this issue Apr 13, 2024 · 3 comments

Comments

@bo-ku-ra
Copy link
Contributor

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

@cyborg-ts cyborg-ts added this to D2 Apr 13, 2024
@terlar
Copy link

terlar commented Jun 13, 2024

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

@bo-ku-ra
Copy link
Contributor Author

#1908 (comment)
oh, my point was already improved!

@terlar
Copy link

terlar commented Jun 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants