joint
joint copied to clipboard
fix(routers.RightAngle): various problems
Description
This PR introduces fixes to the right-angle router. The fixes include changes to the connection of vertices, handling the first and last vertex, creating a loop for the last vertex in case the segments overlap, and finding shorter routes alongside the horizontal and vertical sides of a shape.
Motivation and Context
This PR improves right-angle router in order for it to give better results.
Screenshots (if appropriate):
| Before | After |
|---|---|