Skip to content

Commit

Permalink
fix(scatter): change the default tolerance to 0.1 to cover more sce…
Browse files Browse the repository at this point in the history
…narios
  • Loading branch information
plainheart committed Jul 9, 2023
1 parent d674ebb commit 65717db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chart/scatter/ScatterView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 65717db

Please sign in to comment.