From 98a0f835606f1a57ea90084953faf07da4f60241 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Wed, 1 May 2024 19:38:48 +0200 Subject: [PATCH] feat: add map size to json export --- index.html | 2 +- modules/dynamic/export-json.js | 2 ++ modules/ui/options.js | 2 +- versioning.js | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 0291f8cf..2958ade7 100644 --- a/index.html +++ b/index.html @@ -8052,7 +8052,7 @@ - + diff --git a/modules/dynamic/export-json.js b/modules/dynamic/export-json.js index c8110b80..721f9483 100644 --- a/modules/dynamic/export-json.js +++ b/modules/dynamic/export-json.js @@ -75,6 +75,8 @@ function getMapInfo() { description: "Azgaar's Fantasy Map Generator output: azgaar.github.io/Fantasy-map-generator", exportedAt: new Date().toISOString(), mapName: mapName.value, + width: graphWidth, + height: graphHeight, seed, mapId }; diff --git a/modules/ui/options.js b/modules/ui/options.js index 2f14d9d7..1a3ea20e 100644 --- a/modules/ui/options.js +++ b/modules/ui/options.js @@ -774,7 +774,7 @@ function showExportPane() { } async function exportToJson(type) { - const {exportToJson} = await import("../dynamic/export-json.js?v=1.96.00"); + const {exportToJson} = await import("../dynamic/export-json.js?v=1.97.08"); exportToJson(type); } diff --git a/versioning.js b/versioning.js index 23d8de07..2a02467f 100644 --- a/versioning.js +++ b/versioning.js @@ -1,7 +1,7 @@ "use strict"; // version and caching control -const version = "1.97.07"; // generator version, update each time +const version = "1.97.08"; // generator version, update each time { document.title += " v" + version;