南京十一站 代码调整

This commit is contained in:
joylink_cuiweidong 2021-01-21 18:39:00 +08:00
parent 60e82ec34e
commit a9ea00c0c8
4 changed files with 9 additions and 1 deletions

View File

@ -183,6 +183,7 @@ class SkinCode extends defaultStyle {
},
auto: {
signalFrontTriangle: false, // 信号灯前三角展示
autoRouteType:'line', // 自动进路类型 line 为西安二号线的类型(只更改信号机灯柱的颜色)
direction: false, // 自动通过方向
offset: { x: -4, y: 0}, // 自动通过偏移量
width: 5, // 自动宽度

View File

@ -404,6 +404,12 @@ export default class ELines extends Group {
this.centerSquare && this.centerSquare.show();
}
setCrossRouteLock() {
if (this.crossSection) {
this.crossSection.setStyle({fill:'rgba(0,0,0,0)'});
}
}
animateStyle(loop, animates) {
if (animates && animates.length) {
if (this.section && this.section.animateStyle && this.section.isLine) {

View File

@ -172,6 +172,7 @@ export default class Section extends Group {
stroke: this.style.Section.line.routeLockColor,
lineWidth: this.style.Section.line.width + this.style.Section.line.beyondWidth
});
this.line.setCrossRouteLock();
this.line.setRouteLock(lockRight);
}
}

View File

@ -613,7 +613,7 @@ class Signal extends Group {
this.sigRoute.show();
this.sigRoute.setStyle({ fill: this.style.Signal.auto.autoRoute });
} else {
if (this.style.Signal.auto.autoRouteType != 'text') {
if (this.style.Signal.auto.autoRouteType != 'text' && this.style.Signal.auto.autoRouteType != 'line') {
this.sigAuto.setColor(this.style.Signal.auto.autoRoute);
this.sigAuto.show();
}