Copies hatching from defElements into map svg, and hatching removed from saved map files.

This commit is contained in:
Evolvedexperiment 2022-01-27 13:17:04 +00:00
parent ec7f53454f
commit e7503d14b7
4 changed files with 13 additions and 7 deletions

View file

@ -51,6 +51,7 @@ function getMapData() {
cloneEl.querySelector("#viewbox").removeAttribute("transform");
cloneEl.querySelector("#ruler").innerHTML = ""; // always remove rulers
cloneEl.querySelector("#hatching").innerHTML = ""; // remove hatching patterns
const serializedSVG = new XMLSerializer().serializeToString(cloneEl);