Replies: 7 comments
-
are you using dagre/elk layout engines? If so, there's a ticket to track automatic layout placement so you won't need to specify. #203 |
Beta Was this translation helpful? Give feedback.
-
@alixander thanks for your replay. But my core question is
|
Beta Was this translation helpful? Give feedback.
-
ah i see. in that case, this is indeed a different issue. i'd be curious to know if this is generally desirable. E.g. if you had arrows coming into icon x from the bottom, wouldn't you want that icon's label to be positioned at the top? |
Beta Was this translation helpful? Give feedback.
-
in my case, the answer is no. I think my issue may not general enough, and I want to do some discuss if possible. In fact, I have collected a group of figures as ref in my daily work , and many of them use the style as I say, so I feel strage when the icon label place in different sides (especially in one figure). |
Beta Was this translation helpful? Give feedback.
-
I'll let other people chime in. I've heard this feedback from others too actually but I find it hard to believe that it's desirable. By the way we also do this for other labels in TALA. E.g. for a container label, if there's arrows coming into it from all sides, the label will try to place inside. If there's stuff in the center, it'll place inside near top center. If there's stuff there, then down center, and so on. Likewise for connection labels. It tries to do somewhere near halfway of a connection, but if it hugs another node or connection, or merges, then it'll choose another. |
Beta Was this translation helpful? Give feedback.
-
In design, we usually make Furthermore, we use |
Beta Was this translation helpful? Give feedback.
-
ohhhh, yeah, okay, i understand now. kk this might be the best solution actually. we'll do this in this or next release. thank you |
Beta Was this translation helpful? Give feedback.
-
I have tested d2 with my figures, and I am confused I can not control the node label position (specially for
shape: image
).In d2 output, label set in bottom / right side and top which follows the layout strategy automatically.
Can we have any possible to force all label in the top or in the bottom to confirm consistence for some figures?
Beta Was this translation helpful? Give feedback.
All reactions