Hi,
I want to restrict relinking only to other ports on the same node.
So I tried to use link validation:
diagram.toolManager.relinkingTool.linkValidation = function(fromnode, fromport, tonode, toport, link) {
return tonode == link.toNode;
};
But this only works for the end of a link. For the beginning I should compare fromnode with link.fromNode.
The Problem is: I don’t know which side of the link I am dragging.
Is there a way to get that information?
Thanks in advance.