canResetZoom method

bool canResetZoom([
  1. num? newscale
])

This predicate controls whether or not the user can invoke the #resetZoom command.

This method may be overridden, but you should consider calling this base method in order to get all of its functionality. This method must not have any side-effects. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {number=} newscale This defaults to Diagram#defaultScale, which is normally 1.0. The value should be greater than zero. @return {boolean} This returns true if Diagram#allowZoom is true. and if the new scale is within the range of Diagram#minScale and Diagram#maxScale. @see #resetZoom

Implementation

_i2.bool canResetZoom([_i2.num? newscale]) => _i4.callMethod(
      this,
      'canResetZoom',
      [newscale ?? _i5.undefined],
    );