This commit is contained in:
Azgaar 2019-12-03 23:10:04 +03:00
parent 2f43694ecb
commit f521a11bd5
3 changed files with 8 additions and 7 deletions

View file

@ -1942,8 +1942,8 @@
<i data-locked=0 id="lock_mapSize" class="icon-lock-open"></i> <i data-locked=0 id="lock_mapSize" class="icon-lock-open"></i>
<label data-tip="Set map size relative to the world size"> <label data-tip="Set map size relative to the world size">
<i>Map size:</i> <i>Map size:</i>
<input id="mapSizeInput" data-stored="mapSize" type="number" min="1" max="100" step=1>% <input id="mapSizeInput" data-stored="mapSize" type="number" min="1" max="100">%
<input id="mapSizeOutput" data-stored="mapSize" type="range" min="1" max="100" step=1> <input id="mapSizeOutput" data-stored="mapSize" type="range" min="1" max="100">
</label> </label>
</div> </div>
<div> <div>

View file

@ -327,11 +327,9 @@ function showWelcomeMessage() {
<li>3d scene and Globe view</li> <li>3d scene and Globe view</li>
<li>Ability to save map as JPEG image</li> <li>Ability to save map as JPEG image</li>
<li>Diplomacy Editor enhancements</li> <li>Diplomacy Editor enhancements</li>
<li>Rivers Overview screen [v 1.21] <b>*</b></li> <li>Rivers Overview screen</li>
</ul> </ul>
<p style="color:#990000; font-style: italic"><b>*</b> It's recommended to regenerate rivers to get clean data for Rivers Overview.<p>
<p>Thanks for all supporters on ${patreon}!</i></p>`; <p>Thanks for all supporters on ${patreon}!</i></p>`;
$("#alert").dialog( $("#alert").dialog(

View file

@ -85,8 +85,11 @@ async function getMapURL(type, subtype) {
if (isFirefox && type === "mesh") clone.select("#oceanPattern").remove(); if (isFirefox && type === "mesh") clone.select("#oceanPattern").remove();
if (subtype === "globe") clone.select("#scaleBar").remove(); if (subtype === "globe") clone.select("#scaleBar").remove();
if (subtype === "noWater") {clone.select("#oceanBase").attr("opacity", 0); clone.select("#oceanPattern").attr("opacity", 0);} 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") {
if (type !== "png") clone.select("#viewbox").attr("transform", null); // reset transform to show whole map // 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 (type === "svg") removeUnusedElements(clone);
if (customization && type === "mesh") updateMeshCells(clone); if (customization && type === "mesh") updateMeshCells(clone);
inlineStyle(clone); inlineStyle(clone);