代码调整

This commit is contained in:
joylink_cuiweidong 2021-01-21 19:19:20 +08:00
parent 2b6e1ca117
commit 3e6da71787
2 changed files with 4 additions and 1 deletions

View File

@ -390,7 +390,9 @@ export default class ELines extends Group {
setCrossSpeedUpperLimit(speedLimit) {
this.crossSpeedText && this.crossSpeedText.setStyle({text:speedLimit, textFill: 'red' });
}
setCrossDefault() {
this.crossSection && this.crossSection.setStyle({fill:this.model.style.Section.cross.crossSection.fillColor});
}
setZleve(lev) {
this.section && this.section.attr('z', lev);
}

View File

@ -99,6 +99,7 @@ export default class Section extends Group {
});
}
this.line.setCrossSpeedUpperLimit('');
this.line.setCrossDefault();
}
this.name && this.name.recover();
this.speedLimit && this.speedLimit.hide();