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/06/24 11:25:01 UTC

[incubator-echarts] branch label-enhancement updated: fix(line): optimize area animation

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 abdb831  fix(line): optimize area animation
abdb831 is described below

commit abdb83190fbb5cd9ba143299fcf5f037f9ef6ae2
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Jun 24 19:24:23 2020 +0800

    fix(line): optimize area animation
---
 src/chart/line/LineSeries.ts | 6 +++++-
 src/chart/line/LineView.ts   | 1 -
 test/label-layout.html       | 4 ++--
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/chart/line/LineSeries.ts b/src/chart/line/LineSeries.ts
index 42e0ce3..d4ad0d5 100644
--- a/src/chart/line/LineSeries.ts
+++ b/src/chart/line/LineSeries.ts
@@ -79,6 +79,11 @@ export interface LineSeriesOption extends SeriesOption,
         origin?: 'auto' | 'start' | 'end'
     }
 
+    emphasis?: {
+        label?: LabelOption
+        itemStyle?: ItemStyleOption
+    }
+
     step?: false | 'start' | 'end' | 'middle'
 
     smooth?: boolean
@@ -87,7 +92,6 @@ export interface LineSeriesOption extends SeriesOption,
 
     connectNulls?: boolean
 
-
     showSymbol?: boolean
     // false | 'auto': follow the label interval strategy.
     // true: show all symbols.
diff --git a/src/chart/line/LineView.ts b/src/chart/line/LineView.ts
index 8c31b33..f49a1c8 100644
--- a/src/chart/line/LineView.ts
+++ b/src/chart/line/LineView.ts
@@ -786,7 +786,6 @@ class LineView extends ChartView {
             polygon.stopAnimation();
             graphic.updateProps(polygon, {
                 shape: {
-                    points: next,
                     stackedOnPoints: stackedOnNext
                 }
             }, seriesModel);
diff --git a/test/label-layout.html b/test/label-layout.html
index a780775..011c444 100644
--- a/test/label-layout.html
+++ b/test/label-layout.html
@@ -340,10 +340,10 @@ under the License.
                             const isLeft = params.labelRect.x < cx;
                             return isLeft ? {
                                 x: cx - 200,
-                                textAlign: 'right',
+                                align: 'right',
                             } : {
                                 x: cx + 100,
-                                textAlign: 'left'
+                                align: 'left'
                             };
                         }
                     }]


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