Hi, I am not able to add Link Data using model.addLinkData function without ‘to’ property in it gojs
object is var linkdata{ from ‘key’, points : points_array}.
template is as follows:
var GO = go.GraphObject.make;
GO("Link",
{
routing: go.Link.AvoidsNodes,
selectable: true,
reshapable: true,
resizable: true,
relinkableTo: true,
curve: go.Link.JumpOver,
corner: 10
},
new go.Binding("points").makeTwoWay(),
GO("Shape",
{ strokeWidth: 1.5 }, new go.Binding("scale", "scale", function (s) { 1 / myDiagram.scale }).makeTwoWay()),
GO("Shape",
{ toArrow: "Standard", stroke: null })
)
have also enable:
"linkingTool.isUnconnectedLinkValid": true,
"relinkingTool.isUnconnectedLinkValid": true