Skip to content

Commit

Permalink
also scale image
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed Oct 7, 2024
1 parent e2da465 commit 68e9928
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pxtblocks/monkeyPatches/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 68e9928

Please sign in to comment.