Hi, i want to add a node to the diagram on the right of the rightmost node, so i find the position of the rightmost node is x and y. Now i want to add a new node with the code like this:
var nodeData= NodeArray;
nodeData.loc = x + 200 + “” + y;
myDiagram.model.addNodeData(nodeData);
//the nodeArray is like
//NodeArray[0]={category: “pic”, text: “aggregator”,img: “aggregator.png”,key : “aggregator”};
this doesn’t work and the node added to the diagram at the center. I don’t know whether i need a startTransaction and a commitTransaction or not?
Thanks for the help :)