diff --git a/macrovision.js b/macrovision.js index 718ee58c..a75dbb1f 100644 --- a/macrovision.js +++ b/macrovision.js @@ -1117,7 +1117,7 @@ document.addEventListener("DOMContentLoaded", () => { arrangeEntities(order); }); - document.querySelector("#options-world-fit").addEventListener("click", fitWorld); + document.querySelector("#options-world-fit").addEventListener("click", () => fitWorld(true)); document.querySelector("#options-world-autofit").addEventListener("input", e => { config.autoFit = e.target.checked; @@ -1337,7 +1337,7 @@ const fitModes = { } } -function fitWorld() { +function fitWorld(manual=false) { const fitMode = fitModes[config.autoFitMode] let max = fitMode.start @@ -1359,7 +1359,11 @@ function fitWorld() { max = math.unit(max, "meter") + if (manual) + altHeld = true; setWorldHeight(config.height, math.multiply(max, 1.1)); + if (manual) + altHeld = false; } function updateWorldHeight() { diff --git a/media/characters/ky'owin/front.svg b/media/characters/ky'owin/front.svg new file mode 100644 index 00000000..6c0aabe1 --- /dev/null +++ b/media/characters/ky'owin/front.svg @@ -0,0 +1,807 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/presets/scenes.js b/presets/scenes.js index 48f2fbff..a1272f84 100644 --- a/presets/scenes.js +++ b/presets/scenes.js @@ -22,7 +22,7 @@ scenes["Demo"] = () => { entity = availableEntitiesByName["Houston"].constructor(); displayEntity(entity, entity.defaultView, 0.5, 1); - fitWorld(); + fitWorld(true); } scenes["Military"] = () => { @@ -48,7 +48,7 @@ scenes["Military"] = () => { displayEntity(entity, entity.defaultView, 0, 1); arrangeEntities(getSortedEntities()); - fitWorld(); + fitWorld(true); } function makeSlice(min, max) { @@ -64,7 +64,7 @@ function makeSlice(min, max) { }); arrangeEntities(getSortedEntities()); - fitWorld(); + fitWorld(true); } } @@ -86,7 +86,7 @@ scenes["Kurri"] = () => { }); arrangeEntities(getSortedEntities()); - fitWorld(); + fitWorld(true); } \ No newline at end of file