mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-09 17:06:05 +02:00
feat: relief three.js renderer
This commit is contained in:
parent
7a49098425
commit
7481a2843e
19 changed files with 828 additions and 120 deletions
|
|
@ -459,6 +459,8 @@ function handleZoom(isScaleChanged, isPositionChanged) {
|
|||
fitScaleBar(scaleBar, svgWidth, svgHeight);
|
||||
}
|
||||
|
||||
if (layerIsOn("toggleRelief")) renderReliefIcons();
|
||||
|
||||
// zoom image converter overlay
|
||||
if (customization === 1) {
|
||||
const canvas = byId("canvas");
|
||||
|
|
@ -1234,7 +1236,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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue