Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/coord/polar/Polar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ class Polar implements CoordinateSystem, CoordinateSystemMaster {
// Start angle and end angle don't matter
const dx = x - this.cx;
const dy = y - this.cy;
const d2 = dx * dx + dy * dy;
// minus a tiny value 1e-4 to avoid being clipped unexpectedly
const d2 = dx * dx + dy * dy - 1e-4;
const r = this.r;
const r0 = this.r0;

Expand Down Expand Up @@ -265,4 +266,4 @@ interface PolarArea extends CoordinateSystemClipArea {
clockwise: boolean
}

export default Polar;
export default Polar;
15 changes: 14 additions & 1 deletion test/clip.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.