From 53f26b0490ef65a6440aa746b0cd7ea554042ed4 Mon Sep 17 00:00:00 2001 From: Marc Emmanuel Date: Mon, 19 Jan 2026 15:18:04 +0100 Subject: [PATCH 1/3] Update src/modules/heightmap-generator.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/modules/heightmap-generator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/heightmap-generator.ts b/src/modules/heightmap-generator.ts index 2eed7f03..d2a8e182 100644 --- a/src/modules/heightmap-generator.ts +++ b/src/modules/heightmap-generator.ts @@ -544,7 +544,7 @@ class HeightmapGenerator { fromPrecreated(graph: any, id: string): Promise { return new Promise(resolve => { - // create canvas where 1px corresponts to a cell + // create canvas where 1px corresponds to a cell const canvas = document.createElement("canvas"); const ctx = canvas.getContext("2d") as CanvasRenderingContext2D; const {cellsX, cellsY} = graph; From c9371929d98ce3f61651104edcfc8804672fd525 Mon Sep 17 00:00:00 2001 From: Marc Emmanuel Date: Mon, 19 Jan 2026 15:18:27 +0100 Subject: [PATCH 2/3] Update src/utils/graphUtils.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/utils/graphUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/graphUtils.ts b/src/utils/graphUtils.ts index 198a1e99..875445fb 100644 --- a/src/utils/graphUtils.ts +++ b/src/utils/graphUtils.ts @@ -139,7 +139,7 @@ export const calculateVoronoi = (points: Point[], boundary: Point[]): {cells: Ce const voronoi = new Voronoi(delaunay, allPoints, points.length); const cells = voronoi.cells; - cells.i = createTypedArray({maxValue: points.length, length: points.length}).map((_, i) => i) as Uint32Array; // array of indexes + cells.i = createTypedArray({maxValue: points.length, length: points.length}).map((_, i) => i) as Uint32Array; // array of indexes const vertices = voronoi.vertices; TIME && console.timeEnd("calculateVoronoi"); From 5dc237ef698beffb7327ee314c47c2faadc50b37 Mon Sep 17 00:00:00 2001 From: Marc Emmanuel Date: Mon, 19 Jan 2026 15:18:40 +0100 Subject: [PATCH 3/3] Update src/modules/heightmap-generator.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/modules/heightmap-generator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/heightmap-generator.ts b/src/modules/heightmap-generator.ts index d2a8e182..755b16df 100644 --- a/src/modules/heightmap-generator.ts +++ b/src/modules/heightmap-generator.ts @@ -1,6 +1,6 @@ import Alea from "alea"; import { range as d3Range, leastIndex, mean } from "d3"; -import { createTypedArray, byId,findGridCell,getNumberInRange,lim,minmax,P,rand } from "../utils"; +import { createTypedArray, byId, findGridCell, getNumberInRange, lim, minmax, P, rand } from "../utils"; declare global { interface Window {