列车详情显示调整

This commit is contained in:
fan 2021-12-10 13:36:59 +08:00
parent f2ceea6567
commit 04c57cda86
3 changed files with 2 additions and 4 deletions

View File

@ -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);
});

View File

@ -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;

View File

@ -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