resetZoom method

void resetZoom([
  1. num? newscale
])

This command sets the Diagram#scale to a new scale value, by default 1. This is normally invoked by the Ctrl-0 keyboard shortcut.

This method may be overridden, but you should consider calling this base method in order to get all of its functionality. 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. @see #canResetZoom

Implementation

void resetZoom([_i2.num? newscale]) {
  _i4.callMethod(
    this,
    'resetZoom',
    [newscale ?? _i5.undefined],
  );
}