diff --git a/index.html b/index.html
index bd08e3ce..e9977dd0 100644
--- a/index.html
+++ b/index.html
@@ -8161,7 +8161,7 @@
-
+
diff --git a/modules/io/export.js b/modules/io/export.js
index e860197c..5119c72e 100644
--- a/modules/io/export.js
+++ b/modules/io/export.js
@@ -87,7 +87,7 @@ async function exportToPngTiles() {
imgSchema.src = urlSchema;
await loadImage(imgSchema);
- status.innerHTML = "Drawing schema...";
+ status.innerHTML = "Rendering schema...";
ctx.drawImage(imgSchema, 0, 0, canvas.width, canvas.height);
const blob = await canvasToBlob(canvas, "image/png");
ctx.clearRect(0, 0, canvas.width, canvas.height);
@@ -95,9 +95,9 @@ async function exportToPngTiles() {
// download tiles
const url = await getMapURL("tiles", {fullMap: true});
- const tilesX = +byId("tileColsInput").value;
- const tilesY = +byId("tileRowsInput").value;
- const scale = +byId("tileScaleInput").value;
+ const tilesX = +byId("tileColsOutput").value || 2;
+ const tilesY = +byId("tileRowsOutput").value || 2;
+ const scale = +byId("tileScaleOutput").value || 1;
const tolesTotal = tilesX * tilesY;
const tileW = (graphWidth / tilesX) | 0;
@@ -113,11 +113,17 @@ async function exportToPngTiles() {
await loadImage(img);
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ function getRowLabel(row) {
+ const first = row >= alphabet.length ? alphabet[Math.floor(row / alphabet.length) - 1] : "";
+ const last = alphabet[row % alphabet.length];
+ return first + last;
+ }
+
for (let y = 0, row = 0, id = 1; y + tileH <= graphHeight; y += tileH, row++) {
- const rowName = alphabet[row % alphabet.length];
+ const rowName = getRowLabel(row);
for (let x = 0, cell = 1; x + tileW <= graphWidth; x += tileW, cell++, id++) {
- status.innerHTML = `Drawing tile ${rowName}${cell} (${id} of ${tolesTotal})...`;
+ status.innerHTML = `Rendering tile ${rowName}${cell} (${id} of ${tolesTotal})...`;
ctx.drawImage(img, x, y, tileW, tileH, 0, 0, width, height);
const blob = await canvasToBlob(canvas, "image/png");
ctx.clearRect(0, 0, canvas.width, canvas.height);
diff --git a/versioning.js b/versioning.js
index 2113926a..cb38478d 100644
--- a/versioning.js
+++ b/versioning.js
@@ -1,7 +1,7 @@
"use strict";
// version and caching control
-const version = "1.98.04"; // generator version, update each time
+const version = "1.98.05"; // generator version, update each time
{
document.title += " v" + version;