viewportBounds property
Rect
get
viewportBounds
This read-only property returns the bounds of the portion of the Diagram in document coordinates that is viewable from its HTML Canvas. Typically when the viewport bounds are smaller than the #documentBounds, the user can scroll or pan the view.
The x and y coordinates are equal to the #position of the Diagram, and the width and height are equal to the Diagram's canvas width and height, divided by the #scale.
Implementation
_i3.Rect get viewportBounds => _i4.getProperty(
this,
'viewportBounds',
);
set
viewportBounds
(Rect value)
Implementation
set viewportBounds(_i3.Rect value) {
_i4.setProperty(
this,
'viewportBounds',
value,
);
}