From 1ae00873813198e09f28ed3e7d008b53f7c1f8b2 Mon Sep 17 00:00:00 2001 From: junedchhipa Date: Tue, 17 Oct 2023 01:06:55 +0530 Subject: [PATCH] improve gridrect mask to avoid hiding overflowing smooth line --- src/modules/axes/Grid.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/axes/Grid.js b/src/modules/axes/Grid.js index 3ce384300..6182cd1e2 100644 --- a/src/modules/axes/Grid.js +++ b/src/modules/axes/Grid.js @@ -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' )