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

Link Point's not binding to model json in draggableLink Sample

$
0
0

@JP wrote:

Hi,
In this sample http://gojs.net/beta/samples/draggableLink.html, I have added a some lines to get the json after link is drawn.

  myDiagram.addDiagramListener("LinkDrawn", function(e){
console.log("-> LinkDrawn :"+e.diagram.model.toJson());

});

I have noticed that, after link drawn the points is not binded to linkDataArray?
Debugged output
-------------------------
"linkDataArray": [ {"from":-3, "fromPort":"R", "toPort":""} ]}

Can you explain me why the point is not binded in linkdataArray.

But If I drawn second link, then first link points is binded in linkdataarray:
Debugged output
-------------------------
**"linkDataArray": [ **
{"from":-4, "fromPort":"B", "toPort":"", "points":[120,72.6,120,82.6,120,168.8000030517578,190.9499969482422,168.8000030517578,261.8999938964844,168.8000030517578,271.8999938964844,168.8000030517578]},
{"from":-4, "fromPort":"R", "toPort":""}

Posts: 9

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6977

Latest Images

Trending Articles



Latest Images