index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-10 22:41:28 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-10 22:41:28 -0700 |
commit | ccb1cb2c7573364732a277f0c7c770de611aeca3 (patch) | |
tree | ebbb28f5902a71bbd3028a259ce002988d3b579c /src/map.js | |
parent | 9c200873d6f013fa1e8eb9f00441404cca9acc1a (diff) |
Allow generic maps to be still generated
Diffstat (limited to 'src/map.js')
-rw-r--r-- | src/map.js | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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))); |