Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7425

Not able to add Link Data without 'to' property gojs

$
0
0

@anupamsinghbisht wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7425

Latest Images

Trending Articles



Latest Images