Add furniture
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user