From 24859d4783cfcf4ad66e0fc28f0457b6bdefce6e Mon Sep 17 00:00:00 2001 From: CyanSalt Date: Wed, 28 Jun 2023 21:51:13 +0800 Subject: [PATCH] fix: grid guide padding --- src/grid-guide/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grid-guide/index.vue b/src/grid-guide/index.vue index 57ad205..803a909 100644 --- a/src/grid-guide/index.vue +++ b/src/grid-guide/index.vue @@ -43,7 +43,7 @@ function draw() { const color = style.getPropertyValue('--r-grid-guide-color') const extraSections = 1 - const padding = sectionSize / 2 + const padding = Math.round(cellSize * (sectionCells / 2 - 0.5)) root.width = actualWidth root.height = actualHeight