How can "zoomToFit()" fit the diagram to view and set the scale up to 100%?

I have tried the diagram method zoomToFit(). It sets the diagram fit the view with the scale not get over 100%. That is, if the diagram is now at 150% and still not fill the view, scale will be set back to 100% not larger. Any way to change or override this method? There is a need to zoomToFit() with the scale set larger than 100% at the same time.

Temporarily set CommandHandler.defaultScale to the maximum scale value that you will want zoomToFit to allow.

You can’t just set that property permanently because CommandHandler.resetScale is the principle user of that property.