terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
17.08k stars 422 forks source link

multiple connections between grid cells blend together #1741

Open alixander opened 11 months ago

alixander commented 11 months ago

if you have

a -> b b <- a

and they are grid cells, it will look like a bidirectional instead of multiple

olleharstedt commented 6 months ago

Yep, I have this issue, too.

alixander commented 6 months ago

Notes:

So the reason for this is because connections b/t grid cells don't go through the layout engine, they are simple center-to-center lines.

To disambiguate multiple, one way would be to split the line in the perpendicular axis such that they still intersect the endpoints.