Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-07-10 19:29:38 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-07-10 19:29:38 -0700
commit17118633340b1979e94f30d0c85b885d5237ba14 (patch)
tree11b87ffb5b7e872088d9a67c84889aabc7c930c5 /src/modules
parentb3f902f012e04facad489c613b5c577a1788b570 (diff)
Clone template instead of modifying original
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/scenario.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/modules/scenario.js b/src/modules/scenario.js
index c15f500..039801d 100644
--- a/src/modules/scenario.js
+++ b/src/modules/scenario.js
@@ -70,9 +70,6 @@ export async function build(svg, request) {
return acc;
}, {});
- console.log('refs', refs);
- console.log(counters.split('/').pop().split('-').shift());
-
const hashedFilenames = {
'counters.svg': counters,
'mapsheets.svg': mapsheets
@@ -98,13 +95,6 @@ export async function build(svg, request) {
});
});
- // scenario.querySelectorAll('use.mapsheet').forEach(el =>
- // gb.querySelector('#background').after(svg.ownerDocument.importNode(el, true))
- //);
-
- // startLocs.querySelectorAll('.counter').forEach(el => console.log(el));
- //console.log(startLocs);
-
//if (startLocs) grid.before(svg.ownerDocument.importNode(startLocs, true));
const scenarioGrid = scenario.querySelector('.grid');
@@ -113,8 +103,6 @@ export async function build(svg, request) {
grid.replaceWith(svg.ownerDocument.importNode(scenarioGrid, true));
}
- //defs.replaceWith(scenario.querySelector('defs'));
-
await loadScript(scenario, svg, 'radial')
return loadScript(scenario, svg, 'map');
}