From ccb1cb2c7573364732a277f0c7c770de611aeca3 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Wed, 10 Jul 2024 22:41:28 -0700
Subject: Allow generic maps to be still generated
---
src/map.js | 8 --------
1 file changed, 8 deletions(-)
(limited to 'src/map.js')
diff --git a/src/map.js b/src/map.js
index 5d0bf6a..803608e 100644
--- a/src/map.js
+++ b/src/map.js
@@ -7,20 +7,12 @@ 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');
-
- createCells(grid, dataset, cellTemplate.id);
-}
-
const sequence = getComputedStyle(gb).transform.match(/-?\d+\.?\d*/g);
const mtx = new DOMMatrix(sequence || '');
bg.style.transform = mtx;
const bbox = grid.getBBox();
-bbox.height += 5;
-
setElAttrs(bg, bbox);
setElAttrs(dots, bbox)
svg.setAttribute('viewBox', formatForViewBox(calcComputedBboxFor(gb)));
--
cgit v1.2.3