From df4d80bb8608803a42464bb40a7ed777a7571ce0 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 13 Jul 2024 16:51:08 +0200 Subject: [PATCH] chore: tiles - set default values --- index.html | 2 +- modules/ui/options.js | 6 +++--- versioning.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index c997c028..c1c6364d 100644 --- a/index.html +++ b/index.html @@ -8110,7 +8110,7 @@ - + diff --git a/modules/ui/options.js b/modules/ui/options.js index 331a7476..62ae30d5 100644 --- a/modules/ui/options.js +++ b/modules/ui/options.js @@ -902,9 +902,9 @@ function updateTilesOptions() { } const tileSize = byId("tileSize"); - const tilesX = +byId("tileColsOutput").value; - const tilesY = +byId("tileRowsOutput").value; - const scale = +byId("tileScaleOutput").value; + const tilesX = +byId("tileColsOutput").value || 2; + const tilesY = +byId("tileRowsOutput").value || 2; + const scale = +byId("tileScaleOutput").value || 1; // calculate size const sizeX = graphWidth * scale * tilesX; diff --git a/versioning.js b/versioning.js index 0e5b2030..79b475dd 100644 --- a/versioning.js +++ b/versioning.js @@ -1,7 +1,7 @@ "use strict"; // version and caching control -const version = "1.98.02"; // generator version, update each time +const version = "1.98.03"; // generator version, update each time { document.title += " v" + version;