You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/05/28 05:43:30 UTC
[incubator-echarts] 04/04: fix: fix not existed emphasis state
caused error.
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch label-enhancement
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit fba40c7a5ef29381ccb6daabdd7ce1510b04698d
Author: pissang <bm...@gmail.com>
AuthorDate: Thu May 28 13:43:05 2020 +0800
fix: fix not existed emphasis state caused error.
---
src/util/graphic.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/util/graphic.ts b/src/util/graphic.ts
index 72bf70e..36d7fd3 100644
--- a/src/util/graphic.ts
+++ b/src/util/graphic.ts
@@ -462,7 +462,9 @@ function elementStateProxy(this: Displayable, stateName: string): DisplayableSta
state.style = emphasisStyle;
}
}
- state.z2 = this.z2 + Z2_EMPHASIS_LIFT;
+ if (state) {
+ state.z2 = this.z2 + Z2_EMPHASIS_LIFT;
+ }
}
return state;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org