Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6972

Add new Node between two nodes without arranging whole layout

$
0
0

@opkeydev wrote:

Hi,
i am using LayeredDigraphLayout with following options
layout: $(go.LayeredDigraphLayout,
{
direction: 90,isOngoing: false,isInitial :false,
layerSpacing: 50, columnSpacing: 40,
setsPortSpots: false,
}),
now i just want to drop a node on link and set some spacing when it get added without effecting any other node position in diagram
right now i am able to add new node between two nodes but i am not be able to add spacing between it and when i use these propertyes
myDiagram.layout.isValidLayout = false;
myDiagram.layout.invalidateLayout(true);

my whole diagram get arranged but i only want to arrange that newly added node only without effecting whole layout i have also tried layoutConditions on node-template and set Part.isLayoutPositioned to false but then i my newly added node also get effected. Please provide me some solution for this


i need some spacing between this red marked node and link so that it looks same as all links and node look like

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6972

Trending Articles