invalidateLayout method

void invalidateLayout([
  1. num? condition
])

Invalidate the Layout that is responsible for positioning this Part. If this part is in a Group, invalidate its Group#layout, if it has one. Otherwise invalidate the Diagram#layout.

But note that if #isLayoutPositioned is false, or if it is in a temporary Layer, or if it is not in a diagram or group, no layout is invalidated. @param {number=} condition the reason that the layout should be invalidated; if this argument is not supplied, any value of #layoutConditions other than Part.LayoutNone will allow the layout to be invalidated.

Implementation

void invalidateLayout([_i2.num? condition]) {
  _i4.callMethod(
    this,
    'invalidateLayout',
    [condition ?? _i5.undefined],
  );
}