调整车站包围框显示

This commit is contained in:
zyy 2020-02-04 15:43:58 +08:00
parent 732c80ca6d
commit 1db679509f
2 changed files with 17 additions and 12 deletions

View File

@ -95,6 +95,11 @@ export default class Station extends Group {
textFill: model.subheadFontColor textFill: model.subheadFontColor
}); });
this.add(this.subheadText); 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);
}
} }
} }
} }

View File

@ -98,8 +98,8 @@ class StationStand extends Group {
right: model.right, right: model.right,
width: model.width, width: model.width,
x: departX, x: departX,
y: departY, y: departY
}) });
/** 站台折返策略*/ /** 站台折返策略*/
const reentryH = style.StationStand.standEmergent.mergentR; const reentryH = style.StationStand.standEmergent.mergentR;
@ -350,16 +350,16 @@ class StationStand extends Group {
/** 设置折返策略*/ /** 设置折返策略*/
switch (model.reentryStrategy) { switch (model.reentryStrategy) {
case '04': /** 默认*/ case '04': /** 默认*/
case '01': case '01':
this.noReentry(); /** 无折返策略*/ this.noReentry(); /** 无折返策略*/
break; break;
case '02': case '02':
this.noHumanReentry(); /** 无人折返*/ this.noHumanReentry(); /** 无人折返*/
break; break;
case '03': case '03':
this.autoChangeEnds(); /** 自动换端*/ this.autoChangeEnds(); /** 自动换端*/
break; break;
} }
} }