From 17118633340b1979e94f30d0c85b885d5237ba14 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Wed, 10 Jul 2024 19:29:38 -0700
Subject: Clone template instead of modifying original
---
src/modules/scenario.js | 12 ------------
1 file changed, 12 deletions(-)
(limited to 'src/modules')
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');
}
--
cgit v1.2.3