mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.22.10
This commit is contained in:
parent
c54ee39c68
commit
efb8279abb
7 changed files with 83 additions and 103 deletions
5
main.js
5
main.js
|
|
@ -1690,12 +1690,11 @@ const regenerateMap = debounce(function() {
|
|||
resetZoom(1000);
|
||||
generate();
|
||||
restoreLayers();
|
||||
const canvas3d = document.getElementById("canvas3d");
|
||||
if (canvas3d) ThreeD.redraw();
|
||||
if (ThreeD.options.isOn) ThreeD.redraw();
|
||||
if ($("#worldConfigurator").is(":visible")) editWorld();
|
||||
}, 500);
|
||||
|
||||
// Clear the map
|
||||
// clear the map
|
||||
function undraw() {
|
||||
viewbox.selectAll("path, circle, polygon, line, text, use, #zones > g, #ruler > g").remove();
|
||||
defs.selectAll("path, clipPath").remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue