commitLayout method

void commitLayout()

When using a LayoutNetwork, commit changes to the diagram by setting Node positions and by routing the Links. This is called by #updateParts within a transaction.

You should not call this method -- it is a "protected virtual" method. This may be overridden by subclasses of Layout. By default this method is implemented as follows:

protected commitLayout() {
  if (this.network === null) return;
  var vit = this.network.vertexes.iterator;
  while (vit.next()) {
    var vert = vit.value;
    vert.commit();
  }
  if (this.isRouting) {
    var eit = this.network.edges.iterator;
    while (eit.next()) {
      var edge = eit.value;
      edge.commit();
    }
  }
}

Please read the Introduction page on Extensions for how to override methods and how to call this base method.

Implementation

void commitLayout() {
  _i4.callMethod(
    this,
    'commitLayout',
    [],
  );
}