Elbow Routing
StableRight angles only, the way a good flowchart should look.
How elbow arrows find a clean, right-angle path around other shapes.
The idea
An elbow arrow only ever turns at right angles. Instead of cutting diagonally from A to B, it travels in horizontal and vertical runs, like wiring on a circuit board. That orthogonal style is what makes flowcharts and ER diagrams read so cleanly: the eye follows straight lines and crisp corners far more easily than a tangle of slants.
How it works
GoDraw treats the canvas as a grid and searches for a path between the two endpoints using an A*-style search, the same family of pathfinding used in games and maps. The search treats other shapes as obstacles and routes around them, so an arrow won't slice straight through a box that sits in the way.
If that fuller search isn't needed, GoDraw falls back to a simpler directed-Manhattan path that just steps toward the target. To keep dragging smooth, computed routes are cached, so nudging a shape doesn't re-solve the whole maze on every frame.
A Corner radius setting (0–60, default 24) rounds off the bends, turning sharp 90-degree corners into gentle curves.
Why it works this way
Pathfinding around obstacles costs more than drawing a straight line, but it pays off in legibility: arrows that dodge shapes keep a diagram tidy as it grows. For free-flowing sketches, curved arrows or the plain straight arrow are the better fit.