mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
chore: install delaunator
This commit is contained in:
parent
eac3e6220c
commit
1abcec8129
7 changed files with 65 additions and 21 deletions
|
|
@ -1,4 +1,6 @@
|
|||
// @ts-nocheck
|
||||
import Delaunator from "delaunator";
|
||||
|
||||
import {TIME} from "../config/logging";
|
||||
import {createTypedArray} from "./arrayUtils";
|
||||
import {rn} from "./numberUtils";
|
||||
|
|
@ -6,8 +8,6 @@ import {byId} from "./shorthands";
|
|||
import {Voronoi} from "/src/modules/voronoi";
|
||||
import {aleaPRNG} from "scripts/aleaPRNG";
|
||||
|
||||
const Delaunator = window.Delaunator;
|
||||
|
||||
// check if new grid graph should be generated or we can use the existing one
|
||||
export function shouldRegenerateGrid(grid) {
|
||||
const cellsDesired = Number(byId("pointsInput")?.dataset.cells);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue