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/10/13 03:42:25 UTC

[incubator-echarts] branch next updated: fix(line): fix polygon shape may not update during animation.

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 948bd77  fix(line): fix polygon shape may not update during animation.
948bd77 is described below

commit 948bd772054186f7a6297c6eba0552950eb8a4c9
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Oct 13 11:42:05 2020 +0800

    fix(line): fix polygon shape may not update during animation.
---
 src/chart/line/LineView.ts | 1 +
 test/new-tooltip.html      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/chart/line/LineView.ts b/src/chart/line/LineView.ts
index 80f0129..36c8e6b 100644
--- a/src/chart/line/LineView.ts
+++ b/src/chart/line/LineView.ts
@@ -1202,6 +1202,7 @@ class LineView extends ChartView {
 
         if (polyline.animators && polyline.animators.length) {
             polyline.animators[0].during(function () {
+                polygon && polygon.dirtyShape();
                 const points = (polyline.shape as any).__points;
                 for (let i = 0; i < updatedDataInfo.length; i++) {
                     const el = updatedDataInfo[i].el;
diff --git a/test/new-tooltip.html b/test/new-tooltip.html
index 9de9530..2ec1b6f 100644
--- a/test/new-tooltip.html
+++ b/test/new-tooltip.html
@@ -1946,6 +1946,7 @@ under the License.
             option11 = {
                 tooltip: {
                     renderMode: CURRENT_RENDER_MODE,
+                    position: 'top'
                 },
                 dataset: {
                     source: [


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