From 526fd047e70183c4ad706ce496bbeccf360fea34 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Thu, 26 Sep 2024 18:12:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E9=83=BD=E4=B8=89=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/config/skinCode/chengdu_03.js | 7 ++++--- src/jmapNew/shape/graph/StationTurnBack/index.js | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/jmapNew/config/skinCode/chengdu_03.js b/src/jmapNew/config/skinCode/chengdu_03.js index 97d86d895..301fbb1e0 100644 --- a/src/jmapNew/config/skinCode/chengdu_03.js +++ b/src/jmapNew/config/skinCode/chengdu_03.js @@ -346,14 +346,15 @@ class SkinCode extends defaultStyle { this[deviceType.StationTurnBack] = { // 站后折返 lamp: { - fill: '#f1f1f1', // 填充色 - radiusR: 7 // 控制灯大小 + fill: '#ccc', // 填充色 + radiusR: 6, + otherFill: '#0F0' // 控制灯大小 }, text: { titleTextShow: false, fontWeight: 580, fontSize: 10, - distance: 10 + distance: 5 }, rect: { fill: 'rgba(0,0,0,0)', diff --git a/src/jmapNew/shape/graph/StationTurnBack/index.js b/src/jmapNew/shape/graph/StationTurnBack/index.js index 7c3fd90ca..10d053a5b 100644 --- a/src/jmapNew/shape/graph/StationTurnBack/index.js +++ b/src/jmapNew/shape/graph/StationTurnBack/index.js @@ -166,6 +166,11 @@ export default class StationTurnBack extends Group { this.control && this.control.highlightType3(this.style.ReturnModeGroup.highlightColor); } } + if (this.style.StationTurnBack.lamp.otherFill) { + if (name == '自动折返' || name == '固定折返轨1' || name == '固定折返轨1') { + this.control && this.control.setStyle({fill: this.style.StationTurnBack.lamp.otherFill}); + } + } } setAshShow() {