Skip to content

Commit

Permalink
improve gridrect mask to avoid hiding overflowing smooth line
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Oct 16, 2023
1 parent 5dcc8f6 commit 1ae0087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/axes/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ class Grid {
}
}
gl.dom.elGridRect = graphics.drawRect(
-strokeSize / 2 - barWidthLeft - 2,
-strokeSize / 2,
-strokeSize - barWidthLeft - 2,
-strokeSize * 2 - 2,
gl.gridWidth + strokeSize + barWidthRight + barWidthLeft + 4,
gl.gridHeight + strokeSize,
gl.gridHeight + strokeSize * 2 + 4,
0,
'#fff'
)
Expand Down

0 comments on commit 1ae0087

Please sign in to comment.