HI
I am facing Link Overlapping Issue in Case Self Link for Node, I am Using LayeredDigraphLayout
and using two Link templates for linking one for Normal linkages And Second for Self-links.
Layout:
layout: $(go.LayeredDigraphLayout,
{
direction: 90,
layerSpacing: 120,
columnSpacing: 40,
linkSpacing: 60,
setsPortSpots: false,
packOption: go.LayeredDigraphLayout.PackMedian, //change For Bug
// setsChildPortSpot: false
}),
Link Template:
//these Template for Normal Linkages
-
myDiagram.linkTemplatemap1 =
$(go.Link,
{
curviness: 5,
layerName: “Background”,
routing: go.Link.Orthogonal,
corner: 8,
// mouse-overs subtly highlight links:
mouseEnter: (e, link) => link.findObject(“HIGHLIGHT”).stroke = “rgba(92, 8, 51, 0.26)”,
mouseLeave: (e, link) => link.findObject(“HIGHLIGHT”).stroke = “transparent”,
selectionAdorned: false,
//setsPortSpot: false, setsChildPortSpot: false//
},
//these Template for Self-Links
2. var SelflinkTemplate =
$(go.Link,
{
layerName: “Background”,
routing: go.Link.AvoidsNodes,
//fromSpot: go.Spot.BottomSide,
//toSpot: go.Spot.Top,
fromSpot: go.Spot.BottomSide,
toSpot: go.Spot.Right,
corner: 5,
//setsPortSpot: false, setsChildPortSpot: false//
},
Diagram: