mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
Copies hatching from defElements into map svg, and hatching removed from saved map files.
This commit is contained in:
parent
ec7f53454f
commit
e7503d14b7
4 changed files with 13 additions and 7 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue