|
@@ -71,15 +71,15 @@ export default {
|
|
|
|
|
|
let elements = this.$refs.jsm.getElementsByClassName("jsmind-inner")[0];
|
|
|
|
|
|
- // let sw = (700 / jm.view.size.w).toFixed(2);
|
|
|
+ let sw = (700 / jm.view.size.w).toFixed(2);
|
|
|
|
|
|
|
|
|
- elements.style.height = `${jm.view.size.h}px`;
|
|
|
- // elements.style.width = `${jm.view.size.w * sw}px`;
|
|
|
+ elements.style.height = `${jm.view.size.h * sw}px`;
|
|
|
+ elements.style.width = `${jm.view.size.w * sw}px`;
|
|
|
|
|
|
- // jm.view.minZoom = sw; //
|
|
|
- // jm.view.setZoom(jm.view.minZoom); // 应用最小缩放级别
|
|
|
- // jm.view.show(); // 重绘思维导图以应用缩放变化
|
|
|
+ jm.view.minZoom = sw;
|
|
|
+ jm.view.setZoom(jm.view.minZoom); // 应用最小缩放级别
|
|
|
+ jm.view.show(); // 重绘思维导图以应用缩放变化
|
|
|
}
|
|
|
},
|
|
|
};
|