diff --git a/src/jmapNew/shape/Station/index.js b/src/jmapNew/shape/Station/index.js index 2ad4e35e8..da5e0862f 100644 --- a/src/jmapNew/shape/Station/index.js +++ b/src/jmapNew/shape/Station/index.js @@ -95,6 +95,11 @@ export default class Station extends Group { textFill: model.subheadFontColor }); this.add(this.subheadText); + if (style.Station.text.borderShow) { + this.subheadText.setStyle('textPadding', [2, 6]); + this.subheadText.setStyle('textBorderColor', model.nameFontColor); + this.subheadText.setStyle('textBorderWidth', 1); + } } } } diff --git a/src/jmapNew/shape/StationStand/index.js b/src/jmapNew/shape/StationStand/index.js index 65c1eab04..5ddc3abfc 100644 --- a/src/jmapNew/shape/StationStand/index.js +++ b/src/jmapNew/shape/StationStand/index.js @@ -98,8 +98,8 @@ class StationStand extends Group { right: model.right, width: model.width, x: departX, - y: departY, - }) + y: departY + }); /** 站台折返策略*/ const reentryH = style.StationStand.standEmergent.mergentR; @@ -350,16 +350,16 @@ class StationStand extends Group { /** 设置折返策略*/ switch (model.reentryStrategy) { - case '04': /** 默认*/ - case '01': - this.noReentry(); /** 无折返策略*/ - break; - case '02': - this.noHumanReentry(); /** 无人折返*/ - break; - case '03': - this.autoChangeEnds(); /** 自动换端*/ - break; + case '04': /** 默认*/ + case '01': + this.noReentry(); /** 无折返策略*/ + break; + case '02': + this.noHumanReentry(); /** 无人折返*/ + break; + case '03': + this.autoChangeEnds(); /** 自动换端*/ + break; } }