Web Dev Solutions

Catalin Mititiuc

From 7a80e588b5702af0d652b6668108a2cc26f63367 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Mon, 18 Mar 2024 19:59:33 -0700 Subject: Fix uneven map scale --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 3828eb9..0a3fd69 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@ } image#img2 { - transform: scale(1.39) rotate(0.07deg); + transform: scale(1.39, 1.407) rotate(0.07deg); /* opacity: 0.33; */ } @@ -119,8 +119,8 @@ pointCoords = rowCoords.map(y => columnCoords.map(x => [x, y])); var xOffset = 0.25, - yOffset = 0.4; - calcY = Math.sqrt(3) * pointDistanceInInches / 2 * 0.99, + yOffset = 0.45; + calcY = Math.sqrt(3) * pointDistanceInInches / 2, alternatingOffset = pointDistanceInInches / 2; pointCoords.forEach((row, index) => row.forEach(([x, y]) => { -- cgit v1.2.3