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
|
|
@ -440,12 +440,7 @@ async function parseLoadedData(data, mapVersion) {
|
|||
if (hasChildren(coordinates)) turnOn("toggleCoordinates");
|
||||
if (isVisible(compass) && hasChild(compass, "use")) turnOn("toggleCompass");
|
||||
if (hasChildren(rivers)) turnOn("toggleRivers");
|
||||
if (isVisible(terrain) && hasChildren(terrain)) {
|
||||
turnOn("toggleRelief");
|
||||
}
|
||||
// Migrate any legacy SVG <use> elements to canvas rendering
|
||||
// (runs regardless of visibility to handle maps loaded with relief layer off)
|
||||
if (typeof migrateReliefFromSvg === "function") migrateReliefFromSvg();
|
||||
if (hasChildren(terrain)) turnOn("toggleRelief");
|
||||
if (hasChildren(relig)) turnOn("toggleReligions");
|
||||
if (hasChildren(cults)) turnOn("toggleCultures");
|
||||
if (hasChildren(statesBody)) turnOn("toggleStates");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue