Port reordering #1717
Replies: 2 comments 7 replies
-
Probably you will have to create an element that looks and behaves like a port and control it's position using dia.Paper.prototype.options.restrictTranslate. If you figure it out please share your code. |
Beta Was this translation helpful? Give feedback.
-
You could also create a custom element tool (similar to Question is how to implement the UX. Perhaps dragging the port would create a link. If you just click on the port, it would switch the "shuffle ports" mode. And if the user clicks outside of the element, it would go back to "create links" mode. It's not clear to me, if this is what you meant in your question. We might create an example of this in upcoming days. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I want to implement port reordering inside a node. Can I make it clicking a port and dragging it?
After I've been reading the documentation I've not found any solution. Any thoughts?
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions