Open gavin-ts opened 1 year ago
do you have an example d2? @gavin-ts
Here's an example, it should adjust min edge length according to all of these factors
direction: right
0: no label {
x -> y
}
1: label {
x -> y: 1234567890
}
2: arrowhead label {
a -> b: {
target-arrowhead: 1234567890
}
}
3: large arrowhead {
a -> b: {
target-arrowhead.shape: diamond
style.stroke-width: 10
}
}
should consider edge label dimensions, source/target arrowheads (and labels) to adjust how far apart edges need to be from each other, and how long they must be at a minimum
dagre and elk will need to be configured accordingly, dagre will likely need this to be set globally (max of all edges), but maybe elk can do this per-edge