@darioschmidt wrote:
Hi, i extended the method doNoRelink of the relinkingTool to create a new element when the user finish the link drag operation.
let relinkingTool: RelinkingTool = this.diagram.toolManager.relinkingTool; let modelEditor = this; relinkingTool.doNoRelink = function (existingLink, toend) { go.RelinkingTool.prototype.doNoRelink.call(relinkingTool); createJunction(modelEditor, existingLink, toend); };
The extension is working well. The problem arise when i want to allow disconnected links in the relinking tool.
When I enable this feature
'relinkingTool.isUnconnectedLinkValid': true
the method doNoRelink() is not invoked when the user finish the drag operation without a valid target port.
Thanks, Dario
Posts: 6
Participants: 2