hi,
for creating graph like flowchart i am not using any layout in mydiagram when i create a node and selfloop it. It looks like this
once i set the layout dynamically using this code
myDiagram.layout =
$(go.LayeredDigraphLayout,
{
direction: 90,
isOngoing: false, // sets the postion of the node to current drag pos
layerSpacing: 50,
setsPortSpots: false,
columnSpacing: 90,
isRouting: true,
isValidLayout: true,
isViewportSized: true,
aggressiveOption: go.LayeredDigraphLayout.AggressiveMore,
cycleRemoveOption: go.LayeredDigraphLayout.CycleDepthFirst,
initializeOption: go.LayeredDigraphLayout.InitDepthFirstOut,
layeringOption: go.LayeredDigraphLayout.LayerLongestPathSource,
packOption: go.LayeredDigraphLayout.PackAll
});
now my self loop of node get destroyed to this
let me know how would i fix this in LayeredDigraphLayout too