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

ovilia pushed a commit to branch feat-targetSize
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit 005819e9fb6d1d8b39ca1188c00e0e11941a9903
Author: Ovilia <zwl.s...@gmail.com>
AuthorDate: Tue May 24 14:33:51 2022 +0800

    feat: ignore target size for large charts
---
 src/chart/bar/BarView.ts                 | 1 +
 src/chart/candlestick/CandlestickView.ts | 7 ++++---
 src/chart/helper/LargeLineDraw.ts        | 3 ++-
 src/chart/helper/LargeSymbolDraw.ts      | 1 +
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/chart/bar/BarView.ts b/src/chart/bar/BarView.ts
index 70e6c3467..9ca497b40 100644
--- a/src/chart/bar/BarView.ts
+++ b/src/chart/bar/BarView.ts
@@ -1146,6 +1146,7 @@ function createLarge(
     const el = new LargePath({
         shape: {points: data.getLayout('largePoints')},
         incremental: !!incremental,
+        ignoreTargetSize: true,
         z2: 1
     });
     el.baseDimIdx = baseDimIdx;
diff --git a/src/chart/candlestick/CandlestickView.ts 
b/src/chart/candlestick/CandlestickView.ts
index 9b2436db9..0990120de 100644
--- a/src/chart/candlestick/CandlestickView.ts
+++ b/src/chart/candlestick/CandlestickView.ts
@@ -358,12 +358,14 @@ function createLarge(
 
     const elP = new LargeBoxPath({
         shape: {points: largePoints},
-        __sign: 1
+        __sign: 1,
+        ignoreTargetSize: true
     });
     group.add(elP);
     const elN = new LargeBoxPath({
         shape: {points: largePoints},
-        __sign: -1
+        __sign: -1,
+        ignoreTargetSize: true
     });
     group.add(elN);
 
@@ -397,4 +399,3 @@ function setLargeStyle(sign: number, el: LargeBoxPath, 
seriesModel: CandlestickS
 
 
 export default CandlestickView;
-
diff --git a/src/chart/helper/LargeLineDraw.ts 
b/src/chart/helper/LargeLineDraw.ts
index 62f5b6d14..82eb4c152 100644
--- a/src/chart/helper/LargeLineDraw.ts
+++ b/src/chart/helper/LargeLineDraw.ts
@@ -293,7 +293,8 @@ class LargeLineDraw {
 
     private _create() {
         const lineEl = new LargeLinesPath({
-            cursor: 'default'
+            cursor: 'default',
+            ignoreTargetSize: true
         });
         this._newAdded.push(lineEl);
         this.group.add(lineEl);
diff --git a/src/chart/helper/LargeSymbolDraw.ts 
b/src/chart/helper/LargeSymbolDraw.ts
index 22614b29f..a103ff0bd 100644
--- a/src/chart/helper/LargeSymbolDraw.ts
+++ b/src/chart/helper/LargeSymbolDraw.ts
@@ -315,6 +315,7 @@ class LargeSymbolDraw {
         const symbolEl = new LargeSymbolPath({
             cursor: 'default'
         });
+        symbolEl.ignoreTargetSize = true;
         this.group.add(symbolEl);
         this._newAdded.push(symbolEl);
         return symbolEl;


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

Reply via email to