From a7925db494ab7db102a7acb6408ca5efcbf2cb08 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Fri, 9 Aug 2024 20:22:43 -0700
Subject: Remove random props on map resource window object
---
src/radial.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'src/radial.js')
diff --git a/src/radial.js b/src/radial.js
index 7c7c0f3..0399d77 100644
--- a/src/radial.js
+++ b/src/radial.js
@@ -79,7 +79,7 @@ function radialToScreenCoords({ q, r, s }) {
}
function drawHexes(el, list, renderText = false) {
- for ([key, v] of list) {
+ for (const [key, v] of list) {
const { q, r, s, t } = fromKey(key);
const { x, y } = radialToScreenCoords({ q, r, s });
@@ -146,7 +146,7 @@ function generateRadialCoords(l, { q, r, s, t = 0 } = {}, { left, top, right, bo
function translateCoords(map, translator) {
const translated = new Map();
- for ([key, val] of map) {
+ for (const [key, val] of map) {
const { q, r, s, t } = fromKey(key);
translated.set(toKey(translator({ q, r, s, t })), val);
}
@@ -271,7 +271,7 @@ function drawMapsheet(placementMarker, mapsheet, position) {
({ q: q + position.q, r: r + position.r, s: s + position.s })
);
- for ([coords, v] of buildingHexes) grid.delete(coords);
+ for (const [coords, v] of buildingHexes) grid.delete(coords);
drawHexes(gridContainer, grid);
(mapsheet.features || []).forEach(feature => {
--
cgit v1.2.3