chore: install delaunator

This commit is contained in:
Azgaar 2022-07-03 08:46:04 +03:00
parent eac3e6220c
commit 1abcec8129
7 changed files with 65 additions and 21 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,5 @@
import FlatQueue from "flatqueue";
import Delaunator from "delaunator";
import {TIME} from "config/logging";
import {layerIsOn} from "layers";

View file

@ -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);