调整车站包围框显示

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