1

I am aware of the method moveCells, but I rather would like to move the cell to a new absolute position (instead of relative deltas). I tried cloning and updating the geometry, without success:

var geo = graph.getCellGeometry(cell).clone();
geo.x = 10;
model.setGeometry(cell, geo);

What am I missing?

Boris
  • 338
  • 2
  • 20

1 Answers1

1

After updating the geometry, you also need to refresh the graph.

var geo = graph.getCellGeometry(cell).clone();
geo.x = 10;
model.setGeometry(cell, geo);
graph.refresh(); // update the graph
Boris
  • 338
  • 2
  • 20