Open alixander opened 1 year ago
Looks to be related to how we reserve the space for outside bottom labels on images. without labels it looks as expected:
We may no longer need to increase the height for these before passing to dagre if I can successfully control the size of containers with a "phantom" node in #1453. Hmm but we still need enough spacing between nodes if the labels are tall and something is below
elk still has this issue
Hi @gavin-ts and @alixander , i confirm that d2 v0.6.0
corrected the issue. At least for dragre
. Thanks ! Feel free to close it or create another one or refer to an existing one such as #1453 for elk
. Anyway awwsome job and kudos to d2
crew!
dagre (imagine images with a blank bottom side.) https://play.d2lang.com/?script=XFJLboQwDN37FL5AiIburKpSF73A3CAEFyIVghyns6i4exVDKzFLw3v2--Q_NEJp9gBsOeEPILasCG3nFoRXhR3gzP5ASJATi2hmCNMSJrYPLRzCWXUr5L2ERzclnetQC0vMq_KqXcyL_xQeWVJ0X7kmf3-_f7gHDz5UzfYGXN3GoOzHHItPy-Tb1a58T3bFbBC-9DYdJZ3j3vTKrTPJZGLbaFV1rRXCXLWkkZ3mzUVelQWkvxL6C2HIqnn5w4Lc8NW9ofRHCs9dHlRC1vkGiM-dXX7v8BsAAP__&
That is weird, I generate ~ 2300+ d2 diagram with 0.6.0 and then convert them to SVG.
All diagrams seemed to be fine:
https://docs.rare.geant.org/guides/reference/md/conn-amt01
I'll let @gavin-ts comment then ...
Le mar. 8 août 2023 à 18:03, bokura @.***> a écrit :
dagre
— Reply to this email directly, view it on GitHub https://github.com/terrastruct/d2/issues/1464#issuecomment-1669893488, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJROB4QLED6LL42E4TCQDTXUJPLRANCNFSM6AAAAAAZ4B2PYU . You are receiving this because you commented.Message ID: @.***>
i think this is not considering the inside label.
https://play.d2lang.com/?script=xFTNaoQwEL4H8g7zAklYe2oohR76AvsG2STV0NXImLhC8d1LRi2sp3ryIowzzvfjzPwZpgGLNM44o9YafjgDKFZpoJa9Qd8lzuZSs7q_VqHB7QMAEqQhtKb2y5vikIYmpX7QSqF5yDqkJt_y4NHGLvkuSRtb9YXeeQxW3GMO6vpx_RQPf1Mmp0iDIHLvTPLKRTuo0Naq4MphrBcYEqThpVrC5V9t8VweE7ozaE7ojrAcUUw4vn6fQXXDPsL3Hro8nUGWgI8wtdifMgAF9_88acHwImnHNC0XZ1g9x6UC3sQ7YLUq2t8QSedIg0_NpeT3x-I5P3P2GwAA__8%3D&