ensureBounds method

void ensureBounds()

Measures if needed to make sure the GraphObject#measuredBounds and GraphObject#naturalBounds are all real numbers, primarily to get the actual width and height. GraphObject#actualBounds will get a real width and height, but the x and y values may continue to be NaN if they were that way beforehand.

This is sometimes necessary to call when defining custom layouts or implementing virtualization, so that it can work with the actual size of the nodes.

For efficiency, do not call this method unnecessarily. @since 1.6 @see Diagram#ensureBounds

Implementation

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