Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-18 16:26:59 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-18 16:26:59 -0700
commit3b641620ab6c2fdfa6b551c019e44726064029c5 (patch)
treecdd8f52c1479166f77d657d7a63aef0bb89d52b9 /src/map.js
parentf7606768b4390bd7dcc43cbeff93aecd24b37105 (diff)
Add furniture
Diffstat (limited to 'src/map.js')
-rw-r--r--src/map.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.js b/src/map.js
index e5c9cd4..e82e809 100644
--- a/src/map.js
+++ b/src/map.js
@@ -5,6 +5,7 @@ const gb = svg.querySelector('.gameboard');
const bg = svg.querySelector('#background');
const imageMaps = svg.querySelector('#image-maps');
const grid = gb.querySelector('.grid');
+const dots = gb.querySelector('#dots');
if ('cols' in dataset && 'rows' in dataset) {
const cellTemplate = svg.querySelector('#hex');
@@ -18,9 +19,8 @@ bg.style.transform = mtx;
const bbox = grid.getBBox();
-bbox.height += 5;
-
setElAttrs(bg, bbox);
+setElAttrs(dots, bbox)
svg.setAttribute('viewBox', formatForViewBox(calcComputedBboxFor(gb)));
function setElAttrs(el, attrs) {