Hi,
I am using your JS and it is licensed version.But I am facing some issue regarding the links in the diagram.When I am drawing the links between two nodes it is not showing in the diagram .But the links data are present in the linkdataarray object in the model.My final model is appearing linke this.
{ “class”: “go.GraphLinksModel”,
“linkFromPortIdProperty”: “fromPort”,
“linkToPortIdProperty”: “toPort”,
“nodeDataArray”: [
{“appId”:“f89e1c6f-930f-49c5-a6ca-4c0d86d46d58”, “text”:“Acumatica”, “category”:“Default”, “type”:“app”, “imagePath”:“https://www.appseconnect.com/wp-content/uploads/2018/01/SAp-business-one.png”, “key”:“86798485-fce7-4e68-ae28-e1c6953e8da1”, “loc”:“280 -180”, “nodedata”:{“Label”:“dd”, “ExecutionType”:“get”, “AppId”:“c7bb36c4-4ee9-49bc-bdf7-12112d14668d”, “AppVersionid”:“52”, “AppEntityId”:“8a5fc46f-168b-473c-845a-610cab7f491a”, “AppEntityActionId”:“668145a0-35a1-413b-922a-ed402ebab7d5”}},
{“appId”:“a9f5369d-0921-4618-837c-fedb43af05ee”, “text”:“Amazon”, “category”:“Default”, “type”:“app”, “imagePath”:“https://www.appseconnect.com/wp-content/uploads/2018/01/SAp-business-one.png”, “key”:“217f51e3-733d-49d6-b408-7c66aea3f3d2”, “loc”:“530 -20”, “nodedata”:{“Label”:“”, “ExecutionType”:“”, “AppId”:“”, “AppVersionid”:null, “AppEntityId”:null, “AppEntityActionId”:null}}
],
“linkDataArray”: [ {“from”:“86798485-fce7-4e68-ae28-e1c6953e8da1”, “to”:“217f51e3-733d-49d6-b408-7c66aea3f3d2”, “fromPort”:“B”, “toPort”:“T”, “text”:2, “ExecutionOrder”:1, “key”:“e573167f-105c-41af-aaca-d019abf0156c”} ]}
my link template is this
this.diagram(go.Link,
{
routing: go.Link.Orthogonal, // may be either Orthogonal or AvoidsNodes
curve: go.Link.JumpOver,
corner: 5, toShortLength: 4,
relinkableFrom: false,
relinkableTo: false,
reshapable: true,
resegmentable: true,
selectionAdornmentTemplate: this.diagram(go.Adornment,
this.diagram(go.Shape,
{ isPanelMain: true, stroke: “red”, strokeWidth: 1 }),
this.diagram(go.Shape,
{ fromArrow: “PentagonArrow”, fill: “red”, stroke: null, scale: 1 }),
this.diagram(go.Shape,
{ toArrow: “Standard”, fill: “red”, stroke: null, scale: 1 })
) // end Adornment
},
new go.Binding(“points”).makeTwoWay(),
this.diagram(go.Shape, // the link path shape
{ isPanelMain: true, stroke: "gray", strokeWidth: 2 },
new go.Binding("stroke", "statusfill")),
this.diagram(go.Shape, // the arrowhead
{ fromArrow: "PentagonArrow", stroke: null, fill: "gray" },
new go.Binding("fill", "statusfill")),
this.diagram(go.Shape, // the arrowhead
{ toArrow: "standard", stroke: null, fill: "gray" },
new go.Binding("fill", "statusfill")),
this.diagram(go.Panel, "Auto", // the link label, normally not visible
{ visible: false, name: "LABEL", segmentIndex: 2, segmentFraction: 0.5 },
new go.Binding("visible", "visible").makeTwoWay(),
this.diagram(go.Shape, "RoundedRectangle", // the label shape
{ fill: "#F8F8F8", stroke: null }),
this.diagram(go.TextBlock, new go.Binding("text", "typetext"), // the label
{
textAlign: "center",
font: "10pt helvetica, arial, sans-serif",
stroke: "#333333",
editable: false
}
)
)
);
And my diagram is looking like this