initialScale property

num get initialScale

Gets or sets the initial scale of this Diagram in the viewport, eventually setting the #scale. This value is relevant on initialization of a #model or if #delayInitialization is called. The default is NaN.

Setting this property has the same effect as implementing an "InitialLayoutCompleted" DiagramEvent listener that sets #scale.

Implementation

_i2.num get initialScale => _i4.getProperty(
      this,
      'initialScale',
    );
set initialScale (num value)

Implementation

set initialScale(_i2.num value) {
  _i4.setProperty(
    this,
    'initialScale',
    value,
  );
}