Update src/modules/heightmap-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Marc Emmanuel 2026-01-19 15:18:04 +01:00 committed by GitHub
parent 4b5e9bfeea
commit 53f26b0490
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -544,7 +544,7 @@ class HeightmapGenerator {
fromPrecreated(graph: any, id: string): Promise<Uint8Array> { fromPrecreated(graph: any, id: string): Promise<Uint8Array> {
return new Promise(resolve => { 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 canvas = document.createElement("canvas");
const ctx = canvas.getContext("2d") as CanvasRenderingContext2D; const ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
const {cellsX, cellsY} = graph; const {cellsX, cellsY} = graph;