From 3e6da71787a542f377c317bc7162281dbc3dc9f1 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 21 Jan 2021 19:19:20 +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 | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jmapNew/shape/Section/ELines.js b/src/jmapNew/shape/Section/ELines.js index 298f1b43f..c72fb9127 100644 --- a/src/jmapNew/shape/Section/ELines.js +++ b/src/jmapNew/shape/Section/ELines.js @@ -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); } diff --git a/src/jmapNew/shape/Section/index.js b/src/jmapNew/shape/Section/index.js index 6f1cfbdd1..5a0bc429c 100644 --- a/src/jmapNew/shape/Section/index.js +++ b/src/jmapNew/shape/Section/index.js @@ -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();