From 68e992832cf1d2ca484396e5cd8bea44b7d6d62a Mon Sep 17 00:00:00 2001 From: Richard Knoll Date: Mon, 7 Oct 2024 16:29:16 -0700 Subject: [PATCH] also scale image --- pxtblocks/monkeyPatches/grid.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/pxtblocks/monkeyPatches/grid.ts b/pxtblocks/monkeyPatches/grid.ts index b264b28ed3f..d54302735d4 100644 --- a/pxtblocks/monkeyPatches/grid.ts +++ b/pxtblocks/monkeyPatches/grid.ts @@ -63,6 +63,7 @@ export function monkeyPatchGrid() { imagePattern.setAttribute("width", options.image.width); imagePattern.setAttribute("height", options.image.height); + imagePattern.setAttribute('patternTransform', 'scale(' + scale + ')'); } for (const patternId of patternsToRemove) {