From 7d826a4d59b19fb75cdf414ccad339d9cb964a1d Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Tue, 8 Sep 2020 15:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=BC=A0=E6=A0=87=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Station/index.js | 1 + src/jmapNew/shape/element/ETextName.js | 45 -------------------------- 2 files changed, 1 insertion(+), 45 deletions(-) diff --git a/src/jmapNew/shape/Station/index.js b/src/jmapNew/shape/Station/index.js index ab5a48392..f24fbe4e6 100644 --- a/src/jmapNew/shape/Station/index.js +++ b/src/jmapNew/shape/Station/index.js @@ -79,6 +79,7 @@ export default class Station extends Group { fontWeight: model.fontWeight, fontSize: model.kmPostFont || 18, fontFamily: style.fontFamily, + silent: !model.visible, text: model.kmPost, textAlign: 'middle', textVerticalAlign: 'top', diff --git a/src/jmapNew/shape/element/ETextName.js b/src/jmapNew/shape/element/ETextName.js index 454b6d4f2..9966bc56f 100644 --- a/src/jmapNew/shape/element/ETextName.js +++ b/src/jmapNew/shape/element/ETextName.js @@ -24,48 +24,3 @@ export default function ETextName(model) { }); return TextName; } -// export default class ETextName extends Group { -// constructor(model) { -// super(); -// this.model = model; -// this.zlevel = model.zlevel; -// this.z = model.z; -// this.create(); -// } - -// create() { -// this.TextName = new Text({ -// _subType: this.model._subType, -// zlevel: this.zlevel, -// z: this.z, -// silent: this.model.silent || false, -// style: { -// x: this.model.x, -// y: this.model.y, -// text: this.model.text, -// textFont: this.model.textFont, -// textFill: this.model.textFill, -// textAlign: this.model.textAlign, -// textPosition: this.model.textPosition || 'inside', -// textVerticalAlign: this.model.textVerticalAlign || null -// } -// }); -// this.add(this.TextName); -// } - -// setStyle(model) { -// this.TextName.setStyle(model); -// } - -// setColor(color) { -// this.TextName.setStyle('textFill', color); -// } - -// hide() { -// this.TextName.hide(); -// } - -// show() { -// this.TextName.show(); -// } -// }