jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.38k stars 7.67k forks source link

Routing switch produces incorrect marker alignment #2551

Open davidjgraph opened 2 years ago

davidjgraph commented 2 years ago

Moving a segment of an orthogonally routed edge adds a control point and changes routing to segment router. The segment router doesn't handle marker alignment as well as the orth router.

When an orth edge is moved, we could probably check if a segment was added. If not, we could store the segment move distance from the original. This would cause problems when the overall routing shape changes.

We could reset the control point when a terminal is moved. This is the simplest method. Users might well want to move the edge segment again, but it's much easier to fix then the case of the arrowhead not aligning.

Otherwise, we could add jetty support to the segment router, but that would be a change in behaviour on re-loading a diagram and require a new style.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.