@JP wrote:
Hi,
I am trying to convert http://gojs.net/latest/extensions/PolylineLinkingTool.js to typescript.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.
Posts: 4
Participants: 2