css-houdini-pattern-grid
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "css-houdini-pattern-grid", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A CSS Paint Worklet that displays a grid of various shapes as the background. Highly customizable.", | ||
@@ -5,0 +5,0 @@ "author": "Tom Quinonero <tomquinonero@hey.com>", |
@@ -65,3 +65,4 @@ function drawShape(ctx, shape, x, y, size, ratio) { | ||
let spacingX = parseInt(props.get(`--pattern-spacing`)); | ||
let spacingY = spacingX * parseInt(props.get(`--pattern-spacing-y-ratio`)); | ||
let spacingY = | ||
spacingX * parseFloat(props.get(`--pattern-spacing-y-ratio`)); | ||
let offsetX = (spacingX - size) / 2; | ||
@@ -68,0 +69,0 @@ let offsetY = (spacingY - size) / 2; |
5217
154