-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make links always attach to nodes orthogonally #417
Comments
Hello, can you show in that same screenshot how you want them to be? I'm afraid I don't understand what you mean |
Hey, I tried to mock the desired behaviour: The point being that all links leave their nodes orthogonally, not tangentially (see yellow markers and red links). This becomes even more apparent it there are Arrows etc. at the ends of the links. If the links attach to the nodes tangentially, as in the first screenshot (yellow markers), the arrowheads don't point to the nodes, but sideways. |
Oh, I see now! It does look very ugly with arrowheads, you're right. If you know your way around SVG/paths, you could try to create a custom path generator that returns the links the way you want them, until I have the chance to try to fix them myself |
I'll have a look, thanks! |
Hi, unfortunately I didn't manage to fix the link routing yet. What I found was that maybe the desired behaviour can be achieved without touching the routing logic, but instead by changing the rotation value on the anchors itself - am I right? This may be a bit easier to do. What do you think? |
If I'm using the Smooth PathGenerator with nodes without anchors, the links often attach to the node tangentially, not orthogonally:
How can I change this so that the links always attach orthogonally to the border of the node?
The text was updated successfully, but these errors were encountered: