function PolylineLinkingTool() {
go.LinkingTool.call(this);
this.name = “PolylineLinking”;
this.portGravity = 0; // gotta click on a target port in order to complete the link
}
go.Diagram.inherit(PolylineLinkingTool, go.LinkingTool);
Instead of those lines I have used in typescript as
class PolylineLinkingTool extends go.LinkingTool{
constructor(){
super()
this.name = “PolylineLinkingTool”;
}
}
If I have used like this I am not able to draw link between the nodes.
If you load the unmodified PolylineLinking.js file, does it work in your app? If it doesn’t, then there must be something wrong in how it’s being used.