From c8d0bf50f55b6da601acd971529491ed15c31196 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 14 Jan 2021 17:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Section/ELines.js | 4 ++++ src/jmapNew/shape/Section/index.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jmapNew/shape/Section/ELines.js b/src/jmapNew/shape/Section/ELines.js index 85ffe2bc6..d1efb310a 100644 --- a/src/jmapNew/shape/Section/ELines.js +++ b/src/jmapNew/shape/Section/ELines.js @@ -355,6 +355,10 @@ export default class ELines extends Group { this.crossSection && this.crossSection.setStyle(styles); } + setOrignalCross() { + this.crossSection && this.crossSection.setStyle({lineWidth:0, fill:this.style.Section.cross.crossSection.fillColor}); + } + setZleve(lev) { this.section && this.section.attr('z', lev); } diff --git a/src/jmapNew/shape/Section/index.js b/src/jmapNew/shape/Section/index.js index 00c6a2c39..99585f45d 100644 --- a/src/jmapNew/shape/Section/index.js +++ b/src/jmapNew/shape/Section/index.js @@ -390,7 +390,7 @@ export default class Section extends Group { } else { this.lineBorder && this.lineBorder.setStyle({ lineWidth: 0 }); !this.selectedType && this.setState(this.model); - this.line.setCross({lineWidth:0, fill:this.style.Section.cross.crossSection.fillColor}); + this.line.setOrignalCross(); } } drawBatchSelected(selected, type) {