This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 583f673ea87f2e080caa8a09e6cb3063895ecf5a
Author: Ovilia <[email protected]>
AuthorDate: Thu Sep 26 20:48:01 2019 +0800

    fix(graphic): fix when zr does not exist
---
 src/util/graphic.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/graphic.js b/src/util/graphic.js
index 2f7e058..7066f8e 100644
--- a/src/util/graphic.js
+++ b/src/util/graphic.js
@@ -332,7 +332,7 @@ function singleEnterEmphasis(el) {
 
     var zr = el.__zr;
 
-    var useHoverLayer = el.useHoverLayer && zr.painter.type === 'canvas';
+    var useHoverLayer = el.useHoverLayer && zr && zr.painter.type === 'canvas';
     el.__highlighted = useHoverLayer ? 'layer' : 'plain';
 
     if (el.isGroup || (!zr && el.useHoverLayer)) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to