terrastruct / d2

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

render: consider arrowheads for label positions #793

Open alixander opened 1 year ago

alixander commented 1 year ago

this is the center if u include arrowhead, but it looks off. what we want is center excluding arrowheads.

Screen Shot 2023-02-10 at 9 23 14 PM
donglixiaoche commented 1 year ago

@alixander may i take a look for this one? should be an easy one

alixander commented 1 year ago

@donglixiaoche absolutely!