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

wangzx pushed a commit to branch fix/scatter-clip
in repository https://gitbox.apache.org/repos/asf/echarts.git


The following commit(s) were added to refs/heads/fix/scatter-clip by this push:
     new 65717dbf9 fix(scatter): change the default tolerance to `0.1` to cover 
more scenarios
65717dbf9 is described below

commit 65717dbf982b706cacacd7ccaac6e5c8726952fc
Author: plainheart <[email protected]>
AuthorDate: Sun Jul 9 19:08:53 2023 +0800

    fix(scatter): change the default tolerance to `0.1` to cover more scenarios
---
 src/chart/scatter/ScatterView.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/chart/scatter/ScatterView.ts b/src/chart/scatter/ScatterView.ts
index c7c6e1795..972c36e4c 100644
--- a/src/chart/scatter/ScatterView.ts
+++ b/src/chart/scatter/ScatterView.ts
@@ -103,8 +103,8 @@ class ScatterView extends ChartView {
             return;
         }
         const coordSys = seriesModel.coordinateSystem;
-        // PENDING make `1e-2` configurable, for example, `clipTolerance`?
-        return coordSys && coordSys.getArea && coordSys.getArea(1e-2);
+        // PENDING make `0.1` configurable, for example, `clipTolerance`?
+        return coordSys && coordSys.getArea && coordSys.getArea(.1);
     }
 
     _updateSymbolDraw(data: SeriesData, seriesModel: ScatterSeriesModel) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to