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/18 06:13:27 UTC
[incubator-echarts] 01/02: fix: fix textContent z on hover.
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 0d467b1e0eb86e881829640fa90e5df9319a0511
Author: pissang <bm...@gmail.com>
AuthorDate: Mon May 18 13:45:30 2020 +0800
fix: fix textContent z on hover.
---
src/util/graphic.ts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/util/graphic.ts b/src/util/graphic.ts
index e31a782..4126085 100644
--- a/src/util/graphic.ts
+++ b/src/util/graphic.ts
@@ -480,6 +480,14 @@ export function enableElementHoverEmphasis(el: Displayable, hoverStl?: ZRStylePr
}
el.stateProxy = elementStateProxy;
+ const textContent = el.getTextContent();
+ const textGuide = el.getTextGuideLine();
+ if (textContent) {
+ textContent.stateProxy = elementStateProxy;
+ }
+ if (textGuide) {
+ textGuide.stateProxy = elementStateProxy;
+ }
}
export function enterEmphasisWhenMouseOver(el: Element, e: ElementEvent) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org