blampe / goat

Render ASCII art as SVG diagrams
MIT License
650 stars 40 forks source link

Diagonal connection between nodes? #29

Open pizza-advertiser opened 4 months ago

pizza-advertiser commented 4 months ago

I have four nodes arranged in a square like so:

 .---.   .---.
| CTR +-+ WBK |
 '-+-'   '-+-'
   |       |
 .-+-.   .-+-.
| HWD +-+ SDO |
 '---'   '---'

I'd like to diagonally connect the HWD and WBK nodes from their nearest corners, but haven't found a good solution. Most come out mishapen or connect the sides of the nodes rather than their corners. Any ideas? The horizontal and vertical space between nodes can be increased if that makes it any easier.

dmullis commented 3 months ago

The '|' connectors above would have to be extended to 3x their current height, triple rather than single, in order for a straight diagonal to be run between the ovals.