mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 20:41:23 +01:00
Keep visual change for towns
This commit is contained in:
parent
e6d499fa60
commit
e712fa148a
1 changed files with 1 additions and 2 deletions
|
|
@ -146,8 +146,7 @@ window.UISubmap = (function () {
|
||||||
// resize burgIcons
|
// resize burgIcons
|
||||||
const burgIcons = [...document.getElementById("burgIcons").querySelectorAll("g")];
|
const burgIcons = [...document.getElementById("burgIcons").querySelectorAll("g")];
|
||||||
for (const bi of burgIcons) {
|
for (const bi of burgIcons) {
|
||||||
const newRadius = rn(minmax(scale, 0.2, 10) * 0.8, 2);
|
const newRadius = rn(minmax(bi.getAttribute('size') * scale, 0.2, 10), 2);
|
||||||
styleRadiusInput.value = newRadius;
|
|
||||||
changeRadius(newRadius, bi.id);
|
changeRadius(newRadius, bi.id);
|
||||||
const swAttr = bi.attributes['stroke-width'];
|
const swAttr = bi.attributes['stroke-width'];
|
||||||
swAttr.value = +swAttr.value * scale;
|
swAttr.value = +swAttr.value * scale;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue