This commit is contained in:
ival 2019-07-16 18:44:40 +08:00
parent 82fbb5240f
commit 0f669bfcbd

View File

@ -63,7 +63,7 @@ class Signal extends Group {
this.sigName = this.sectionText = new ETextName({ this.sigName = this.sectionText = new ETextName({
_subType: 'Text', _subType: 'Text',
zlevel: this.zlevel, zlevel: this.zlevel,
z: 2, z: 1,
style: this.style, style: this.style,
x: this.model.position.x + this.model.namePosition.x, x: this.model.position.x + this.model.namePosition.x,
y: this.model.position.y + posit * (this.style.Signal.signalDistance + this.style.Section.sectionWidth + this.style.Signal.signalR * 2 + this.model.namePosition.y), y: this.model.position.y + posit * (this.style.Signal.signalDistance + this.style.Section.sectionWidth + this.style.Signal.signalR * 2 + this.model.namePosition.y),
@ -99,9 +99,9 @@ class Signal extends Group {
// 延迟解锁 // 延迟解锁
this.sigDelay = new ETextName({ this.sigDelay = new ETextName({
zlevel: this.zlevel, zlevel: this.zlevel,
z: 2, z: 1,
style: this.style, style: this.style,
x: this.model.position.x - drict * this.style.Signal.signalLampStandardWidth, x: this.model.position.x,
y: this.model.position.y + posit * (this.style.Signal.signalDistance + this.style.Section.sectionWidth + this.style.Signal.signalR * 2 + this.model.namePosition.y), y: this.model.position.y + posit * (this.style.Signal.signalDistance + this.style.Section.sectionWidth + this.style.Signal.signalR * 2 + this.model.namePosition.y),
text: this.state.delayCount || '110', text: this.state.delayCount || '110',
textFont: 'bold ' + this.style.Signal.signalDelayTextFontSize + 'px ' + this.style.textFontFormat, textFont: 'bold ' + this.style.Signal.signalDelayTextFontSize + 'px ' + this.style.textFontFormat,
@ -124,8 +124,8 @@ class Signal extends Group {
this.add(this.sigPost); this.add(this.sigPost);
this.lamps.forEach(lamp => { this.add(lamp); }); this.lamps.forEach(lamp => { this.add(lamp); });
this.add(this.sigName); this.add(this.sigName);
this.add(this.sigAuto); // this.add(this.sigAuto);
this.add(this.sigDrict); // this.add(this.sigDrict);
this.add(this.sigDelay); this.add(this.sigDelay);
// this.add(this.sigButton); // this.add(this.sigButton);
} }