documentBounds property

Rect get documentBounds

This read-only property returns the bounds of the diagram's contents, in document coordinates.

This is normally computed and set by #computeBounds during Diagram updates that can occur for any number of relevant reasons, such as a Part changing size.

The Diagram's documentBounds can have an unvarying specific value by setting the #fixedBounds property.

If the documentBounds are larger than the #viewportBounds, scrollbars will appear on desktop browsers. You can disable scrolling with the #allowHorizontalScroll and #allowVerticalScroll properties, and you can disable scrollbars themselves with the #hasHorizontalScrollbar and #hasVerticalScrollbar properties.

Implementation

_i3.Rect get documentBounds => _i4.getProperty(
      this,
      'documentBounds',
    );
set documentBounds (Rect value)

Implementation

set documentBounds(_i3.Rect value) {
  _i4.setProperty(
    this,
    'documentBounds',
    value,
  );
}