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/04/03 04:31:41 UTC

[incubator-echarts] branch next updated: fix(themeRiver): only use clipPath when animation is enabled.

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

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


The following commit(s) were added to refs/heads/next by this push:
     new c899ed9  fix(themeRiver): only use clipPath when animation is enabled.
c899ed9 is described below

commit c899ed938caa74b9512d264b74f3ae0cfbbde3cf
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Apr 3 12:31:21 2020 +0800

    fix(themeRiver): only use clipPath when animation is enabled.
---
 src/chart/themeRiver/ThemeRiverView.ts | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/chart/themeRiver/ThemeRiverView.ts b/src/chart/themeRiver/ThemeRiverView.ts
index f42e220..28d1845 100644
--- a/src/chart/themeRiver/ThemeRiverView.ts
+++ b/src/chart/themeRiver/ThemeRiverView.ts
@@ -126,9 +126,11 @@ class ThemeRiverView extends ChartView {
                 layerGroup.add(text);
                 group.add(layerGroup);
 
-                polygon.setClipPath(createGridClipShape(polygon.getBoundingRect(), seriesModel, function () {
-                    polygon.removeClipPath();
-                }));
+                if (seriesModel.isAnimationEnabled()) {
+                    polygon.setClipPath(createGridClipShape(polygon.getBoundingRect(), seriesModel, function () {
+                        polygon.removeClipPath();
+                    }));
+                }
             }
             else {
                 const layerGroup = oldLayersGroups[oldIdx];
@@ -154,7 +156,7 @@ class ThemeRiverView extends ChartView {
             }
 
             const hoverItemStyleModel = seriesModel.getModel(['emphasis', 'itemStyle']);
-            polygon.setStyle(style);
+            polygon.useStyle(style);
 
             graphic.enableHoverEmphasis(polygon, hoverItemStyleModel.getItemStyle());
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org