mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-02 21:47:24 +02:00
feat: Implement RuntimeDefsModule for managing shared runtime definitions and update related components
This commit is contained in:
parent
f928f9d101
commit
73d6d664fc
14 changed files with 126 additions and 43 deletions
|
|
@ -75,8 +75,9 @@ function editHeightmap(options) {
|
|||
viewbox.selectAll("#landmass, #lakes").style("display", "none");
|
||||
changeOnlyLand.checked = true;
|
||||
} else if (mode === "risk") {
|
||||
defs.selectAll("#land, #water").selectAll("path").remove();
|
||||
defs.select("#featurePaths").selectAll("path").remove();
|
||||
RuntimeDefs.getLandMask().selectAll("path").remove();
|
||||
RuntimeDefs.getWaterMask().selectAll("path").remove();
|
||||
RuntimeDefs.getFeaturePaths().selectAll("path").remove();
|
||||
viewbox.selectAll("#coastline use, #lakes path, #oceanLayers path").remove();
|
||||
changeOnlyLand.checked = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue