mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
refactor(es modules): use polylabel module and update aleaPRNG as local lib
This commit is contained in:
parent
f9f60176d9
commit
6a7ec6513a
21 changed files with 220 additions and 10 deletions
|
|
@ -11,6 +11,7 @@ import {turnLayerButtonOff, turnLayerButtonOn, updatePresetInput} from "layers";
|
|||
import {restoreDefaultEvents} from "scripts/events";
|
||||
import {prompt} from "scripts/prompt";
|
||||
import {clearMainTip, showMainTip, tip} from "scripts/tooltips";
|
||||
import {aleaPRNG} from "scripts/aleaPRNG";
|
||||
|
||||
export function editHeightmap(options) {
|
||||
const {mode, tool} = options || {};
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import {prompt} from "scripts/prompt";
|
|||
import {getNextId} from "utils/nodeUtils";
|
||||
import {P, generateSeed} from "utils/probabilityUtils";
|
||||
import {turnLayerButtonOn} from "layers";
|
||||
import {aleaPRNG} from "scripts/aleaPRNG";
|
||||
|
||||
toolsContent.addEventListener("click", function (event) {
|
||||
if (customization) return tip("Please exit the customization mode first", false, "warning");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue