mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.22.20
This commit is contained in:
parent
614aaae733
commit
d1b249ae79
6 changed files with 82 additions and 58 deletions
|
|
@ -134,8 +134,8 @@ function mapSizeInputChange() {
|
|||
|
||||
// change svg size on manual size change or window resize, do not change graph size
|
||||
function changeMapSize() {
|
||||
const svgWidth = Math.min(+mapWidthInput.value, window.innerWidth);
|
||||
const svgHeight = Math.min(+mapHeightInput.value, window.innerHeight);
|
||||
svgWidth = Math.min(+mapWidthInput.value, window.innerWidth);
|
||||
svgHeight = Math.min(+mapHeightInput.value, window.innerHeight);
|
||||
svg.attr("width", svgWidth).attr("height", svgHeight);
|
||||
|
||||
const maxWidth = Math.max(+mapWidthInput.value, graphWidth);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue