|
@@ -72,8 +72,10 @@ export default {
|
|
|
that.view.scene = that.drawMainScene
|
|
|
that.view.fitSceneToView();
|
|
|
that.canvasLoading = false;
|
|
|
- that.view.maxScale = that.view.scale * 1000;
|
|
|
- that.$refs.canvasFun.maxScale = that.view.maxScale;
|
|
|
+ that.view.maxScale = that.view.scale * 10;
|
|
|
+ that.view.minScale = that.view.scale;
|
|
|
+ that.$refs.canvasFun.everyScale = that.view.scale;
|
|
|
+ that.drawMainScene.isSpaceSelectable = false;
|
|
|
if (that.OutlineFlag) {
|
|
|
this.getFloorData()
|
|
|
}
|
|
@@ -132,7 +134,6 @@ export default {
|
|
|
},
|
|
|
// 清除切割划分
|
|
|
clearDivide() {
|
|
|
- console.log(this.drawMainScene)
|
|
|
this.drawMainScene.clearSceneMark()
|
|
|
},
|
|
|
// 撤销
|
|
@@ -143,7 +144,7 @@ export default {
|
|
|
redo() { },
|
|
|
// 缩放
|
|
|
scale(val) {
|
|
|
- let scale = this.view.scale
|
|
|
+ let scale = this.view.scale;
|
|
|
this.view.scaleByPoint(val / scale, this.cadWidth / 2, this.cadHeight / 2)
|
|
|
},
|
|
|
},
|
|
@@ -151,7 +152,10 @@ export default {
|
|
|
"view.scale": {
|
|
|
handler(n) {
|
|
|
if (this.$refs.canvasFun) {
|
|
|
- this.$refs.canvasFun.sliderVal = n;
|
|
|
+ // this.view.minScale
|
|
|
+ // console.log(n / this.view.minScale)
|
|
|
+ // console.log(n /this.view.minScale)
|
|
|
+ // this.$refs.canvasFun.sliderVal = n / this.view.minScale;
|
|
|
}
|
|
|
}
|
|
|
}
|