Open eurodrew555 opened 1 year ago
For reference, I would like to generate a diagram similar to this one:
still not supported
c.f. https://d2lang.com/tour/grid-diagrams/#connections-between-grid-cells
box1 -> box2: {style.opacity: 0}
box1: "" {
style.opacity: 0
grid-rows: 1
spine01
spine02
}
box2: "" {
style.opacity: 0
grid-rows: 1
leaf01
leaf02
leaf03
leaf04
}
box1.spine01 -- box2.leaf*: {
style: {
border-radius: 0
}
}
box1.spine02 -- box2.leaf*: {
style: {
border-radius: 0
}
}
I'm pretty new to d2 and experimenting with making various network diagrams.
For example, I would like to make a simple CLOS network diagram with 2x Spines and 4x Leafs. I am trying to make the connections completely straight, not curved or routed but I can't seem to find a way to do this.
The d2 text below makes routed connections using right angles with ELK. It is closer to what I want with Dagre but the lines are still curved.
Is there any style option available to change the connection to a completely straight line?