computeBounds method
This is called during a Diagram update to determine a new value for #documentBounds. By default this computes the union of the bounds of all the visible GraphObjects in this Diagram, unless Diagram#fixedBounds is set. This ignores parts for which Part#isVisible is false and ignores those for which Part#isInDocumentBounds is false. The returned value includes the addition of the #padding margin.
To compute the bounds of a collection of Parts, call #computePartsBounds.
Implementation
_i3.Rect computeBounds([_i3.Rect? rect]) => _i4.callMethod(
this,
'computeBounds',
[rect ?? _i5.undefined],
);