代码调整

This commit is contained in:
joylink_cuiweidong 2021-01-14 17:11:10 +08:00
parent 06edd5f531
commit c8d0bf50f5
2 changed files with 5 additions and 1 deletions

View File

@ -355,6 +355,10 @@ export default class ELines extends Group {
this.crossSection && this.crossSection.setStyle(styles); this.crossSection && this.crossSection.setStyle(styles);
} }
setOrignalCross() {
this.crossSection && this.crossSection.setStyle({lineWidth:0, fill:this.style.Section.cross.crossSection.fillColor});
}
setZleve(lev) { setZleve(lev) {
this.section && this.section.attr('z', lev); this.section && this.section.attr('z', lev);
} }

View File

@ -390,7 +390,7 @@ export default class Section extends Group {
} else { } else {
this.lineBorder && this.lineBorder.setStyle({ lineWidth: 0 }); this.lineBorder && this.lineBorder.setStyle({ lineWidth: 0 });
!this.selectedType && this.setState(this.model); !this.selectedType && this.setState(this.model);
this.line.setCross({lineWidth:0, fill:this.style.Section.cross.crossSection.fillColor}); this.line.setOrignalCross();
} }
} }
drawBatchSelected(selected, type) { drawBatchSelected(selected, type) {