Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <Catalin.Mititiuc@gmail.com>2024-03-18 19:59:33 -0700
committerCatalin Mititiuc <Catalin.Mititiuc@gmail.com>2024-03-18 19:59:33 -0700
commit7a80e588b5702af0d652b6668108a2cc26f63367 (patch)
treef087a73aa52e532298d9e8a89b5791e18e759188
parentee37c59946304bd2a71402ba4dd52ce6d22f1851 (diff)
Fix uneven map scale
-rw-r--r--index.html6
1 files 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]) => {