Skip to content

Commit

Permalink
fix(custom): grid area clipping in custom series #19993 (#20043)
Browse files Browse the repository at this point in the history
  • Loading branch information
fandi-1205 authored Jun 28, 2024
1 parent a6d0463 commit 369cb03
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart/helper/createClipPathFromCoordSys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function createGridClipPath(
let width = rect.width;
let height = rect.height;

const lineWidth = seriesModel.get(['lineStyle', 'width']) || 2;
const lineWidth = seriesModel.get(['lineStyle', 'width']) || 0;
// Expand the clip path a bit to avoid the border is clipped and looks thinner
x -= lineWidth / 2;
y -= lineWidth / 2;
Expand Down
127 changes: 127 additions & 0 deletions test/clip-custom.html

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

0 comments on commit 369cb03

Please sign in to comment.