成都三设备样式调整

This commit is contained in:
joylink_fanyuhong 2024-09-26 18:12:26 +08:00
parent 529c122278
commit 526fd047e7
2 changed files with 9 additions and 3 deletions

View File

@ -346,14 +346,15 @@ class SkinCode extends defaultStyle {
this[deviceType.StationTurnBack] = { // 站后折返 this[deviceType.StationTurnBack] = { // 站后折返
lamp: { lamp: {
fill: '#f1f1f1', // 填充色 fill: '#ccc', // 填充色
radiusR: 7 // 控制灯大小 radiusR: 6,
otherFill: '#0F0' // 控制灯大小
}, },
text: { text: {
titleTextShow: false, titleTextShow: false,
fontWeight: 580, fontWeight: 580,
fontSize: 10, fontSize: 10,
distance: 10 distance: 5
}, },
rect: { rect: {
fill: 'rgba(0,0,0,0)', fill: 'rgba(0,0,0,0)',

View File

@ -166,6 +166,11 @@ export default class StationTurnBack extends Group {
this.control && this.control.highlightType3(this.style.ReturnModeGroup.highlightColor); this.control && this.control.highlightType3(this.style.ReturnModeGroup.highlightColor);
} }
} }
if (this.style.StationTurnBack.lamp.otherFill) {
if (name == '自动折返' || name == '固定折返轨1' || name == '固定折返轨1') {
this.control && this.control.setStyle({fill: this.style.StationTurnBack.lamp.otherFill});
}
}
} }
setAshShow() { setAshShow() {