Hello,
I am trying to figure out a way to set a node's position and size via code. I tried something like:
node.offsetX = newPosition.x;
node.offsetY = newPosition.y;
and
node.width = newSize.width;
node.height = newSize.height;
Unfortunately, the diagram is not updated accordingly. However, I didn't find any method in DiagramComponent or in the Node class, which would allow me to update these properties. The only way I was able to make it work somehow was by calling diagram.removeNode and diagram.addNode. Besides of being not a very nice solution it also came with problems with the current selection which was not updated correctly.
I am sure I just missed the correct methods or properties to call. Any help would be very much appreciated.
Thanks and best regards,
Justus