Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.js')
-rw-r--r--src/map.js8
1 files changed, 0 insertions, 8 deletions
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)));