From 04c57cda868b7c25e3b5e888bb9e7a84ff1e5a01 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 10 Dec 2021 13:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E8=AF=A6=E6=83=85=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/painter.js | 3 +-- src/jmapNew/shape/graph/Train/EMouse.js | 2 +- src/jmapNew/shape/graph/Train/index.js | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/jmapNew/painter.js b/src/jmapNew/painter.js index d20eacd1f..a642e3474 100644 --- a/src/jmapNew/painter.js +++ b/src/jmapNew/painter.js @@ -154,8 +154,7 @@ class Painter { trainDevice.overLapIndex = index; trainDevice.instance && this.mapInstanceLevel[deviceType.Train].remove(trainDevice.instance); trainDevice.instance = null; - trainDevice.zrOffsetX = this.$jmap.$options.offsetX; - trainDevice.zrOffsetY = this.$jmap.$options.offsetY; + trainDevice.zrOptions = this.$jmap.$options; this.add(trainDevice); }); diff --git a/src/jmapNew/shape/graph/Train/EMouse.js b/src/jmapNew/shape/graph/Train/EMouse.js index 2f73b2a61..f4301f899 100644 --- a/src/jmapNew/shape/graph/Train/EMouse.js +++ b/src/jmapNew/shape/graph/Train/EMouse.js @@ -171,7 +171,7 @@ class EMouse extends Group { } mouseover() { if (this.device.model.style.Train.common.trainTip) { - const zrRect = { x: this.device.model.model.zrOffsetX, y: this.device.model.model.zrOffsetY, width: store.state.config.width, height: store.state.config.height }; + const zrRect = { x: this.device.model.model.zrOptions.offsetX, y: this.device.model.model.zrOptions.offsetY, width: store.state.config.width, height: store.state.config.height }; this.device.deviceModel.__down = true; const arrowTextRect = this.arrowText.getBoundingRect(); const zrRectX = zrRect.x + zrRect.width; diff --git a/src/jmapNew/shape/graph/Train/index.js b/src/jmapNew/shape/graph/Train/index.js index 62a2875d8..c27dd9364 100644 --- a/src/jmapNew/shape/graph/Train/index.js +++ b/src/jmapNew/shape/graph/Train/index.js @@ -44,7 +44,6 @@ export default class Train extends Group { model.trainWindowModel.point = amendData.position; model.trainWindowModel.reversal = amendData.reversal; } - console.log(model.trainWindowModel, amendData); this.point = { x: model.trainWindowModel.point.x, y: model.trainWindowModel.point.y