initialViewportSpot property

Spot get initialViewportSpot

Gets or sets the spot in the viewport that should be coincident with the #initialDocumentSpot of the document when the document is first initialized. The default value is Spot.TopLeft.

If you set this, often you will also want to set #initialDocumentSpot. If you set #initialPosition, it will take precedence over this property.

Setting this property and #initialDocumentSpot has the same effect as implementing an "InitialLayoutCompleted" DiagramEvent listener that calls #alignDocument.

Implementation

_i3.Spot get initialViewportSpot => _i4.getProperty(
      this,
      'initialViewportSpot',
    );
set initialViewportSpot (Spot value)

Implementation

set initialViewportSpot(_i3.Spot value) {
  _i4.setProperty(
    this,
    'initialViewportSpot',
    value,
  );
}