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

Needed help to convert PolylineLinking.js to Typescript

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles