mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +01:00
Add additional zoom out
This commit is contained in:
parent
925ab9e3c2
commit
c9596ba5ab
@ -335,7 +335,7 @@ class Designer extends Events {
|
|||||||
zoomOut(factor = 1.2) {
|
zoomOut(factor = 1.2) {
|
||||||
const model = this.getModel();
|
const model = this.getModel();
|
||||||
const scale = model.getZoom() * factor;
|
const scale = model.getZoom() * factor;
|
||||||
if (scale <= 3.0) {
|
if (scale <= 7.0) {
|
||||||
model.setZoom(scale);
|
model.setZoom(scale);
|
||||||
this._workspace.setZoom(scale);
|
this._workspace.setZoom(scale);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user