From 72db8b3e94d11a33ecfbd02b2a379074c6f3e16e Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 29 Dec 2020 11:04:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A7=E6=80=A5=E5=81=9C=E8=BD=A6=E7=8A=B6?= =?UTF-8?q?=E6=80=81=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_01.js | 1 + src/jmapNew/config/skinCode/chengdu_03.js | 4 ++-- .../shape/StationStand/emergent/EEmergentRhombus.js | 7 +++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/jmapNew/config/skinCode/chengdu_01.js b/src/jmapNew/config/skinCode/chengdu_01.js index f6d7a6d0b..0c7368295 100644 --- a/src/jmapNew/config/skinCode/chengdu_01.js +++ b/src/jmapNew/config/skinCode/chengdu_01.js @@ -234,6 +234,7 @@ class SkinCode extends defaultStyle { // 站台紧急关闭 emergentRhombus:{ z:1, + flicker: true, // 闪烁 mergentR: 4, // 站台紧急关闭半径 mergentN: 4, // 站台紧急关闭边数 insideOffset: { x: 0, y: 25 }, // 内站台紧急关闭偏移量 diff --git a/src/jmapNew/config/skinCode/chengdu_03.js b/src/jmapNew/config/skinCode/chengdu_03.js index 620d40196..5cc88ccfd 100644 --- a/src/jmapNew/config/skinCode/chengdu_03.js +++ b/src/jmapNew/config/skinCode/chengdu_03.js @@ -264,8 +264,8 @@ class SkinCode extends defaultStyle { flicker: true, // 闪烁 mergentR: 5, // 站台紧急关闭半径 mergentN: 4, // 站台紧急关闭边数 - insideOffset: { x: 0, y: 30 }, // 内站台紧急关闭偏移量 - outsideOffset: { x: 0, y: -30}, // 外站台紧急关闭偏移量 + insideOffset: { x: 0, y: -30 }, // 内站台紧急关闭偏移量 + outsideOffset: { x: 0, y: 30}, // 外站台紧急关闭偏移量 closeColor: '#F61107' // 站台紧急关闭颜色 }, // 扣车元素 普通扣车 diff --git a/src/jmapNew/shape/StationStand/emergent/EEmergentRhombus.js b/src/jmapNew/shape/StationStand/emergent/EEmergentRhombus.js index d3934e729..536dd3d4e 100644 --- a/src/jmapNew/shape/StationStand/emergent/EEmergentRhombus.js +++ b/src/jmapNew/shape/StationStand/emergent/EEmergentRhombus.js @@ -57,10 +57,9 @@ class EEmergentRhombus extends Group { this.create(); this.emergent.show(); if (this.model.style.StationStand.emergentRhombus.flicker) { - this.emergent.getElement().animateStyle(true) - .when(0, { fill: this.style.backgroundColor }) - .when(1000, { fill: this.style.StationStand.emergentRhombus.closeColor }) - .when(2000, { fill: this.style.backgroundColor }) + this.emergent.animateStyle(true) + .when(0, { fill: this.model.style.backgroundColor }) + .when(1000, { fill: this.model.style.StationStand.emergentRhombus.closeColor }) .start(); } }