Bugfix: Mosaic shape style now handles quiet zones larger than 1 correctly

This commit is contained in:
Julian Fietkau 2024-09-12 21:28:43 +02:00
parent 3aea1e3c89
commit 1c75bf745e

View File

@ -414,7 +414,7 @@ function calculateTileStyleContour(bitmask, margin, style) {
let size = 0.9; // relative to grid size
let maxAngle = Math.PI * 0.03;
let angle = (prng.next() * 2 - 1) * maxAngle;
newPathSpec.push('M' + (x + 1) + ' ' + (y + 1));
newPathSpec.push('M' + (x + margin) + ' ' + (y + margin));
let tileCorners = [
rotatePoint(0.5 - (size / 2), 0.5 - (size / 2), angle),
rotatePoint(0.5 + (size / 2), 0.5 - (size / 2), angle),