From f521a11bd5ffb36f9608159a46fc37b517375e55 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Tue, 3 Dec 2019 23:10:04 +0300 Subject: [PATCH] v1.22.21 --- index.html | 4 ++-- main.js | 4 +--- modules/save-and-load.js | 7 +++++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 95ae5a63..905358ba 100644 --- a/index.html +++ b/index.html @@ -1942,8 +1942,8 @@
diff --git a/main.js b/main.js index 26231dda..8011a1df 100644 --- a/main.js +++ b/main.js @@ -327,11 +327,9 @@ function showWelcomeMessage() {
  • 3d scene and Globe view
  • Ability to save map as JPEG image
  • Diplomacy Editor enhancements
  • -
  • Rivers Overview screen [v 1.21] *
  • +
  • Rivers Overview screen
  • -

    * It's recommended to regenerate rivers to get clean data for Rivers Overview.

    -

    Thanks for all supporters on ${patreon}!

    `; $("#alert").dialog( diff --git a/modules/save-and-load.js b/modules/save-and-load.js index b17f9ba8..c10c8630 100644 --- a/modules/save-and-load.js +++ b/modules/save-and-load.js @@ -85,8 +85,11 @@ async function getMapURL(type, subtype) { if (isFirefox && type === "mesh") clone.select("#oceanPattern").remove(); if (subtype === "globe") clone.select("#scaleBar").remove(); if (subtype === "noWater") {clone.select("#oceanBase").attr("opacity", 0); clone.select("#oceanPattern").attr("opacity", 0);} - if (type === "mesh") clone.attr("width", graphWidth).attr("height", graphHeight); - if (type !== "png") clone.select("#viewbox").attr("transform", null); // reset transform to show whole map + if (type !== "png") { + // reset transform to show the whole map + clone.attr("width", graphWidth).attr("height", graphHeight); + clone.select("#viewbox").attr("transform", null); + } if (type === "svg") removeUnusedElements(clone); if (customization && type === "mesh") updateMeshCells(clone); inlineStyle(clone);