layoutDiagram method

void layoutDiagram([
  1. bool? invalidateAll
])

Perform all invalid layouts. If the optional argument is true, this will perform all of the layouts (Diagram#layout and all Group#layouts), not just the invalid ones.

Under normal circumstances you should not need to call this method, because layouts will be performed automatically after they become invalid. However you may have disabled automatic layouts by setting Layout#isInitial and/or Layout#isOngoing to false, or by restricting a Part's Part#layoutConditions. If that is the case you might call this method (perhaps due to a user command) to perform the layout at a time of your choosing. @param {boolean=} invalidateAll If true, this will explicitly set Layout#isValidLayout to false on each Layout in the diagram.

Implementation

void layoutDiagram([_i2.bool? invalidateAll]) {
  _i4.callMethod(
    this,
    'layoutDiagram',
    [invalidateAll ?? _i5.undefined],
  );
}