sorry for the delay, the code is in a newtwork with no internet connection.
this is the group code:
'(go.Group, 'Vertical',
{
isSubGraphExpanded: true,
layout: (go.TreeLayout,
{
treeStyle: go.TreeLayout.StyleLastParents,
angle: 0,
layerSpacing: 0,
alignment: go.TreeLayout.AlignmentStart,
nodeIndent: 60,
nodeIndentPastParent: 1,
nodeSpacing: 10,
layerSpacingParentOverlap: 1,
portSpot: new go.Spot(1, 0.8, 0, 0),
childPortSpot: go.Spot.Right,
})
},
(go.Panel,
(go.TextBlock, // for site Name
{
margin: new go.Margin(200, 0, 0, 0),
width: 155,
isMultiline: false,
editable: false,
stroke: $(go.Brush, { color: ‘rgb(11, 64, 109)’ }),
font: “bold 12pt rubikregular”,
textAlign: “center”
},
‘תק"שים מחוברים’,
new go.Binding(“visible”, “”, function (obj) {
return obj.part.memberParts.count > 1;
}).ofObject()
), // go.TextBlock
{margin: new go.Margin(0,0,0,0)},
)
);`
and this is the link template:
$(go.Link,
{
corner: 1,
selectable: false,
routing: go.Link.AvoidsNodes,
curve: go.Link.AvoidsNodes
},
$(go.Shape, {strokeWidth: 2, stroke: 'rgb(11, 64, 109)'}),
$(go.Shape, {fromArrow: "Block", fill: 'rgb(11, 64, 109)'}),
$(go.Shape, {toArrow: "Block", fill: 'rgb(11, 64, 109)'}),
)
the link looks like this now:
