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/30 11:09:28 UTC

[incubator-echarts] branch label-enhancement updated: fix(pie): fix pie hover state

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


The following commit(s) were added to refs/heads/label-enhancement by this push:
     new 75a69b1  fix(pie): fix pie hover state
75a69b1 is described below

commit 75a69b19e74627820aa5d12689040399065b00af
Author: pissang <bm...@gmail.com>
AuthorDate: Thu Apr 30 17:44:34 2020 +0800

    fix(pie): fix pie hover state
---
 src/chart/pie/PieView.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/chart/pie/PieView.ts b/src/chart/pie/PieView.ts
index 8e1a9cb..8c88b70 100644
--- a/src/chart/pie/PieView.ts
+++ b/src/chart/pie/PieView.ts
@@ -153,8 +153,8 @@ class PiePiece extends graphic.Sector {
 
         const emphasisState = sector.ensureState('emphasis');
         emphasisState.shape = {
-            r: layout.r + itemModel.get('hoverAnimation') // TODO: Change a name.
-                ? seriesModel.get('hoverOffset') : 0
+            r: layout.r + (itemModel.get('hoverAnimation') // TODO: Change a name.
+                ? seriesModel.get('hoverOffset') : 0)
         };
 
         const labelLine = sector.getTextGuideLine();


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