@opkeydev wrote:
Hi,
Is it possible to auto adjust diagram node without using any layout. i want to use layerSpacing and columnSpacing to add node in between of two nodes using drag and drop but i am not using any layout and i don’t want to use any layoutright now i am using this code for arrange but i want to achieve this without using any layout
myDiagram.layout =
$(go.LayeredDigraphLayout,
{
direction: 90,
isOngoing: true, // sets the postion of the node to current drag pos
layerSpacing: 50,
setsPortSpots: false,
columnSpacing: 40,
isRouting: true,
isValidLayout: true,
isViewportSized: true,
aggressiveOption: go.LayeredDigraphLayout.AggressiveMore,
cycleRemoveOption: go.LayeredDigraphLayout.CycleDepthFirst,
initializeOption: go.LayeredDigraphLayout.InitDepthFirstOut,
layeringOption: go.LayeredDigraphLayout.LayerOptimalLinkLength,
packOption: go.LayeredDigraphLayout.PackAll
});
Posts: 1
Participants: 1
