Merge branch 'master' into refactor/migrate-resample-module

This commit is contained in:
Marc Emmanuel 2026-03-10 11:39:46 +01:00
commit 54ba228fb6
11 changed files with 175 additions and 237 deletions

View file

@ -1141,7 +1141,6 @@ function reGraph() {
pack.cells = packCells;
pack.cells.p = newCells.p;
pack.cells.g = createTypedArray({maxValue: grid.points.length, from: newCells.g});
pack.cells.q = d3.quadtree(newCells.p.map(([x, y], i) => [x, y, i]));
pack.cells.h = createTypedArray({maxValue: 100, from: newCells.h});
pack.cells.area = createTypedArray({maxValue: UINT16_MAX, length: packCells.i.length}).map((_, cellId) => {
const area = Math.abs(d3.polygonArea(getPackPolygon(cellId)));
@ -1234,7 +1233,7 @@ function showStatistics() {
INFO && console.info(stats);
// Dispatch event for test automation and external integrations
window.dispatchEvent(new CustomEvent('map:generated', { detail: { seed, mapId } }));
window.dispatchEvent(new CustomEvent("map:generated", {detail: {seed, mapId}}));
}
const regenerateMap = debounce(async function (options) {

View file

@ -260,7 +260,7 @@ function getName(id) {
}
function getGraph(currentGraph) {
const newGraph = shouldRegenerateGrid(currentGraph, seed) ? generateGrid() : deepCopy(currentGraph);
const newGraph = shouldRegenerateGrid(currentGraph, seed) ? generateGrid() : structuredClone(currentGraph);
delete newGraph.cells.h;
return newGraph;
}

View file

@ -16,7 +16,7 @@
* For the changes that may be interesting to end users, update the `latestPublicChanges` array below (new changes on top).
*/
const VERSION = "1.113.5";
const VERSION = "1.113.6";
if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function");
{