大铁线路 区段状态代码调整

This commit is contained in:
joylink_cuiweidong 2021-04-13 17:23:12 +08:00
parent 58d7f9233e
commit bc83661f1f
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ class SkinCode extends defaultStyle {
super();
this.fontFamily = '宋体';
this[deviceType.Section] = {
elemnetType:['name', 'line', 'separator'],
elemnetType:['name', 'line', 'separator', 'badShunt'],
// 'speedLimit', 'speedLimitName','standTrackText','reentryTrackText','transferTrackText',
active: {
routeColor: true // 进路触发颜色
@ -106,7 +106,7 @@ class SkinCode extends defaultStyle {
},
badShunt:{
z: 2,
distance: 5, // 分路不良 距离区段距离
distance: 2, // 分路不良 距离区段距离
width: 1, // 分路不良的宽度
lineColor: 'rgb(188,67,180)' // 分路不良颜色 (粉红色)
},

View File

@ -437,12 +437,12 @@ export default class Section extends Group {
}
}
// 分路不良
model.badShunt && this.badShunt();
model.badShunt && this.badShuntStatus();
}
}
// 分路不良
badShunt() {
badShuntStatus() {
this.badShunt && this.badShunt.show();
}