feat: add map size to json export

This commit is contained in:
Azgaar 2024-05-01 19:38:48 +02:00
parent 83c552d067
commit 98a0f83560
4 changed files with 5 additions and 3 deletions

View file

@ -8052,7 +8052,7 @@
<script src="modules/ui/stylePresets.js?v=1.96.00"></script> <script src="modules/ui/stylePresets.js?v=1.96.00"></script>
<script src="modules/ui/general.js?v=1.96.00"></script> <script src="modules/ui/general.js?v=1.96.00"></script>
<script src="modules/ui/options.js?v=1.96.00"></script> <script src="modules/ui/options.js?v=1.97.08"></script>
<script src="main.js?v=1.97.00"></script> <script src="main.js?v=1.97.00"></script>
<script defer src="modules/relief-icons.js"></script> <script defer src="modules/relief-icons.js"></script>

View file

@ -75,6 +75,8 @@ function getMapInfo() {
description: "Azgaar's Fantasy Map Generator output: azgaar.github.io/Fantasy-map-generator", description: "Azgaar's Fantasy Map Generator output: azgaar.github.io/Fantasy-map-generator",
exportedAt: new Date().toISOString(), exportedAt: new Date().toISOString(),
mapName: mapName.value, mapName: mapName.value,
width: graphWidth,
height: graphHeight,
seed, seed,
mapId mapId
}; };

View file

@ -774,7 +774,7 @@ function showExportPane() {
} }
async function exportToJson(type) { 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); exportToJson(type);
} }

View file

@ -1,7 +1,7 @@
"use strict"; "use strict";
// version and caching control // 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; document.title += " v" + version;