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

tooltip icon too large for some shapes #576

Open
bo-ku-ra opened this issue Dec 31, 2022 · 5 comments
Open

tooltip icon too large for some shapes #576

bo-ku-ra opened this issue Dec 31, 2022 · 5 comments

Comments

@bo-ku-ra
Copy link
Contributor

(i) is disturbing.

  • when d2 outputs png-file.
  • when d2 outputs sequence_diagram.

ex. be small
https://play.d2lang.com/?layout=dagre&script=AjvTSqE4tbA0NS85NT4lMzG9KDGXq0KvUkHXTqEKxLBSqIYaYqWgkakJCiCFzGKFpMx0vVouQAAAAP__&

@cyborg-ts cyborg-ts added this to D2 Dec 31, 2022
@bo-ku-ra
Copy link
Contributor Author

when d2 outputs png-file.

d2.exe is correct.
D2 Playground is not working. (no comments when png outputs )

@alixander
Copy link
Collaborator

thx for reporting. i'm tracking playground issues on its own repo, and have this filed: terrastruct/d2-playground#17 (comment)

i'll leave this issue open though and change to the sequence diagram issue

@alixander alixander changed the title about tooltip-icon (i) tooltip icon too large for some shapes Dec 31, 2022
@bo-ku-ra
Copy link
Contributor Author

bo-ku-ra commented Apr 15, 2023

i'm convinced that grid-gap:0 has great potential for d2.
please Imagine using tooltip: and link: with grid-gap:0. (#1178 (comment)) (#589 (comment))

japanese tends to write japan map by html's table tags.
so if d2 has the 'grid-gap:0', we write it by d2
when i want to explane each prefecture in japan , i use the d2's tooltip.

japan
https://en.wikipedia.org/wiki/Japan#/media/File:Regions_and_Prefectures_of_Japan_2.svg

e.g.
d2_japan
https://play.d2lang.com/?l=&script=rJjbU9vGF8ff9VdonJf8Zn7gXeuuPLWNwyTOQMahk8nTzoJlrDhIHskOQxjPtENuNOTStFAyQMmFS5pQEuMmJLSk_wyS0X_R0Uox2Dp-gbzBWR-8-_l-z9k9xJrr_BTH84NDg1mdn2I76I9h6Dyqczw_kM9mB9tr0aZ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h-3ypE2Kjj1OqiWDVO0KsYvsx8vlyWHHMOJmIMUd-8H0wc8zyX1zIrNcMLfj_ZVo6CIz3v7e445qZKRE5r6wsx09blyoItjFRbCLi2AXFyONnsz6f3b25ZNBy9nWmD1Su2aSnD1JXWohxRIyCMXOEJn8-x9ngrsPEueFbmsRfs-I8Xtm7Xdv7V7H3Z_Pnj2-4iWDDDgGrZIr9IZB7GKR5KhFx-gEbe8ffjwKYFsRmLqtOz_5S5tJYwjRvbC64d270-0LAdRXYPr6txa914td9AQmcrD-tAPGiboSllBY1nmz6tYc0yKXqFMmw7RMx2nVrZEc40IqjlGM7kaEXSHGJIBPBAF8xwqg7gKsu9A987TDoCzwsBzNysGnf73bjzuaOCMZjczh--toucZ1Bw_O0dwcvFnoaFztFNaMPzc7vuqLCeAhGp6h4RG6xwSdGKDbYZBUNDP72_Otj7e6zdhjcIanQ3g4hGdDeDSEJ0N4MITnwh5jIUwkMS3HRKIrZSr-x5bOj9h95VqfQ_nr5g3D5U2Lr4YXRJ37LwAA__8%3D&%5D%28https%3A%2F%2Fplay.d2lang.com%2F%3Fl=&%29=&

@gavin-ts
Copy link
Contributor

looks like the playground encoding changed since the old link. Here's what I think it was: https://play.d2lang.com/?layout=dagre&script=AnvLSqE4tbA0NS85NT4lMzG9KDGXq0KvUkHXTqEKxLBSqIaaaaWgkakJCmOFzGKFpMx0vVouQAAAAP__&

Screen Shot 2023-04-17 at 1 47 18 PM

@bo-ku-ra
Copy link
Contributor Author

https://d2lang.com/tour/grid-diagrams/#like-this-map-of-japan

unnecessary

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

3 participants