mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.22.05
This commit is contained in:
parent
e21aed5188
commit
bd1200742e
2 changed files with 6 additions and 6 deletions
|
|
@ -1753,14 +1753,14 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr data-tip="Define relative size of a saved png/jpeg image. Saving big images is slow and may cause a browser crash!">
|
<tr data-tip="Define scale of a saved png/jpeg image (e.g. 5x). Saving big images is slow and may cause a browser crash!">
|
||||||
<td></td>
|
<td></td>
|
||||||
<td>PNG/JPEG size</td>
|
<td>PNG/JPEG scale</td>
|
||||||
<td>
|
<td>
|
||||||
<input id="pngResolutionInput" data-stored="pngResolution" type="range" min=1 max=8 value=5>
|
<input id="pngResolutionInput" data-stored="pngResolution" type="range" min=1 max=8 value=1>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input id="pngResolutionOutput" data-stored="pngResolution" type="number" min=1 max=8 value=5>
|
<input id="pngResolutionOutput" data-stored="pngResolution" type="number" min=1 max=8 value=1>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ async function saveSVG() {
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
link.click();
|
link.click();
|
||||||
|
|
||||||
tip(`${link.download} is saved. Open "Downloads" screen (crtl + J) to check`, true, "success", 5000);
|
tip(`${link.download} is saved. Open "Downloads" screen (crtl + J) to check. You can set image scale in options`, true, "success", 5000);
|
||||||
console.timeEnd("saveSVG");
|
console.timeEnd("saveSVG");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@ async function savePNG() {
|
||||||
window.setTimeout(function() {
|
window.setTimeout(function() {
|
||||||
canvas.remove();
|
canvas.remove();
|
||||||
window.URL.revokeObjectURL(link.href);
|
window.URL.revokeObjectURL(link.href);
|
||||||
tip(`${link.download} is saved. Open "Downloads" screen (crtl + J) to check`, true, "success", 5000);
|
tip(`${link.download} is saved. Open "Downloads" screen (crtl + J) to check. You can set image scale in options`, true, "success", 5000);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue