I want my link label to be displayed on the side of the link and not cutting through it. I am able to see the example for normal links , How can i do the same for ORTHOGONAL links in flowchart example ?
myDiagram.linkTemplate =
fg(go.Link, {
routing: go.Link.AvoidsNodes,
adjusting: go.Link.End,
curve: go.Link.JumpOver,
corner: 5,
toShortLength: 4,
relinkableFrom: true,
relinkableTo: true,
reshapable: true,
resegmentable: true,
doubleClick: linkDetails,
mouseEnter: function(e, link) {
link.findObject(“HIGHLIGHT”).stroke = “rgba(30,144,255,0.2)”; //NO I18n
},
mouseLeave: function(e, link) {
link.findObject(“HIGHLIGHT”).stroke = “transparent”; //NO I18n
}
},
new go.Binding(“points”).makeTwoWay(), //NO I18n
fg(go.Shape, {
isPanelMain: true,
strokeWidth: 8,
stroke: “transparent”, //NO I18n
name: “HIGHLIGHT” //NO I18n
}),
fg(go.Shape, {
isPanelMain: true,
stroke: “gray”, //NO I18n
strokeWidth: 2
},
new go.Binding(“stroke”, “color”).makeTwoWay() //NO I18n
),
fg(go.Shape, {
toArrow: “standard”, //NO I18n
stroke: null,
fill: “gray” //NO I18n
}),
fg(go.Panel, “Auto”, { //NO I18n
visible: true,
name: “LABEL”, //NO I18n
segmentFraction: 0.5,
segmentOffset: new go.Point(0, -20),
segmentOrientation: go.Link.OrientUpright
},
new go.Binding(“visible”, “visible”).makeTwoWay(), //NO I18n
fg(go.Shape, “RoundedRectangle”, { //NO I18n
fill: “#FFF”, //NO I18n
stroke: null
}),
fg(go.TextBlock, {
textAlign: “center”, //NO I18n
font: “10pt helvetica, arial, sans-serif”, //NO I18n
stroke: “black”, //NO I18n
background: “#FFF”, //NO I18n
editable: false
},
new go.Binding(“text”, “text”).makeTwoWay() //NO I18n
)
)