I am using LayereddiGraph Layout.
In that , I have to position the nodes with locations and also the nodes without locations in that layout.
For Eg : nodeDataArray = [
{name : ‘Six’, loc : ‘0 0’},
{name : ‘Seven’, loc : ‘0 30’},
{name : ‘Eight’}
];
In the above data, node Six and Seven has location and node Eight doesn’t has location. So I have to arrange this node in layereddigraph layout.
That is the new node comes from server without location. Six and Seven comes initially and the user saved the location in server.
So I have to arrange that node inbetween or without overlapping anywhere connecting Six and Seven, so that the nodes don’t overlap.
Sorry for the inconvenience…
Node size will be (10,10)
Eights location should be between Six and Seven i.e 0 15 or below those nodes assuming random location
Would there have been a LayeredDigraphLayout that had happened originally with just the two nodes and one link? Are you trying to preserve the the locations of all previously laid-out nodes, or only those that had been manually moved by the user?
Yes, I have to preserve the user dragged location.
But also the next time, when the Server returns data, it gives us the above existed nodes with locations and a node named Exp as the new node without location as below.
Hi Walter,
Thanks for your immediate response.
I asked my TL your doubts, he said that if any new node comes,then we have to redraw the layout diagram and I have completed that behavior by Layout Invalidations.