mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-03 22:17:24 +02:00
feat: update relief rendering logic and version to 1.114.0
This commit is contained in:
parent
dc06f3d65c
commit
ab7baf83fd
6 changed files with 53 additions and 110 deletions
|
|
@ -77,11 +77,7 @@ function prepareMapData() {
|
|||
const rulersString = rulers.toString();
|
||||
const fonts = JSON.stringify(getUsedFonts(svg.node()));
|
||||
|
||||
// save svg
|
||||
// Temporarily inject <use> elements so the SVG snapshot includes relief icon data
|
||||
if (typeof prepareReliefForSave === "function") prepareReliefForSave();
|
||||
const cloneEl = document.getElementById("map").cloneNode(true);
|
||||
if (typeof restoreReliefAfterSave === "function") restoreReliefAfterSave();
|
||||
|
||||
// reset transform values to default
|
||||
cloneEl.setAttribute("width", graphWidth);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue