initialDocumentSpot property

Spot get initialDocumentSpot

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

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

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

Implementation

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

Implementation

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