initialAutoScale property

EnumValue get initialAutoScale

Gets or sets how the scale of the diagram is automatically set at the time of the "InitialLayoutCompleted" DiagramEvent, after the model has been replaced.

The only accepted values are listed as constant properties of Diagram, such as Diagram.None, Diagram.Uniform, or Diagram.UniformToFill. Setting this will change the Diagram's Diagram#scale and Diagram#position, if appropriate.

If you want to always automatically scale the Diagram, set #autoScale instead. If you want to set the scale to a specific value on initialization (each time the model is replaced), set #initialScale.

The default value is Diagram.None -- the scale and position are not automatically adjusted according to the area covered by the document.

Setting this property to Diagram.Uniform is basically the same as calling #zoomToFit in an "InitialLayoutCompleted" DiagramEvent listener.

Note that depending on the values of #maxScale and #minScale, the actual value for #scale might be limited.

Implementation

_i3.EnumValue get initialAutoScale => _i4.getProperty(
      this,
      'initialAutoScale',
    );
set initialAutoScale (EnumValue value)

Implementation

set initialAutoScale(_i3.EnumValue value) {
  _i4.setProperty(
    this,
    'initialAutoScale',
    value,
  );
}