Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6969

RelinkingTool: unconnected links and doNoRelink()

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles