From 08f8ffc06a474015bd7f086fb5c32d96c853662f Mon Sep 17 00:00:00 2001 From: Ovilia Date: Mon, 3 Sep 2018 18:53:36 +0800 Subject: [PATCH] fix(pie): remove clipPath for expansion animation #8994 --- src/chart/pie/PieView.js | 4 ++ test/pie-clipPath.html | 101 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 test/pie-clipPath.html diff --git a/src/chart/pie/PieView.js b/src/chart/pie/PieView.js index 84697f598..199ec243e 100644 --- a/src/chart/pie/PieView.js +++ b/src/chart/pie/PieView.js @@ -365,6 +365,10 @@ var PieView = ChartView.extend({ shape.cx, shape.cy, r, shape.startAngle, shape.clockwise, removeClipPath, seriesModel )); } + else { + // clipPath is used in first-time animation, so remove it when otherwise. See: #8994 + group.removeClipPath(); + } this._data = data; }, diff --git a/test/pie-clipPath.html b/test/pie-clipPath.html new file mode 100644 index 000000000..a8d1832ed --- /dev/null +++ b/test/pie-clipPath.html @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + +
+ + + + + + + + \ No newline at end of file -- GitLab