Cancellable, non-blocking form of generateMap: runs the full procedural pipeline in event-loop-friendly slices, reporting progress per pass. Deterministic — same seed + config produces the same map as generateMap.
generateMap
const controller = new AbortController();await generateMapAsync(map, config, seed, { signal: controller.signal, onProgress: p => loadingBar.set(p.progress, p.pass),}); Copy
const controller = new AbortController();await generateMapAsync(map, config, seed, { signal: controller.signal, onProgress: p => loadingBar.set(p.progress, p.pass),});
Cancellable, non-blocking form of
generateMap: runs the full procedural pipeline in event-loop-friendly slices, reporting progress per pass. Deterministic — same seed + config produces the same map asgenerateMap.