From dadb1f4f4d65dc0c6243452c4c5a9699189bd37d Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 12 Oct 2021 11:05:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=A7=86=E5=9B=BE=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=85=88=E7=BA=A7=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=BA'=E8=A7=86=E5=9B=BE'=EF=BC=8C=E7=94=BB?= =?UTF-8?q?=E5=B8=83=E4=BC=98=E5=8C=96=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/DeDrag/shadow.vue | 8 -------- .../canvas/components/Editor/Preview.vue | 2 +- .../canvas/components/Editor/index.vue | 18 +++--------------- frontend/src/views/chart/chart/chart.js | 2 +- frontend/src/views/chart/group/Group.vue | 1 + frontend/src/views/panel/ViewSelect/index.vue | 2 +- frontend/src/views/panel/edit/index.vue | 12 +++++++++--- 7 files changed, 16 insertions(+), 29 deletions(-) diff --git a/frontend/src/components/DeDrag/shadow.vue b/frontend/src/components/DeDrag/shadow.vue index 0c86adef46..927096197e 100644 --- a/frontend/src/components/DeDrag/shadow.vue +++ b/frontend/src/components/DeDrag/shadow.vue @@ -47,13 +47,6 @@ export default { height = this.curComponent.style.height * this.curCanvasScale.scalePointHeight // console.log('curComponent left:' + left + 'top:' + top + 'width:' + width + 'height:' + height) } - // 当前默认为自适应 - // if (this.canvasStyleData.auxiliaryMatrix) { - // left = Math.round(left / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth - // width = Math.round(width / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth - // top = Math.round(top / this.curCanvasScale.matrixStyleHeight) * this.curCanvasScale.matrixStyleHeight - // height = Math.round(height / this.curCanvasScale.matrixStyleHeight) * this.curCanvasScale.matrixStyleHeight - // } // 防止阴影区超出边界 const xGap = left + width - this.canvasWidth @@ -107,7 +100,6 @@ export default {