contentAlignment property
Spot
get
contentAlignment
Gets or sets the content alignment Spot of this Diagram, to be used in determining how parts are positioned when the #viewportBounds width or height is larger than the #documentBounds.
For instance a spot of Spot.Center would ensure that the Diagram's contents are always centered in the viewport.
If you want the content to be aligned only initially, use #initialContentAlignment instead.
The default value is Spot.Default, which causes no automatic scrolling or positioning. When the value is not Default, any value for #initialContentAlignment or #initialPosition is ignored.
Setting this property has the same effect as implementing a "LayoutCompleted" DiagramEvent listener that scrolls the viewport to align the content.
Implementation
_i3.Spot get contentAlignment => _i4.getProperty(
this,
'contentAlignment',
);
set
contentAlignment
(Spot value)
Implementation
set contentAlignment(_i3.Spot value) {
_i4.setProperty(
this,
'contentAlignment',
value,
);
}