Hi Walter,
I have used groups. I have three columns basically, left, middle and right where Middle nodes are either connected to left nodes or right nodes or both. Left nodes and right nodes can never by connected through links. Also, Left section and Right section can interchange its poistion means Left can be moved to right and right can be moved to left but middle section will always be static.
For the link template, I have used orthogonal routing. It works fine but the problem is that if the node of left or right section is below the middle node then the link crosses the node of middle section to make the link. I want to avoid these vertial lines and want the lines only left and right using this link template. Can we avoid this crossing?
Please check the screen and suggest accordignly.
My link template is
var connectorLinkTemplate =
graphObj(go.Link,
{ routing: go.Link.Orthogonal, corner: 1 ,layerName : ‘Foreground’},
{ relinkableFrom: false, relinkableTo: false,
mouseEnter: function(e, link) { highlightLink(link, true); },
mouseLeave: function(e, link) { highlightLink(link, false); }
},
graphObj(go.Shape, { stroke: “gray”, strokeWidth : 0.2, cursor : “pointer”},
new go.Binding(“stroke”, “isHighlighted”,function(h, shape) { return h ? highlightColor : “gray” }).ofObject(),
new go.Binding(“strokeWidth”, “isHighlighted”, function(h) { return h ? 0.2 : 0.2; }).ofObject()
),
graphObj(go.Shape, { stroke: “gray”, toArrow: “Standard”, fill: “gray”, scale:1 },
new go.Binding(“stroke”, “isHighlighted”, function(h) { return h ? highlightColor : “gray”; }).ofObject(),
new go.Binding(“fill”, “isHighlighted”, function(h) { return h ? highlightColor : “gray”; }).ofObject()
),
graphObj(go.Shape, { stroke: “gray”, fromArrow: “backward”, fill: “gray”, scale:1 },
new go.Binding(“stroke”, “isHighlighted”, function(h) { return h ? highlightColor : “gray”; }).ofObject(),
new go.Binding(“fill”, “isHighlighted”, function(h) { return h ? highlightColor : “gray”; }).ofObject()
)
);
Please suggest, how I can achieve the same.
Thank you.