zoomToFit method

void zoomToFit()

Scales the Diagram to uniformly fit into the viewport. To have this done automatically, set the Diagram's #autoScale to Diagram.Uniform.

To Animate zoomToFit, use CommandHandler#zoomToFit. @see CommandHandler#zoomToFit

Implementation

void zoomToFit() {
  _i4.callMethod(
    this,
    'zoomToFit',
    [],
  );
}