显示调整 again

This commit is contained in:
fan 2021-09-14 18:00:56 +08:00
parent 9f361fd143
commit 619a049408
2 changed files with 5 additions and 2 deletions

View File

@ -150,6 +150,7 @@ export default class Section extends Group {
this.derailer && this.derailer.hide();
this.speedLimit && this.speedLimit.hide();
this.speedLimitName && this.speedLimitName.hide();
this.separator && this.separator.show();
this.badShunt && this.badShunt.hide();
this.axle && this.axle.setStyle({

View File

@ -789,9 +789,11 @@ export default class Station extends Group {
} else {
this.eachChild(elem => { elem.hide(); });
}
this.model.kmPostShow ? this.mileageText.show() : this.mileageText.hide();
if (this.mileageText) {
this.model.kmPostShow ? this.mileageText.show() : this.mileageText.hide();
}
if (!this.model.visible) {
this.mileageText.hide();
this.mileageText && this.mileageText.hide();
}
}
getAnchorPoint() {