-
I am trying to use this library to make editable HMI's for I/O control. So far, it has been going great except for the very annoying path routing using Orthogonal Link Routing. I don't think it is an issue with the orthogonal path router but rather the nodes are not snapping to the grid at the ports (left, right, top, bottom, not corners). So if my grid is set to 25px and I have a node that is 30px and another that is 45px side by side, I cannot get the links to be straight between them. Could there be an option to snap to the center of the Node instead of top left corner? Note: I updated to 3.0.0 beta2. Also, great work on the library! I added blazor to my WPF application in order to use this awesome diagramming library! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello, thank you for the kind words. Do you have a picture showing the issue? From the explanation alone, I don't really get it sorry. |
Beta Was this translation helpful? Give feedback.
-
Tada! If I change the library to use NodeModel instead of MovableModel in order to gain access to node size and use the size on pointer down and subtract the middle point when setting position, it snaps the nodes to the center instead: I have a PR for you: #241 |
Beta Was this translation helpful? Give feedback.
Tada! If I change the library to use NodeModel instead of MovableModel in order to gain access to node size and use the size on pointer down and subtract the middle point when setting position, it snaps the nodes to the center instead:
I have a PR for you: #241