紧急停车状态调整

This commit is contained in:
fan 2020-12-29 11:04:01 +08:00
parent 855936a5db
commit 72db8b3e94
3 changed files with 6 additions and 6 deletions

View File

@ -234,6 +234,7 @@ class SkinCode extends defaultStyle {
// 站台紧急关闭
emergentRhombus:{
z:1,
flicker: true, // 闪烁
mergentR: 4, // 站台紧急关闭半径
mergentN: 4, // 站台紧急关闭边数
insideOffset: { x: 0, y: 25 }, // 内站台紧急关闭偏移量

View File

@ -264,8 +264,8 @@ class SkinCode extends defaultStyle {
flicker: true, // 闪烁
mergentR: 5, // 站台紧急关闭半径
mergentN: 4, // 站台紧急关闭边数
insideOffset: { x: 0, y: 30 }, // 内站台紧急关闭偏移量
outsideOffset: { x: 0, y: -30}, // 外站台紧急关闭偏移量
insideOffset: { x: 0, y: -30 }, // 内站台紧急关闭偏移量
outsideOffset: { x: 0, y: 30}, // 外站台紧急关闭偏移量
closeColor: '#F61107' // 站台紧急关闭颜色
},
// 扣车元素 普通扣车

View File

@ -57,10 +57,9 @@ class EEmergentRhombus extends Group {
this.create();
this.emergent.show();
if (this.model.style.StationStand.emergentRhombus.flicker) {
this.emergent.getElement().animateStyle(true)
.when(0, { fill: this.style.backgroundColor })
.when(1000, { fill: this.style.StationStand.emergentRhombus.closeColor })
.when(2000, { fill: this.style.backgroundColor })
this.emergent.animateStyle(true)
.when(0, { fill: this.model.style.backgroundColor })
.when(1000, { fill: this.model.style.StationStand.emergentRhombus.closeColor })
.start();
}
}