diff --git a/macrovision.js b/macrovision.js index 4e7c9ad9..77801769 100644 --- a/macrovision.js +++ b/macrovision.js @@ -195,7 +195,7 @@ function updateEntityElement(entity, element) { element.style.left = position.x + "px"; element.style.top = position.y + "px"; element.style.setProperty("--xpos", position.x + "px"); - element.style.setProperty("--entity-height", "'" + entity.views[view].height.to(config.height.units[0].unit.name).format({precision: 2}) + "'"); + element.style.setProperty("--entity-height", "'" + entity.views[view].height.to(config.height.units[0].unit.name).format({ precision: 2 }) + "'"); const pixels = math.divide(entity.views[view].height, config.height) * (canvasHeight - 50); const extra = entity.views[view].image.extra; const bottom = entity.views[view].image.bottom; @@ -206,7 +206,7 @@ function updateEntityElement(entity, element) { if (entity.views[view].rename) element.querySelector(".entity-name").innerText = entity.name == "" ? "" : entity.views[view].name; else - element.querySelector(".entity-name").innerText = entity.name; + element.querySelector(".entity-name").innerText = entity.name; const bottomName = document.querySelector("#bottom-name-" + element.dataset.key); @@ -238,7 +238,7 @@ function updateSizes(dirtyOnly = false) { } else { return e1[1].views[e1[1].view].height.value - e2[1].views[e2[1].view].height.value } - + }); let zIndex = ordered.length; @@ -256,7 +256,7 @@ function updateSizes(dirtyOnly = false) { } -function drawScale(ifDirty=false) { +function drawScale(ifDirty = false) { if (ifDirty && !worldSizeDirty) return; function drawTicks(/** @type {CanvasRenderingContext2D} */ ctx, pixelsPer, heightPer) { @@ -538,7 +538,7 @@ function deselect() { clearViewList(); clearEntityOptions(); clearViewOptions(); - + document.querySelector("#delete-entity").disabled = true; document.querySelector("#grow").disabled = true; @@ -554,13 +554,13 @@ function select(target) { document.getElementById("options-selected-entity-" + target.dataset.key).selected = "selected"; selected.classList.add("selected"); - + displayAttribution(selectedEntity.views[selectedEntity.view].image.source); configViewList(selectedEntity, selectedEntity.view); configEntityOptions(selectedEntity, selectedEntity.view); configViewOptions(selectedEntity, selectedEntity.view); - + document.querySelector("#delete-entity").disabled = false; document.querySelector("#grow").disabled = false; @@ -605,7 +605,7 @@ function updateWorldOptions(entity, view) { function configEntityOptions(entity, view) { const holder = document.querySelector("#options-entity"); - + document.querySelector("#entity-category-header").style.display = "block"; document.querySelector("#entity-category").style.display = "block"; @@ -687,10 +687,10 @@ function configEntityOptions(entity, view) { entity.dirty = true; updateEntityOptions(entity, entity.view); updateViewOptions(entity, entity.view); - if (!checkFitWorld()){ + if (!checkFitWorld()) { updateSizes(true); } - + }); defaultHolder.appendChild(button); @@ -722,7 +722,7 @@ function clearEntityOptions() { function configViewOptions(entity, view) { const holder = document.querySelector("#options-view"); - + document.querySelector("#view-category-header").style.display = "block"; document.querySelector("#view-category").style.display = "block"; @@ -778,7 +778,7 @@ function configViewOptions(entity, view) { select.setAttribute("oldUnit", select.value); - // TODO does this ever cause a change in the world? + // TODO does this ever cause a change in the world? select.addEventListener("input", e => { const value = input.value == 0 ? 1 : input.value; const oldUnit = select.getAttribute("oldUnit"); @@ -809,7 +809,7 @@ function updateViewOptions(entity, view, changed) { if (key != changed) { const input = document.querySelector("#options-view-" + key + "-input"); const select = document.querySelector("#options-view-" + key + "-select"); - + const currentUnit = select.value; const convertedAmount = entity.views[view][key].toNumber(currentUnit); setNumericInput(input, convertedAmount); @@ -818,7 +818,7 @@ function updateViewOptions(entity, view, changed) { }); } -function setNumericInput(input, value, round=3) { +function setNumericInput(input, value, round = 3) { input.value = math.round(value, round); } @@ -1045,9 +1045,9 @@ function checkEntity(entity) { }); } -function displayEntity(entity, view, x, y, selectEntity=false, refresh=false) { +function displayEntity(entity, view, x, y, selectEntity = false, refresh = false) { checkEntity(entity); - + const box = document.createElement("div"); box.classList.add("entity-box"); @@ -1056,7 +1056,7 @@ function displayEntity(entity, view, x, y, selectEntity=false, refresh=false) { img.addEventListener("dragstart", e => { e.preventDefault(); }); - + const nameTag = document.createElement("div"); nameTag.classList.add("entity-name"); nameTag.innerText = entity.name; @@ -1093,7 +1093,7 @@ function displayEntity(entity, view, x, y, selectEntity=false, refresh=false) { box.id = "entity-" + entityIndex; box.dataset.key = entityIndex; entity.view = view; - + entity.priority = 0; entities[entityIndex] = entity; entity.index = entityIndex; @@ -1118,7 +1118,7 @@ function displayEntity(entity, view, x, y, selectEntity=false, refresh=false) { topName.addEventListener("click", () => select(box)); world.appendChild(topName); - + const entityOption = document.createElement("option"); entityOption.id = "options-selected-entity-" + entityIndex; entityOption.value = entityIndex; @@ -1154,17 +1154,17 @@ window.onfocus = function () { function toggleFullScreen() { var doc = window.document; var docEl = doc.documentElement; - + var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen; var cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen || doc.msExitFullscreen; - - if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) { - requestFullScreen.call(docEl); + + if (!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) { + requestFullScreen.call(docEl); } else { - cancelFullScreen.call(doc); + cancelFullScreen.call(doc); } - } +} function handleResize() { const oldCanvasWidth = canvasWidth; @@ -1173,7 +1173,7 @@ function handleResize() { canvasHeight = document.querySelector("#display").clientHeight - 50; const change = oldCanvasWidth / canvasWidth; - + doHorizReposition(change); updateSizes(); @@ -1262,7 +1262,7 @@ function prepareMenu() { button.classList.add("menu-button"); const icon = document.createElement("i"); icon.classList.add(...entry.icon.split(" ")); - + if (entry.rotates) { icon.classList.add("rotate-backward", "transitions"); } @@ -1318,7 +1318,7 @@ function setHelpDate() { function doScroll() { document.querySelectorAll(".entity-box").forEach(element => { - element.dataset.x = parseFloat(element.dataset.x) + scrollDirection/180; + element.dataset.x = parseFloat(element.dataset.x) + scrollDirection / 180; }); updateSizes(); scrollDirection *= 1.05; @@ -1335,7 +1335,7 @@ function doSize() { if (selected) { const entity = entities[selected.dataset.key]; const oldHeight = entity.views[entity.view].height; - entity.views[entity.view].height = math.multiply(oldHeight, 1 + sizeDirection/20); + entity.views[entity.view].height = math.multiply(oldHeight, 1 + sizeDirection / 20); entity.dirty = true; updateEntityOptions(entity, entity.view); updateViewOptions(entity, entity.view); @@ -1347,7 +1347,7 @@ function doSize() { console.log(ownHeight, worldHeight) if (ownHeight > worldHeight) { - setWorldHeight(config.height, entity.views[entity.view].height) + setWorldHeight(config.height, entity.views[entity.view].height) } else if (ownHeight * 10 < worldHeight) { setWorldHeight(config.height, math.multiply(entity.views[entity.view].height, 10)); } @@ -1379,7 +1379,7 @@ document.addEventListener("DOMContentLoaded", () => { document.addEventListener("click", e => { document.querySelector("#popout-menu").classList.remove("visible"); }); - + window.addEventListener("unload", () => saveScene("autosave")); document.querySelector("#options-selected-entity").addEventListener("input", e => { if (e.target.value == "none") { @@ -1387,7 +1387,7 @@ document.addEventListener("DOMContentLoaded", () => { } else { select(document.querySelector("#entity-" + e.target.value)); } - + }); document.querySelector("#menu-toggle-sidebar").addEventListener("click", e => { @@ -1522,7 +1522,7 @@ document.addEventListener("DOMContentLoaded", () => { if (param === null) { scenes["Default"](); } - + else { try { const data = JSON.parse(b64DecodeUnicode(param)); @@ -1546,7 +1546,7 @@ document.addEventListener("DOMContentLoaded", () => { if (shiftHeld) { if (selected) { - const dir = e.deltaY > 0 ? 10/11 : 11/10; + const dir = e.deltaY > 0 ? 10 / 11 : 11 / 10; const entity = entities[selected.dataset.key]; entity.views[entity.view].height = math.multiply(entity.views[entity.view].height, dir); entity.dirty = true; @@ -1561,7 +1561,7 @@ document.addEventListener("DOMContentLoaded", () => { } } else { - const dir = e.deltaY < 0 ? 10/11 : 11/10; + const dir = e.deltaY < 0 ? 10 / 11 : 11 / 10; setWorldHeight(config.height, math.multiply(config.height, dir)); updateWorldOptions(); } @@ -1587,7 +1587,7 @@ document.addEventListener("DOMContentLoaded", () => { document.querySelector("#entity-view").addEventListener("input", e => { const entity = entities[selected.dataset.key]; entity.view = e.target.value; - + const image = entities[selected.dataset.key].views[e.target.value].image; selected.querySelector(".entity-image").src = image.source; @@ -1608,7 +1608,7 @@ document.addEventListener("DOMContentLoaded", () => { document.querySelector("#menu-clear").addEventListener("click", e => { removeAllEntities(); }); - + document.querySelector("#delete-entity").disabled = true; document.querySelector("#delete-entity").addEventListener("click", e => { if (selected) { @@ -1636,28 +1636,28 @@ document.addEventListener("DOMContentLoaded", () => { document.querySelector("#scroll-left").addEventListener("mousedown", e => { scrollDirection = 1; clearInterval(scrollHandle); - scrollHandle = setInterval(doScroll, 1000/20); + scrollHandle = setInterval(doScroll, 1000 / 20); e.stopPropagation(); }); document.querySelector("#scroll-right").addEventListener("mousedown", e => { scrollDirection = -1; clearInterval(scrollHandle); - scrollHandle = setInterval(doScroll, 1000/20); + scrollHandle = setInterval(doScroll, 1000 / 20); e.stopPropagation(); }); document.querySelector("#scroll-left").addEventListener("touchstart", e => { scrollDirection = 1; clearInterval(scrollHandle); - scrollHandle = setInterval(doScroll, 1000/20); + scrollHandle = setInterval(doScroll, 1000 / 20); e.stopPropagation(); }); document.querySelector("#scroll-right").addEventListener("touchstart", e => { scrollDirection = -1; clearInterval(scrollHandle); - scrollHandle = setInterval(doScroll, 1000/20); + scrollHandle = setInterval(doScroll, 1000 / 20); e.stopPropagation(); }); @@ -1674,28 +1674,28 @@ document.addEventListener("DOMContentLoaded", () => { document.querySelector("#zoom-in").addEventListener("mousedown", e => { zoomDirection = -1; clearInterval(zoomHandle); - zoomHandle = setInterval(doZoom, 1000/20); + zoomHandle = setInterval(doZoom, 1000 / 20); e.stopPropagation(); }); document.querySelector("#zoom-out").addEventListener("mousedown", e => { zoomDirection = 1; clearInterval(zoomHandle); - zoomHandle = setInterval(doZoom, 1000/20); + zoomHandle = setInterval(doZoom, 1000 / 20); e.stopPropagation(); }); document.querySelector("#zoom-in").addEventListener("touchstart", e => { zoomDirection = -1; clearInterval(zoomHandle); - zoomHandle = setInterval(doZoom, 1000/20); + zoomHandle = setInterval(doZoom, 1000 / 20); e.stopPropagation(); }); document.querySelector("#zoom-out").addEventListener("touchstart", e => { zoomDirection = 1; clearInterval(zoomHandle); - zoomHandle = setInterval(doZoom, 1000/20); + zoomHandle = setInterval(doZoom, 1000 / 20); e.stopPropagation(); }); @@ -1712,28 +1712,28 @@ document.addEventListener("DOMContentLoaded", () => { document.querySelector("#shrink").addEventListener("mousedown", e => { sizeDirection = -1; clearInterval(sizeHandle); - sizeHandle = setInterval(doSize, 1000/20); + sizeHandle = setInterval(doSize, 1000 / 20); e.stopPropagation(); }); document.querySelector("#grow").addEventListener("mousedown", e => { sizeDirection = 1; clearInterval(sizeHandle); - sizeHandle = setInterval(doSize, 1000/20); + sizeHandle = setInterval(doSize, 1000 / 20); e.stopPropagation(); }); document.querySelector("#shrink").addEventListener("touchstart", e => { sizeDirection = -1; clearInterval(sizeHandle); - sizeHandle = setInterval(doSize, 1000/20); + sizeHandle = setInterval(doSize, 1000 / 20); e.stopPropagation(); }); document.querySelector("#grow").addEventListener("touchstart", e => { sizeDirection = 1; clearInterval(sizeHandle); - sizeHandle = setInterval(doSize, 1000/20); + sizeHandle = setInterval(doSize, 1000 / 20); e.stopPropagation(); }); @@ -1889,7 +1889,7 @@ function prepareEntities() { button.id = "create-entity-" + category + "-button"; button.innerHTML = ""; - + button.addEventListener("click", e => { const newEntity = entityList[select.value].constructor() displayEntity(newEntity, newEntity.defaultView, 0.5, 1, true, true); @@ -1911,7 +1911,7 @@ function prepareEntities() { }); console.log("Loaded " + Object.keys(availableEntitiesByName).length + " entities"); - + categorySelect.addEventListener("input", e => { const oldSelect = document.querySelector("select.category-visible"); oldSelect.classList.remove("category-visible"); @@ -1987,7 +1987,7 @@ const fitModes = { } } -function fitWorld(manual=false, factor=1.1) { +function fitWorld(manual = false, factor = 1.1) { const fitMode = fitModes[config.autoFitMode] let max = fitMode.start @@ -2045,7 +2045,7 @@ function setWorldHeight(oldHeight, newHeight) { updateSizes(); } -function loadScene(name="default") { +function loadScene(name = "default") { try { const data = JSON.parse(localStorage.getItem("macrovision-save-" + name)); if (data === null) { @@ -2060,7 +2060,7 @@ function loadScene(name="default") { } } -function saveScene(name="default") { +function saveScene(name = "default") { try { const string = JSON.stringify(exportScene()); localStorage.setItem("macrovision-save-" + name, string); @@ -2070,10 +2070,10 @@ function saveScene(name="default") { } } -function deleteScene(name="default") { +function deleteScene(name = "default") { try { localStorage.removeItem("macrovision-save-" + name) - } catch(err) { + } catch (err) { console.error(err); } } @@ -2117,12 +2117,12 @@ function b64EncodeUnicode(str) { return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function toSolidBytes(match, p1) { return String.fromCharCode('0x' + p1); - })); + })); } function b64DecodeUnicode(str) { // Going backwards: from bytestream, to percent-encoding, to original string. - return decodeURIComponent(atob(str).split('').map(function(c) { + return decodeURIComponent(atob(str).split('').map(function (c) { return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); }).join('')); } diff --git a/media/attribution.js b/media/attribution.js index 6325019e..2aab139c 100644 --- a/media/attribution.js +++ b/media/attribution.js @@ -1152,38 +1152,38 @@ const attributionData = { { prefix: "./media/cities/", files: [ - { name: "city_atlanta.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_boston.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_calgary.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_chicago.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_columbus.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_dallas.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_detroit.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_edmonton.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_guadalajara.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_houston.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_indianapolis.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_jacksonville.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_kansas-city.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_los-angeles.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_mexico-city.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_mississauga.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_montreal.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_new-york-city.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_ottawa.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_philadelphia.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_phoenix.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_puebla.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_san-antonio.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_san-diego.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_san-francisco.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_seattle.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_st-louis.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_tijuana.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_toronto.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_vancouver.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_washington.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, - { name: "city_winnipeg.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html"}, + { name: "city_atlanta.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_boston.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_calgary.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_chicago.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_columbus.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_dallas.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_detroit.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_edmonton.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_guadalajara.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_houston.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_indianapolis.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_jacksonville.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_kansas-city.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_los-angeles.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_mexico-city.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_mississauga.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_montreal.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_new-york-city.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_ottawa.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_philadelphia.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_phoenix.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_puebla.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_san-antonio.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_san-diego.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_san-francisco.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_seattle.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_st-louis.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_tijuana.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_toronto.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_vancouver.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_washington.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, + { name: "city_winnipeg.svg", source: "https://all-free-download.com/free-vector/download/big-cities-silhouette-set-vector_548864.html" }, ], authors: [ "freedesignfile" @@ -2429,7 +2429,7 @@ const attributionData = { { name: "front.svg", source: "https://www.furaffinity.net/view/35993069/" }, { name: "back.svg", source: "https://www.furaffinity.net/view/35993069/" }, { name: "foot.svg", source: "https://www.furaffinity.net/view/35993069/" }, - + ], authors: [ "victni" @@ -8396,8 +8396,8 @@ const attributionData = { { prefix: "./media/characters/gabira/", files: [ - { name: "front.svg", source: "https://www.furaffinity.net/view/22244723/" }, - { name: "back.svg", source: "https://www.furaffinity.net/view/22244723/" }, + { name: "front.svg", source: "https://www.furaffinity.net/view/22244723/" }, + { name: "back.svg", source: "https://www.furaffinity.net/view/22244723/" }, ], authors: [ "gabira" @@ -11456,7 +11456,7 @@ const attributionData = { "evilwithin": { "name": "evilwithin", "url": "https://www.furaffinity.net/user/evilwithin/", - }, + }, "dragondruid": { "name": "dragondruid", "url": "https://www.furaffinity.net/user/dragondruid/", @@ -12388,7 +12388,7 @@ function prepareAttribution() { } }) } - + }); } @@ -12399,7 +12399,7 @@ function authorsOf(file) { const found = attribution.prefixes[Object.keys(attribution.prefixes).find(path => { return (file.indexOf(path) == 0); })]; - + if (found === undefined) { return undefined; @@ -12421,7 +12421,7 @@ function authorsOfFull(file) { const found = attribution.prefixes[Object.keys(attribution.prefixes).find(path => { return (file.indexOf(path) == 0); })]; - + if (found === undefined || found.authors === undefined) { return undefined; @@ -12441,7 +12441,7 @@ function ownersOf(file) { const found = attribution.prefixes[Object.keys(attribution.prefixes).find(path => { return (file.indexOf(path) == 0); })]; - + if (found === undefined) { return undefined; @@ -12468,12 +12468,12 @@ function ownersOfFull(file) { const found = attribution.prefixes[Object.keys(attribution.prefixes).find(path => { return (file.indexOf(path) == 0); })]; - + if (found === undefined) { return undefined; } else if (found.owners === undefined) { - return []; + return []; } else { found.owners.forEach(owner => { result.push(attributionData.people[owner]); @@ -12490,7 +12490,7 @@ function sourceOf(file) { const found = attribution.prefixes[Object.keys(attribution.prefixes).find(path => { return (file.indexOf(path) == 0); })]; - + if (found === undefined) { return undefined; diff --git a/presets/buildings.js b/presets/buildings.js index 264e653d..e5f6dcc3 100644 --- a/presets/buildings.js +++ b/presets/buildings.js @@ -153,7 +153,7 @@ function makeBuildings() { ) results.push( - makeHeight ( + makeHeight( [ ["residential", 12, "feet"], ["freeway", 50, "feet"] @@ -165,7 +165,7 @@ function makeBuildings() { ) results.push( - makeHeight ( + makeHeight( [ ["manhattan", 141.8, "meters"], ["houston", 93, "meters"] diff --git a/presets/characters.js b/presets/characters.js index f358e8c6..f215868a 100644 --- a/presets/characters.js +++ b/presets/characters.js @@ -432,8 +432,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/elijah/front.svg", - extra: 639/626, - bottom: 58.7/697.8 + extra: 639 / 626, + bottom: 58.7 / 697.8 } }, side: { @@ -442,8 +442,8 @@ characterMakers.push(() => makeCharacter( name: "Side", image: { source: "./media/characters/elijah/side.svg", - extra: 1840/1795, - bottom: 106/1943 + extra: 1840 / 1795, + bottom: 106 / 1943 } }, back: { @@ -452,8 +452,8 @@ characterMakers.push(() => makeCharacter( name: "Back", image: { source: "./media/characters/elijah/back.svg", - extra: 661.2/639.5, - bottom: 21.2/682.5 + extra: 661.2 / 639.5, + bottom: 21.2 / 682.5 } }, foot: { @@ -613,8 +613,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/flamm/front.svg", - extra: 1794/1677, - bottom: 31.7/1828.5 + extra: 1794 / 1677, + bottom: 31.7 / 1828.5 } }, }, @@ -691,8 +691,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/fory/front.svg", - extra: 2862/2674, - bottom: 180/3043.8 + extra: 2862 / 2674, + bottom: 180 / 3043.8 } }, back: { @@ -701,8 +701,8 @@ characterMakers.push(() => makeCharacter( name: "Back", image: { source: "./media/characters/fory/back.svg", - extra: 2962/2791, - bottom: 106/3071.8 + extra: 2962 / 2791, + bottom: 106 / 3071.8 } }, foot: { @@ -1001,14 +1001,14 @@ characterMakers.push(() => makeCharacter( characterMakers.push(() => makeCharacter( { name: "Talan" }, { - + angled: { height: math.unit(4, "meter"), weight: math.unit(150, "kg"), name: "Angled", image: { source: "./media/characters/talan/angled-sfw.svg", - bottom: 29/3734 + bottom: 29 / 3734 } }, angledNsfw: { @@ -1017,7 +1017,7 @@ characterMakers.push(() => makeCharacter( name: "Angled (NSFW)", image: { source: "./media/characters/talan/angled-nsfw.svg", - bottom: 29/3734 + bottom: 29 / 3734 } }, frontNsfw: { @@ -1026,7 +1026,7 @@ characterMakers.push(() => makeCharacter( name: "Front (NSFW)", image: { source: "./media/characters/talan/front-nsfw.svg", - bottom: 29/3734 + bottom: 29 / 3734 } }, sideNsfw: { @@ -1035,7 +1035,7 @@ characterMakers.push(() => makeCharacter( name: "Side (NSFW)", image: { source: "./media/characters/talan/side-nsfw.svg", - bottom: 29/3734 + bottom: 29 / 3734 } }, back: { @@ -1254,8 +1254,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/elbial/front.svg", - extra: 1643/1556, - bottom: 60.2/1696 + extra: 1643 / 1556, + bottom: 60.2 / 1696 } }, side: { @@ -1264,8 +1264,8 @@ characterMakers.push(() => makeCharacter( name: "Side", image: { source: "./media/characters/elbial/side.svg", - extra: 1630/1565, - bottom: 71.5/1697 + extra: 1630 / 1565, + bottom: 71.5 / 1697 } }, back: { @@ -1274,8 +1274,8 @@ characterMakers.push(() => makeCharacter( name: "Back", image: { source: "./media/characters/elbial/back.svg", - extra: 1668/1595, - bottom: 5.6/1672 + extra: 1668 / 1595, + bottom: 5.6 / 1672 } }, frontDressed: { @@ -1284,12 +1284,12 @@ characterMakers.push(() => makeCharacter( name: "Front (Dressed)", image: { source: "./media/characters/elbial/front-dressed.svg", - extra: 1653/1584, - bottom: 57/1708 + extra: 1653 / 1584, + bottom: 57 / 1708 } }, genitals: { - height: math.unit(2/3.367, "meter"), + height: math.unit(2 / 3.367, "meter"), name: "Genitals", image: { source: "./media/characters/elbial/genitals.svg" @@ -2775,7 +2775,7 @@ characterMakers.push(() => makeCharacter( image: { source: "./media/characters/tobias/side.svg", extra: 1474 / 1096, - bottom: 38.9/1513.1235 + bottom: 38.9 / 1513.1235 } }, }, @@ -9590,7 +9590,7 @@ characterMakers.push(() => makeCharacter( } }, elemental: { - height: math.unit(4 + 2/12, "feet"), + height: math.unit(4 + 2 / 12, "feet"), weight: math.unit(150, "lb"), name: "Elemental", image: { @@ -19003,8 +19003,8 @@ characterMakers.push(() => makeCharacter( name: "Side", image: { source: "./media/characters/fixerdragon/side.svg", - extra: (1293.0514-116.03)/1106.86, - bottom: 116.03/1293.0514 + extra: (1293.0514 - 116.03) / 1106.86, + bottom: 116.03 / 1293.0514 } }, }, @@ -19046,7 +19046,7 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/kite/front.svg", - extra: 2796/2659, + extra: 2796 / 2659, bottom: 0.002 } }, @@ -19072,30 +19072,30 @@ characterMakers.push(() => makeCharacter( { name: "Poojawa Vynar" }, { front: { - height: math.unit(5 + 10/12, "feet"), + height: math.unit(5 + 10 / 12, "feet"), weight: math.unit(150, "lb"), name: "Front", image: { source: "./media/characters/poojawa-vynar/front.svg", - extra: (1506.1547-55) / 1356.6, - bottom: 55/1506.1547 + extra: (1506.1547 - 55) / 1356.6, + bottom: 55 / 1506.1547 } }, frontTailless: { - height: math.unit(5 + 10/12, "feet"), + height: math.unit(5 + 10 / 12, "feet"), weight: math.unit(150, "lb"), name: "Front (Tailless)", image: { source: "./media/characters/poojawa-vynar/front-tailless.svg", - extra: (1506.1547-55) / 1356.6, - bottom: 55/1506.1547 + extra: (1506.1547 - 55) / 1356.6, + bottom: 55 / 1506.1547 } }, }, [ { name: "Normal", - height: math.unit(5 + 10/12, "feet"), + height: math.unit(5 + 10 / 12, "feet"), default: true }, ] @@ -19110,7 +19110,7 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/violette/front.svg", - extra: 1227/1180, + extra: 1227 / 1180, bottom: 0.005 } }, @@ -19120,7 +19120,7 @@ characterMakers.push(() => makeCharacter( name: "Back", image: { source: "./media/characters/violette/back.svg", - extra: 1227/1180, + extra: 1227 / 1180, bottom: 0.005 } }, @@ -19143,7 +19143,7 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/alessandra/front.svg", - extra: 960/912, + extra: 960 / 912, bottom: 0.06 } }, @@ -19170,8 +19170,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/person/front.svg", - extra: 3087/2945, - bottom: 91/3181 + extra: 3087 / 2945, + bottom: 91 / 3181 } }, }, @@ -19205,8 +19205,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/ty/front.svg", - extra: 1038/960, - bottom: 31.156/1068 + extra: 1038 / 960, + bottom: 31.156 / 1068 } }, back: { @@ -19215,8 +19215,8 @@ characterMakers.push(() => makeCharacter( name: "Back", image: { source: "./media/characters/ty/back.svg", - extra: 1044/966, - bottom: 7.48/1049 + extra: 1044 / 966, + bottom: 7.48 / 1049 } }, }, @@ -19233,20 +19233,20 @@ characterMakers.push(() => makeCharacter( { name: "Rocky" }, { front: { - height: math.unit(5 + 4/12, "feet"), + height: math.unit(5 + 4 / 12, "feet"), weight: math.unit(115, "lb"), name: "Front", image: { source: "./media/characters/rocky/front.svg", - extra: 1012/975, - bottom: 54/1066 + extra: 1012 / 975, + bottom: 54 / 1066 } }, }, [ { name: "Normal", - height: math.unit(5 + 4/12, "feet"), + height: math.unit(5 + 4 / 12, "feet"), default: true }, ] @@ -19261,8 +19261,8 @@ characterMakers.push(() => makeCharacter( name: "Upright", image: { source: "./media/characters/ruin/upright.svg", - extra: 668/661, - bottom: 42/799.8396 + extra: 668 / 661, + bottom: 42 / 799.8396 } }, }, @@ -19283,8 +19283,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/robin/front.svg", - extra: 862/799, - bottom: 42.4/914.8856 + extra: 862 / 799, + bottom: 42.4 / 914.8856 } }, }, @@ -19306,8 +19306,8 @@ characterMakers.push(() => makeCharacter( name: "Side", image: { source: "./media/characters/saian/side.svg", - extra: 566/356, - bottom: 79.7/643 + extra: 566 / 356, + bottom: 79.7 / 643 } }, maw: { @@ -19336,8 +19336,8 @@ characterMakers.push(() => makeCharacter( name: "Side", image: { source: "./media/characters/equus-silvermane/side.svg", - extra: 2176/2050, - bottom: 65.7/2245 + extra: 2176 / 2050, + bottom: 65.7 / 2245 } }, front: { @@ -19346,8 +19346,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/equus-silvermane/front.svg", - extra: 4633/4400, - bottom: 71.3/4706.915 + extra: 4633 / 4400, + bottom: 71.3 / 4706.915 } }, sideStepping: { @@ -19356,8 +19356,8 @@ characterMakers.push(() => makeCharacter( name: "Side (Stepping)", image: { source: "./media/characters/equus-silvermane/side-stepping.svg", - extra: 1968/1860, - bottom: 16.4/1989 + extra: 1968 / 1860, + bottom: 16.4 / 1989 } }, }, @@ -19395,8 +19395,8 @@ characterMakers.push(() => makeCharacter( name: "Side", image: { source: "./media/characters/windar/side.svg", - extra: 1491/1248, - bottom: 82.56/1568 + extra: 1491 / 1248, + bottom: 82.56 / 1568 } }, }, @@ -19418,8 +19418,8 @@ characterMakers.push(() => makeCharacter( name: "Side", image: { source: "./media/characters/melody/side.svg", - extra: 1097/944, - bottom: 11.8/1109 + extra: 1097 / 944, + bottom: 11.8 / 1109 } }, sideOutfit: { @@ -19428,8 +19428,8 @@ characterMakers.push(() => makeCharacter( name: "Side (Outfit)", image: { source: "./media/characters/melody/side-outfit.svg", - extra: 1097/944, - bottom: 11.8/1109 + extra: 1097 / 944, + bottom: 11.8 / 1109 } }, }, @@ -19451,8 +19451,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/windera/front.svg", - extra: 3180/2845, - bottom: 178/3365 + extra: 3180 / 2845, + bottom: 178 / 3365 } }, }, @@ -19474,8 +19474,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/sonear/front.svg", - extra: 1041.1/964.9, - bottom: 53.7/1096.6 + extra: 1041.1 / 964.9, + bottom: 53.7 / 1096.6 } }, }, @@ -19518,8 +19518,8 @@ characterMakers.push(() => makeCharacter( name: "Side", image: { source: "./media/characters/ereus/side.svg", - extra: 1157/959, - bottom: 153/1312.5 + extra: 1157 / 959, + bottom: 153 / 1312.5 } }, }, @@ -19541,8 +19541,8 @@ characterMakers.push(() => makeCharacter( name: "Side", image: { source: "./media/characters/e-ter/side.svg", - extra: 1550/1248, - bottom: 146/1694 + extra: 1550 / 1248, + bottom: 146 / 1694 } }, }, @@ -19585,8 +19585,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/anders/front.svg", - extra: 570/539, - bottom: 14.7/586.7 + extra: 570 / 539, + bottom: 14.7 / 586.7 } }, }, @@ -19611,17 +19611,17 @@ characterMakers.push(() => makeCharacter( { name: "Reban" }, { front: { - height: math.unit(7 + 2/12, "feet"), + height: math.unit(7 + 2 / 12, "feet"), weight: math.unit(300, "lb"), name: "Front", image: { source: "./media/characters/reban/front.svg", - extra: 516/487, - bottom: 42.82/558.356 + extra: 516 / 487, + bottom: 42.82 / 558.356 } }, dick: { - height: math.unit(7/5, "feet"), + height: math.unit(7 / 5, "feet"), name: "Dick", image: { source: "./media/characters/reban/dick.svg" @@ -19631,7 +19631,7 @@ characterMakers.push(() => makeCharacter( [ { name: "Natural Height", - height: math.unit(7 + 2/12, "feet") + height: math.unit(7 + 2 / 12, "feet") }, { name: "Macro", @@ -19655,7 +19655,7 @@ characterMakers.push(() => makeCharacter( image: { source: "./media/characters/terrance-keayes/front.svg", extra: 1.005, - bottom: 151/1615 + bottom: 151 / 1615 } }, side: { @@ -19665,7 +19665,7 @@ characterMakers.push(() => makeCharacter( image: { source: "./media/characters/terrance-keayes/side.svg", extra: 1.005, - bottom: 129.4/1544 + bottom: 129.4 / 1544 } }, back: { @@ -19675,11 +19675,11 @@ characterMakers.push(() => makeCharacter( image: { source: "./media/characters/terrance-keayes/back.svg", extra: 1.005, - bottom: 58.4/1557.3 + bottom: 58.4 / 1557.3 } }, dick: { - height: math.unit(6*0.208, "feet"), + height: math.unit(6 * 0.208, "feet"), name: "Dick", image: { source: "./media/characters/terrance-keayes/dick.svg" @@ -19704,8 +19704,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/ofelia/front.svg", - extra: 546/541, - bottom: 39/583 + extra: 546 / 541, + bottom: 39 / 583 } }, back: { @@ -19714,8 +19714,8 @@ characterMakers.push(() => makeCharacter( name: "Back", image: { source: "./media/characters/ofelia/back.svg", - extra: 564/559.5, - bottom: 8.69/573.02 + extra: 564 / 559.5, + bottom: 8.69 / 573.02 } }, maw: { @@ -19751,8 +19751,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/samuel/front.svg", - extra: 265/258, - bottom: 2/266.1566 + extra: 265 / 258, + bottom: 2 / 266.1566 } }, }, @@ -19778,12 +19778,12 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/beishir-kiel/front.svg", - extra: 569/547, - bottom: 41.9/609 + extra: 569 / 547, + bottom: 41.9 / 609 } }, maw: { - height: math.unit(6*0.202, "feet"), + height: math.unit(6 * 0.202, "feet"), name: "Maw", image: { source: "./media/characters/beishir-kiel/maw.svg" @@ -19803,33 +19803,33 @@ characterMakers.push(() => makeCharacter( { name: "Logan Grey" }, { front: { - height: math.unit(5 + 8/12, "feet"), + height: math.unit(5 + 8 / 12, "feet"), weight: math.unit(120, "lb"), name: "Front", image: { source: "./media/characters/logan-grey/front.svg", - extra: 2539/2393, - bottom: 97.6/2636.37 + extra: 2539 / 2393, + bottom: 97.6 / 2636.37 } }, frontAlt: { - height: math.unit(5 + 8/12, "feet"), + height: math.unit(5 + 8 / 12, "feet"), weight: math.unit(120, "lb"), name: "Front (Alt)", image: { source: "./media/characters/logan-grey/front-alt.svg", - extra: 958/893, - bottom: 15/970.768 + extra: 958 / 893, + bottom: 15 / 970.768 } }, back: { - height: math.unit(5 + 8/12, "feet"), + height: math.unit(5 + 8 / 12, "feet"), weight: math.unit(120, "lb"), name: "Back", image: { source: "./media/characters/logan-grey/back.svg", - extra: 958/893, - bottom: 2.1881/970.9788 + extra: 958 / 893, + bottom: 2.1881 / 970.9788 } }, dick: { @@ -19843,7 +19843,7 @@ characterMakers.push(() => makeCharacter( [ { name: "Normal", - height: math.unit(5 + 8/12, "feet") + height: math.unit(5 + 8 / 12, "feet") }, { name: "The 500 Foot Femboy", @@ -19861,20 +19861,20 @@ characterMakers.push(() => makeCharacter( { name: "Draganta" }, { front: { - height: math.unit(8 + 2/12, "feet"), + height: math.unit(8 + 2 / 12, "feet"), weight: math.unit(275, "lb"), name: "Front", image: { source: "./media/characters/draganta/front.svg", - extra: 1177/1135, - bottom: 33.46/1212.1 + extra: 1177 / 1135, + bottom: 33.46 / 1212.1 } }, }, [ { name: "Normal", - height: math.unit(8 + 6/12, "feet"), + height: math.unit(8 + 6 / 12, "feet"), default: true }, { @@ -19897,8 +19897,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/voski/front.svg", - extra: 2076.22/2022.4, - bottom: 102.7/2177.3866 + extra: 2076.22 / 2022.4, + bottom: 102.7 / 2177.3866 } }, back: { @@ -19907,8 +19907,8 @@ characterMakers.push(() => makeCharacter( name: "Back", image: { source: "./media/characters/voski/back.svg", - extra: 2104/2051, - bottom: 10.45/2113.63 + extra: 2104 / 2051, + bottom: 10.45 / 2113.63 } }, }, @@ -19954,8 +19954,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/icowom-lee/front.svg", - extra: 3076/2933, - bottom: 51.4/3125.1889 + extra: 3076 / 2933, + bottom: 51.4 / 3125.1889 } }, }, @@ -19982,8 +19982,8 @@ characterMakers.push(() => makeCharacter( name: "Front", image: { source: "./media/characters/shock-diamond/front.svg", - extra: 2204/2053, - bottom: 65/2239.47 + extra: 2204 / 2053, + bottom: 65 / 2239.47 } }, frontNude: { @@ -19992,8 +19992,8 @@ characterMakers.push(() => makeCharacter( name: "Front (Nude)", image: { source: "./media/characters/shock-diamond/front-nude.svg", - extra: 2514/2285, - bottom: 13/2527.56 + extra: 2514 / 2285, + bottom: 13 / 2527.56 } }, }, @@ -20014,43 +20014,43 @@ characterMakers.push(() => makeCharacter( { name: "Rory" }, { front: { - height: math.unit(5 + 4/12, "feet"), + height: math.unit(5 + 4 / 12, "feet"), weight: math.unit(120, "lb"), name: "Front", image: { source: "./media/characters/rory/front.svg", - extra: 589/556, - bottom: 45.7/635.76 + extra: 589 / 556, + bottom: 45.7 / 635.76 } }, frontNude: { - height: math.unit(5 + 4/12, "feet"), + height: math.unit(5 + 4 / 12, "feet"), weight: math.unit(120, "lb"), name: "Front (Nude)", image: { source: "./media/characters/rory/front-nude.svg", - extra: 589/556, - bottom: 45.7/635.76 + extra: 589 / 556, + bottom: 45.7 / 635.76 } }, side: { - height: math.unit(5 + 4/12, "feet"), + height: math.unit(5 + 4 / 12, "feet"), weight: math.unit(120, "lb"), name: "Side", image: { source: "./media/characters/rory/side.svg", - extra: 597/564, - bottom: 55/653 + extra: 597 / 564, + bottom: 55 / 653 } }, back: { - height: math.unit(5 + 4/12, "feet"), + height: math.unit(5 + 4 / 12, "feet"), weight: math.unit(120, "lb"), name: "Back", image: { source: "./media/characters/rory/back.svg", - extra: 620/585, - bottom: 8.86/630.43 + extra: 620 / 585, + bottom: 8.86 / 630.43 } }, dick: { @@ -20064,7 +20064,7 @@ characterMakers.push(() => makeCharacter( [ { name: "Normal", - height: math.unit(5 + 4/12, "feet"), + height: math.unit(5 + 4 / 12, "feet"), default: true }, { @@ -20086,33 +20086,33 @@ characterMakers.push(() => makeCharacter( { name: "Sprisk" }, { front: { - height: math.unit(5 + 9/12, "feet"), + height: math.unit(5 + 9 / 12, "feet"), weight: math.unit(190, "lb"), name: "Front", image: { source: "./media/characters/sprisk/front.svg", - extra: 1225/1180, - bottom: 42.7/1266.4 + extra: 1225 / 1180, + bottom: 42.7 / 1266.4 } }, frontNsfw: { - height: math.unit(5 + 9/12, "feet"), + height: math.unit(5 + 9 / 12, "feet"), weight: math.unit(190, "lb"), name: "Front (NSFW)", image: { source: "./media/characters/sprisk/front-nsfw.svg", - extra: 1225/1180, - bottom: 42.7/1266.4 + extra: 1225 / 1180, + bottom: 42.7 / 1266.4 } }, back: { - height: math.unit(5 + 9/12, "feet"), + height: math.unit(5 + 9 / 12, "feet"), weight: math.unit(190, "lb"), name: "Back", image: { source: "./media/characters/sprisk/back.svg", - extra: 1247/1200, - bottom: 5.6/1253.04 + extra: 1247 / 1200, + bottom: 5.6 / 1253.04 } }, }, @@ -20123,7 +20123,7 @@ characterMakers.push(() => makeCharacter( }, { name: "Normal", - height: math.unit(5 + 9/12, "feet"), + height: math.unit(5 + 9 / 12, "feet"), default: true }, { @@ -20154,11 +20154,11 @@ characterMakers.push(() => makeCharacter( name: "Side", image: { source: "./media/characters/bunsen/side.svg", - extra: 1644/358 + extra: 1644 / 358 } }, foot: { - height: math.unit(1.611*1644/358, "meter"), + height: math.unit(1.611 * 1644 / 358, "meter"), name: "Foot", image: { source: "./media/characters/bunsen/foot.svg" @@ -20182,20 +20182,20 @@ characterMakers.push(() => makeCharacter( { name: "Sesh" }, { front: { - height: math.unit(4 + 11/12, "feet"), + height: math.unit(4 + 11 / 12, "feet"), weight: math.unit(140, "lb"), name: "Front", image: { source: "./media/characters/sesh/front.svg", - extra: 3420/3231, - bottom: 72/3949.5 + extra: 3420 / 3231, + bottom: 72 / 3949.5 } }, }, [ { name: "Normal", - height: math.unit(4 + 11/12, "feet") + height: math.unit(4 + 11 / 12, "feet") }, { name: "Grown", @@ -20232,10 +20232,10 @@ characterMakers.push(() => makeCharacter( //characters function makeCharacters() { - const results = []; + const results = []; - characterMakers.forEach(character => { - results.push(character()); - }); - return results; - } + characterMakers.forEach(character => { + results.push(character()); + }); + return results; +} diff --git a/presets/fiction.js b/presets/fiction.js index c57deccb..8d915175 100644 --- a/presets/fiction.js +++ b/presets/fiction.js @@ -28,7 +28,7 @@ function makeFiction() { ) }); - + results.sort((b1, b2) => { e1 = b1.constructor(); e2 = b2.constructor(); diff --git a/presets/food.js b/presets/food.js index c03f9eca..3db9d134 100644 --- a/presets/food.js +++ b/presets/food.js @@ -7,13 +7,13 @@ function makeFood() { "Human", { woman1: { - height: math.unit(5 + 7/12, "feet"), + height: math.unit(5 + 7 / 12, "feet"), mass: math.unit(140, "lbs"), image: { source: "./media/food/humans/woman-1.svg" }, name: "Woman 1" }, man1: { - height: math.unit(5 + 11/12, "feet"), + height: math.unit(5 + 11 / 12, "feet"), mass: math.unit(150, "lbs"), image: { source: "./media/food/humans/man-1.svg" }, name: "Man 1" @@ -82,10 +82,10 @@ function makeFood() { ["horse", 2.08, "meters", 550, "kg"], ["african-elephant", 3.2, "meters", 4000, "kg"] ], - "Animals", - "", - "food" - )); + "Animals", + "", + "food" + )); results.push( makeHeightWeight([ @@ -95,10 +95,10 @@ function makeFood() { ["tyrannosaurus", 5.2, "meters", 14e3, "kg"], ["velociraptor", 1.6, "meters", 15, "kg"] ], - "Dinosaurs", - "", - "food" - )); + "Dinosaurs", + "", + "food" + )); results.push(makeHeight( [ @@ -155,8 +155,8 @@ function makeFood() { results.push(makeHeightWeight( [ - ["m&m", 0.5262, "inches", 43/50, "g", "./media/objects/circle.svg"], - ["skittle", 0.50, "inches", 53/50, "g", "./media/objects/circle.svg"], + ["m&m", 0.5262, "inches", 43 / 50, "g", "./media/objects/circle.svg"], + ["skittle", 0.50, "inches", 53 / 50, "g", "./media/objects/circle.svg"], ["gummy-bear", 2, "inches", 3.5, "g"], ["lifesaver", 0.925, "inches", 3.5, "g"], ], @@ -170,7 +170,7 @@ function makeFood() { e2 = b2.constructor(); return -math.subtract(e1.views[e1.defaultView].height, e2.views[e2.defaultView].height).value; }); - + return results; } diff --git a/presets/landmarks.js b/presets/landmarks.js index 0b5345d6..57616452 100644 --- a/presets/landmarks.js +++ b/presets/landmarks.js @@ -96,7 +96,7 @@ function makeLandmarks() { name: "Washington Monument", constructor: () => makeLandmark( "Washington Monument", - math.unit(555 + 5/12, "feet"), + math.unit(555 + 5 / 12, "feet"), { source: "./media/landmarks/washington-monument.svg" } ) }); @@ -124,7 +124,7 @@ function makeLandmarks() { constructor: () => makeLandmark( "Leaning Tower of Pisa", math.unit(185.93, "feet"), - { source: "./media/landmarks/leaning-tower-of-pisa.svg", bottom: 84/3755 } + { source: "./media/landmarks/leaning-tower-of-pisa.svg", bottom: 84 / 3755 } ) }); diff --git a/presets/naturals.js b/presets/naturals.js index c24c1199..ed6c6400 100644 --- a/presets/naturals.js +++ b/presets/naturals.js @@ -1,885 +1,885 @@ -const countryData = [["Zimbabwe",389139344886.9551,750673.8733651662], -["Zambia",747284247537.2109,1086883.0186403147], -["Yemen",451258576476.0622,732380.0886973133], -["Vietnam",322580142233.8691,1620340.0069434382], -["Venezuela",903362423260.6332,1268421.1333824312], -["Vatican",708035.2009967731,962.0919227031534], -["Vanuatu",11272612217.230469,724821.180486814], -["Uzbekistan",443189293470.79034,925450.9622003306], -["Uruguay",177556026488.23483,537144.1098412299], -["Micronesia",485384430.1673484,497698.88020277687], -["Marshall Is.",237267604.69041273,596010.1204389479], -["N. Mariana Is.",393374965.5941958,521292.78521092737], -["U.S. Virgin Is.",316452461.7983862,76083.04112096527], -["Guam",483286229.8419917,40613.86482889021], -["American Samoa",120670011.38210917,11393.258948078432], -["Puerto Rico",8962997659.680859,64074.185139127105], -["United States of America",7395600901146.306,4416577.67125368], -["S. Geo. and the Is.",3672610161.3615127,541130.1405687116], -["Br. Indian Ocean Ter.",132703649.71481176,23927.13214168381], -["Saint Helena",176325296.97059375,858614.8478942969], -["Pitcairn Is.",38762723.72906426,9947.043438498837], -["Anguilla",83463147.70539355,10944.95591457092], -["Falkland Is.",11407563931.810585,115733.80786623771], -["Cayman Is.",301854204.8866253,55649.92891612647], -["Bermuda",66129884.79864475,14170.070838986676], -["British Virgin Is.",135659839.00635678,39337.39147364931], -["Turks and Caicos Is.",330946239.46105736,22295.623846674607], -["Montserrat",79959829.21916744,14289.738497356197], -["Jersey",126615043.3254982,10747.64788802222], -["Guernsey",48162890.29292152,8669.790417446953], -["Isle of Man",558555897.1337135,38796.33187357233], -["United Kingdom",238676325934.20435,1189944.9208031525], -["United Arab Emirates",71327840366.80205,384133.37813312514], -["Ukraine",566035099860.9688,788296.8051475236], -["Uganda",242282384312.5569,631576.9601751247], -["Turkmenistan",467750968131.5653,839363.1829681154], -["Turkey",769691262374.0961,722569.6732223395], -["Tunisia",156527421728.6396,789088.1320598596], -["Trinidad and Tobago",5113137631.486823,140397.5005812163], -["Tonga",431566020.3443055,320138.22561586066], -["Togo",57164823768.625984,558731.6162212695], -["Timor-Leste",15046954462.017887,152793.66089818784], -["Thailand",510098217767.71954,1619380.770898294], -["Tanzania",935952438752.1539,1184178.6995700544], -["Tajikistan",142199499148.0953,483654.0574189293], -["Taiwan",36053557208.26353,372963.9766519672], -["Syria",185640544641.68024,557652.0954689037], -["Switzerland",41274119762.43174,216315.97720416306], -["Sweden",438024606986.8549,1504429.298743872], -["eSwatini",17026560042.71935,174431.7420524613], -["Suriname",145631226029.04276,461624.95471358934], -["S. Sudan",619555696187.3568,967389.4690412045], -["Sudan",1823113741930.2935,1476475.5597421676], -["Sri Lanka",66124083045.496185,429682.22706557147], -["Spain",502306447910.3953,1635350.4179064203], -["South Korea",97223628369.57718,601119.1956874104], -["South Africa",1201313004316.9548,2610977.935124006], -["Somalia",466566432575.35144,1499709.9382876973], -["Somaliland",168351995213.79407,390642.89676351653], -["Solomon Is.",25650473129.46542,578770.3949851494], -["Slovakia",48398536087.06279,203261.203718588], -["Slovenia",20232561580.98236,160068.21134683487], -["Singapore",486021211.437919,20225.536237134802], -["Sierra Leone",71972760575.6476,343787.02394271526], -["Seychelles",174784533.9529513,25242.78960756224], -["Serbia",77565621952.11682,437004.38001379266], -["Senegal",197200724879.79358,482495.828194891], -["Saudi Arabia",1876920659569.8032,1731541.0179994444], -["São Tomé and Principe",987713799.1340775,183769.6354790035], -["San Marino",68412302.4541662,10648.615483748506], -["Samoa",2707197663.6432486,64906.43346873014], -["St. Vin. and Gren.",311777981.9328877,73908.48702186492], -["Saint Lucia",552532214.4432642,41832.1780762757], -["St. Kitts and Nevis",233457364.84892097,33611.3165210983], -["Rwanda",25432979416.460854,194263.81591629382], -["Russia",12260202932316.434,3560470.967805952], -["Romania",235572110822.79977,511775.734059509], -["Qatar",11096933045.51641,176815.8874033715], -["Portugal",90307109615.50954,998968.539638029], -["Poland",312014177111.07056,640535.7412870524], -["Philippines",281057743959.40845,1718076.5819676248], -["Peru",1267155955843.7405,1995728.9021881635], -["Paraguay",398866915158.8791,917283.5274261177], -["Papua New Guinea",458779192212.65924,1130765.9358040402], -["Panama",74205999390.06693,264696.7787718505], -["Palau",340878459.50629926,517052.0287502567], -["Pakistan",859524386785.3461,1469710.3651343188], -["Oman",310787792152.7695,1070214.542524525], -["Norway",367133579651.0089,2385216.7060012324], -["North Korea",122468780802.42119,588059.4963699913], -["Nigeria",902360824740.1309,1061421.9606103392], -["Niger",1166100114277.5962,1292547.0104424185], -["Nicaragua",129303176135.86368,475217.15790626826], -["New Zealand",261814748299.48175,3689126.851095178], -["Niue",197426811.4028381,19132.955440874972], -["Cook Is.",60789397.586407654,7022.5841140376415], -["Netherlands",36945283257.48706,320420.62752667535], -["Aruba",155610147.7334076,21273.574070595867], -["Curaçao",430636502.7957001,37272.29377335269], -["Nepal",146897265742.68607,444685.714905498], -["Nauru",27857326.929205168,6837.885050868505], -["Namibia",815249049721.9235,1313620.097072748], -["Mozambique",776726637654.2103,1783994.2739365236], -["Morocco",569461707436.853,1568964.057126951], -["W. Sahara",90445408946.43513,753950.5689598573], -["Montenegro",13694356087.203959,186259.07726854514], -["Mongolia",1523220033380.0608,1167861.7008469645], -["Moldova",33169044187.407303,337142.42228660494], -["Monaco",12441227.214953318,4358.924994750582], -["Mexico",1869251872115.2632,1952717.1931632007], -["Mauritius",1883408037.236669,58244.37292394249], -["Mauritania",1025913853088.3635,1381248.2365973846], -["Malta",274389289.46838915,28460.46151930112], -["Mali",1232601050983.55,1627107.3969575989], -["Maldives",66533401.41569023,113326.64317645758], -["Malaysia",308992459615.961,718187.2787975309], -["Malawi",119609014979.11723,857620.1974737616], -["Madagascar",588900729223.3076,1482448.58655397], -["Macedonia",25412477905.618904,167763.72453596117], -["Luxembourg",2617671383.8561177,80342.33188741696], -["Lithuania",64607579583.07534,281048.67513132055], -["Liechtenstein",138276163.29779017,23752.2207550655], -["Libya",1593059310499.89,1497618.019207641], -["Liberia",95716150483.6803,465053.78239422245], -["Lesotho",30082796345.318073,229266.99044660022], -["Lebanon",10032218276.214746,178392.40295671904], -["Latvia",64322936300.70786,265314.902976771], -["Laos",227818875873.76996,948849.152950645], -["Kyrgyzstan",198302186040.08304,445731.6344993663], -["Kuwait",17363674046.35398,174092.9296542175], -["Kosovo",10934378053.958687,156624.8853211386], -["Kiribati",749876516.2319429,1640873.5549117292], -["Kenya",591341928787.2559,1125704.8672718687], -["Kazakhstan",2599180457875.023,1623701.7704947665], -["Jordan",88907886654.7211,466293.2802000827], -["Japan",362212921360.73126,2165372.9852266936], -["Jamaica",10954550076.122593,89945.55843724968], -["Italy",297660112212.5112,1141814.8482783942], -["Israel",22312088308.202045,440068.5190686877], -["Palestine",6346588255.6763935,147154.65650790438], -["Ireland",68780229828.73004,431856.09038575046], -["Iraq",435620846425.7123,917708.4745529837], -["Iran",1587189329130.203,1609326.8856119388], -["Indonesia",1376120815624.1582,1744126.536779939], -["India",2996785519779.1226,2913361.292821804], -["Iceland",101230587354.09766,349260.02852581645], -["Hungary",93030668685.61838,312850.1016063739], -["Honduras",113540433651.57697,393145.8344003861], -["Haiti",26847869783.21849,228390.3778166956], -["Guyana",211580943542.51562,815280.8732392456], -["Guinea-Bissau",32110045925.27114,193638.58665067697], -["Guinea",244390003515.538,606536.8383934512], -["Guatemala",108545037717.66335,453811.808616631], -["Grenada",286659850.5792823,25441.67357828665], -["Greece",129895379857.02574,758011.3923877806], -["Ghana",239260752213.2803,711081.7448205692], -["Germany",355238332286.4327,864383.9331295767], -["Georgia",69359250287.62083,279164.4830880575], -["Gambia",10330073933.169783,82849.92829168624], -["Gabon",260344608670.4254,690549.2981542662], -["France",542817083203.5144,1048476.4725933974], -["St. Pierre and Miquelon",205698521.0710492,38521.03284769018], -["Wallis and Futuna Is.",131747281.48261458,121776.95699873005], -["St-Martin",49111962.95304994,5163.071682498663], -["St-Barthélemy",24579682.143066566,5240.150468570514], -["Fr. Polynesia",2468010584.9118123,1312958.5639801438], -["New Caledonia",18686602242.002316,384267.482542537], -["Fr. S. Antarctic Lands",6972080045.671423,212730.6071924777], -["Åland",761484218.2741673,43735.30591570062], -["Finland",328803220559.3977,1129138.3189881397], -["Fiji",18421467533.17885,1023558.9822519792], -["Ethiopia",1117394387297.408,1258373.6645802632], -["Estonia",45523111130.11329,234417.94183103752], -["Eritrea",123523023760.42888,620786.9941184958], -["Eq. Guinea",26682583611.083134,311126.02900633094], -["El Salvador",20428674917.927784,140987.38922767458], -["Egypt",992610233498.9838,1075384.9272076394], -["Ecuador",254390202866.9375,715644.6113114202], -["Dominican Rep.",48656193669.522415,253316.76342836596], -["Dominica",699392379.7985094,45176.55587233428], -["Djibouti",21745285809.27461,196704.14706825247], -["Greenland",2077887017677.4016,2549914.0725153135], -["Faeroe Is.",1037375875.3441107,104805.39300545029], -["Denmark",42463519493.804115,344332.082885141], -["Czechia",78562446344.69705,273918.8118478958], -["N. Cyprus",3477858554.32716,74094.73032340445], -["Cyprus",5720072668.184293,68303.11611356054], -["Cuba",108838187496.02383,373416.4420118391], -["Croatia",54464922570.24997,453624.1186228944], -["Côte d'Ivoire",321698831252.9052,706903.5592170395], -["Costa Rica",51575396471.50047,346860.4426889592], -["Dem. Rep. Congo",2266976093724.1265,2035904.2956146006], -["Congo",345009155130.8312,961723.9757879174], -["Comoros",1588682598.6376357,111334.98741429756], -["Colombia",1123596248307.3215,1822038.428059104], -["China",8060425748741.967,3689010.6633797465], -["Macao",22790451.33582536,5609.2494132003585], -["Hong Kong",1031202202.4066887,41167.39922811497], -["Chile",662506100339.9237,3913004.5904785832], -["Chad",1250306336304.5803,1747717.1001141844], -["Central African Rep.",615443921593.4967,963245.901521966], -["Cabo Verde",3585645473.0986457,264469.72585925215], -["Canada",8252315173326.137,3925175.4429551493], -["Cameroon",463047177129.98676,1254568.7304865085], -["Cambodia",181325584795.91324,478513.2128836198], -["Myanmar",654908635592.5571,2024676.7575958604], -["Burundi",27257646471.915493,238454.34370384598], -["Burkina Faso",273060011767.93573,628020.0386516866], -["Bulgaria",112483755019.30702,336003.0361266016], -["Brunei",5683983704.47261,111143.6940463348], -["Brazil",7542040031981.433,3915588.1752071916], -["Botswana",577537077673.9358,1005033.7114702462], -["Bosnia and Herz.",51762900143.40118,302391.7470669987], -["Bolivia",1076652528362.6862,1452616.8315824775], -["Bhutan",39941207799.865746,179051.81149080832], -["Benin",116541637410.61739,684764.1659558142], -["Belize",22820786611.704403,288554.77214008226], -["Belgium",30685782396.868896,220012.43908339023], -["Belarus",206593675978.1894,539327.6016509426], -["Barbados",390177698.8208726,28438.43733392629], -["Bangladesh",135631880598.23056,641362.7611422196], -["Bahrain",542666078.421561,48940.616137428195], -["Bahamas",12572006886.202946,657347.8029052814], -["Azerbaijan",86480375203.77911,388647.32676976256], -["Austria",83960555499.05753,289718.05858780514], -["Australia",6916075626359.462,4253387.647790333], -["Indian Ocean Ter.",143103838.04993325,207167.46611093302], -["Heard I. and McDonald Is.",419494189.5592296,24277.108307189614], -["Norfolk Island",41234971.619761944,9164.00266587067], -["Ashmore and Cartier Is.",2724124.8113709954,1337.1383696935786], -["Armenia",29606246853.694744,268723.39105833217], -["Argentina",2628180984838.9795,3439095.945263166], -["Antigua and Barb.",433754090.8784384,79797.82491219617], -["Angola",1231065800103.1306,1487384.312862242], -["Andorra",442811110.96016896,23181.443248610587], -["Algeria",2258264650157.1177,1980213.5544527844], -["Albania",28382259570.98209,333197.42270929285], -["Afghanistan",637227926969.2654,1010493.9286560246], -["Siachen Glacier",2122758731.8166118,61495.05302246724], -["Antarctica",9873880556033.318,3705614.001089979], -["Sint Maarten",41933349.229216255,5539.704322566973]]; +const countryData = [["Zimbabwe", 389139344886.9551, 750673.8733651662], +["Zambia", 747284247537.2109, 1086883.0186403147], +["Yemen", 451258576476.0622, 732380.0886973133], +["Vietnam", 322580142233.8691, 1620340.0069434382], +["Venezuela", 903362423260.6332, 1268421.1333824312], +["Vatican", 708035.2009967731, 962.0919227031534], +["Vanuatu", 11272612217.230469, 724821.180486814], +["Uzbekistan", 443189293470.79034, 925450.9622003306], +["Uruguay", 177556026488.23483, 537144.1098412299], +["Micronesia", 485384430.1673484, 497698.88020277687], +["Marshall Is.", 237267604.69041273, 596010.1204389479], +["N. Mariana Is.", 393374965.5941958, 521292.78521092737], +["U.S. Virgin Is.", 316452461.7983862, 76083.04112096527], +["Guam", 483286229.8419917, 40613.86482889021], +["American Samoa", 120670011.38210917, 11393.258948078432], +["Puerto Rico", 8962997659.680859, 64074.185139127105], +["United States of America", 7395600901146.306, 4416577.67125368], +["S. Geo. and the Is.", 3672610161.3615127, 541130.1405687116], +["Br. Indian Ocean Ter.", 132703649.71481176, 23927.13214168381], +["Saint Helena", 176325296.97059375, 858614.8478942969], +["Pitcairn Is.", 38762723.72906426, 9947.043438498837], +["Anguilla", 83463147.70539355, 10944.95591457092], +["Falkland Is.", 11407563931.810585, 115733.80786623771], +["Cayman Is.", 301854204.8866253, 55649.92891612647], +["Bermuda", 66129884.79864475, 14170.070838986676], +["British Virgin Is.", 135659839.00635678, 39337.39147364931], +["Turks and Caicos Is.", 330946239.46105736, 22295.623846674607], +["Montserrat", 79959829.21916744, 14289.738497356197], +["Jersey", 126615043.3254982, 10747.64788802222], +["Guernsey", 48162890.29292152, 8669.790417446953], +["Isle of Man", 558555897.1337135, 38796.33187357233], +["United Kingdom", 238676325934.20435, 1189944.9208031525], +["United Arab Emirates", 71327840366.80205, 384133.37813312514], +["Ukraine", 566035099860.9688, 788296.8051475236], +["Uganda", 242282384312.5569, 631576.9601751247], +["Turkmenistan", 467750968131.5653, 839363.1829681154], +["Turkey", 769691262374.0961, 722569.6732223395], +["Tunisia", 156527421728.6396, 789088.1320598596], +["Trinidad and Tobago", 5113137631.486823, 140397.5005812163], +["Tonga", 431566020.3443055, 320138.22561586066], +["Togo", 57164823768.625984, 558731.6162212695], +["Timor-Leste", 15046954462.017887, 152793.66089818784], +["Thailand", 510098217767.71954, 1619380.770898294], +["Tanzania", 935952438752.1539, 1184178.6995700544], +["Tajikistan", 142199499148.0953, 483654.0574189293], +["Taiwan", 36053557208.26353, 372963.9766519672], +["Syria", 185640544641.68024, 557652.0954689037], +["Switzerland", 41274119762.43174, 216315.97720416306], +["Sweden", 438024606986.8549, 1504429.298743872], +["eSwatini", 17026560042.71935, 174431.7420524613], +["Suriname", 145631226029.04276, 461624.95471358934], +["S. Sudan", 619555696187.3568, 967389.4690412045], +["Sudan", 1823113741930.2935, 1476475.5597421676], +["Sri Lanka", 66124083045.496185, 429682.22706557147], +["Spain", 502306447910.3953, 1635350.4179064203], +["South Korea", 97223628369.57718, 601119.1956874104], +["South Africa", 1201313004316.9548, 2610977.935124006], +["Somalia", 466566432575.35144, 1499709.9382876973], +["Somaliland", 168351995213.79407, 390642.89676351653], +["Solomon Is.", 25650473129.46542, 578770.3949851494], +["Slovakia", 48398536087.06279, 203261.203718588], +["Slovenia", 20232561580.98236, 160068.21134683487], +["Singapore", 486021211.437919, 20225.536237134802], +["Sierra Leone", 71972760575.6476, 343787.02394271526], +["Seychelles", 174784533.9529513, 25242.78960756224], +["Serbia", 77565621952.11682, 437004.38001379266], +["Senegal", 197200724879.79358, 482495.828194891], +["Saudi Arabia", 1876920659569.8032, 1731541.0179994444], +["São Tomé and Principe", 987713799.1340775, 183769.6354790035], +["San Marino", 68412302.4541662, 10648.615483748506], +["Samoa", 2707197663.6432486, 64906.43346873014], +["St. Vin. and Gren.", 311777981.9328877, 73908.48702186492], +["Saint Lucia", 552532214.4432642, 41832.1780762757], +["St. Kitts and Nevis", 233457364.84892097, 33611.3165210983], +["Rwanda", 25432979416.460854, 194263.81591629382], +["Russia", 12260202932316.434, 3560470.967805952], +["Romania", 235572110822.79977, 511775.734059509], +["Qatar", 11096933045.51641, 176815.8874033715], +["Portugal", 90307109615.50954, 998968.539638029], +["Poland", 312014177111.07056, 640535.7412870524], +["Philippines", 281057743959.40845, 1718076.5819676248], +["Peru", 1267155955843.7405, 1995728.9021881635], +["Paraguay", 398866915158.8791, 917283.5274261177], +["Papua New Guinea", 458779192212.65924, 1130765.9358040402], +["Panama", 74205999390.06693, 264696.7787718505], +["Palau", 340878459.50629926, 517052.0287502567], +["Pakistan", 859524386785.3461, 1469710.3651343188], +["Oman", 310787792152.7695, 1070214.542524525], +["Norway", 367133579651.0089, 2385216.7060012324], +["North Korea", 122468780802.42119, 588059.4963699913], +["Nigeria", 902360824740.1309, 1061421.9606103392], +["Niger", 1166100114277.5962, 1292547.0104424185], +["Nicaragua", 129303176135.86368, 475217.15790626826], +["New Zealand", 261814748299.48175, 3689126.851095178], +["Niue", 197426811.4028381, 19132.955440874972], +["Cook Is.", 60789397.586407654, 7022.5841140376415], +["Netherlands", 36945283257.48706, 320420.62752667535], +["Aruba", 155610147.7334076, 21273.574070595867], +["Curaçao", 430636502.7957001, 37272.29377335269], +["Nepal", 146897265742.68607, 444685.714905498], +["Nauru", 27857326.929205168, 6837.885050868505], +["Namibia", 815249049721.9235, 1313620.097072748], +["Mozambique", 776726637654.2103, 1783994.2739365236], +["Morocco", 569461707436.853, 1568964.057126951], +["W. Sahara", 90445408946.43513, 753950.5689598573], +["Montenegro", 13694356087.203959, 186259.07726854514], +["Mongolia", 1523220033380.0608, 1167861.7008469645], +["Moldova", 33169044187.407303, 337142.42228660494], +["Monaco", 12441227.214953318, 4358.924994750582], +["Mexico", 1869251872115.2632, 1952717.1931632007], +["Mauritius", 1883408037.236669, 58244.37292394249], +["Mauritania", 1025913853088.3635, 1381248.2365973846], +["Malta", 274389289.46838915, 28460.46151930112], +["Mali", 1232601050983.55, 1627107.3969575989], +["Maldives", 66533401.41569023, 113326.64317645758], +["Malaysia", 308992459615.961, 718187.2787975309], +["Malawi", 119609014979.11723, 857620.1974737616], +["Madagascar", 588900729223.3076, 1482448.58655397], +["Macedonia", 25412477905.618904, 167763.72453596117], +["Luxembourg", 2617671383.8561177, 80342.33188741696], +["Lithuania", 64607579583.07534, 281048.67513132055], +["Liechtenstein", 138276163.29779017, 23752.2207550655], +["Libya", 1593059310499.89, 1497618.019207641], +["Liberia", 95716150483.6803, 465053.78239422245], +["Lesotho", 30082796345.318073, 229266.99044660022], +["Lebanon", 10032218276.214746, 178392.40295671904], +["Latvia", 64322936300.70786, 265314.902976771], +["Laos", 227818875873.76996, 948849.152950645], +["Kyrgyzstan", 198302186040.08304, 445731.6344993663], +["Kuwait", 17363674046.35398, 174092.9296542175], +["Kosovo", 10934378053.958687, 156624.8853211386], +["Kiribati", 749876516.2319429, 1640873.5549117292], +["Kenya", 591341928787.2559, 1125704.8672718687], +["Kazakhstan", 2599180457875.023, 1623701.7704947665], +["Jordan", 88907886654.7211, 466293.2802000827], +["Japan", 362212921360.73126, 2165372.9852266936], +["Jamaica", 10954550076.122593, 89945.55843724968], +["Italy", 297660112212.5112, 1141814.8482783942], +["Israel", 22312088308.202045, 440068.5190686877], +["Palestine", 6346588255.6763935, 147154.65650790438], +["Ireland", 68780229828.73004, 431856.09038575046], +["Iraq", 435620846425.7123, 917708.4745529837], +["Iran", 1587189329130.203, 1609326.8856119388], +["Indonesia", 1376120815624.1582, 1744126.536779939], +["India", 2996785519779.1226, 2913361.292821804], +["Iceland", 101230587354.09766, 349260.02852581645], +["Hungary", 93030668685.61838, 312850.1016063739], +["Honduras", 113540433651.57697, 393145.8344003861], +["Haiti", 26847869783.21849, 228390.3778166956], +["Guyana", 211580943542.51562, 815280.8732392456], +["Guinea-Bissau", 32110045925.27114, 193638.58665067697], +["Guinea", 244390003515.538, 606536.8383934512], +["Guatemala", 108545037717.66335, 453811.808616631], +["Grenada", 286659850.5792823, 25441.67357828665], +["Greece", 129895379857.02574, 758011.3923877806], +["Ghana", 239260752213.2803, 711081.7448205692], +["Germany", 355238332286.4327, 864383.9331295767], +["Georgia", 69359250287.62083, 279164.4830880575], +["Gambia", 10330073933.169783, 82849.92829168624], +["Gabon", 260344608670.4254, 690549.2981542662], +["France", 542817083203.5144, 1048476.4725933974], +["St. Pierre and Miquelon", 205698521.0710492, 38521.03284769018], +["Wallis and Futuna Is.", 131747281.48261458, 121776.95699873005], +["St-Martin", 49111962.95304994, 5163.071682498663], +["St-Barthélemy", 24579682.143066566, 5240.150468570514], +["Fr. Polynesia", 2468010584.9118123, 1312958.5639801438], +["New Caledonia", 18686602242.002316, 384267.482542537], +["Fr. S. Antarctic Lands", 6972080045.671423, 212730.6071924777], +["Åland", 761484218.2741673, 43735.30591570062], +["Finland", 328803220559.3977, 1129138.3189881397], +["Fiji", 18421467533.17885, 1023558.9822519792], +["Ethiopia", 1117394387297.408, 1258373.6645802632], +["Estonia", 45523111130.11329, 234417.94183103752], +["Eritrea", 123523023760.42888, 620786.9941184958], +["Eq. Guinea", 26682583611.083134, 311126.02900633094], +["El Salvador", 20428674917.927784, 140987.38922767458], +["Egypt", 992610233498.9838, 1075384.9272076394], +["Ecuador", 254390202866.9375, 715644.6113114202], +["Dominican Rep.", 48656193669.522415, 253316.76342836596], +["Dominica", 699392379.7985094, 45176.55587233428], +["Djibouti", 21745285809.27461, 196704.14706825247], +["Greenland", 2077887017677.4016, 2549914.0725153135], +["Faeroe Is.", 1037375875.3441107, 104805.39300545029], +["Denmark", 42463519493.804115, 344332.082885141], +["Czechia", 78562446344.69705, 273918.8118478958], +["N. Cyprus", 3477858554.32716, 74094.73032340445], +["Cyprus", 5720072668.184293, 68303.11611356054], +["Cuba", 108838187496.02383, 373416.4420118391], +["Croatia", 54464922570.24997, 453624.1186228944], +["Côte d'Ivoire", 321698831252.9052, 706903.5592170395], +["Costa Rica", 51575396471.50047, 346860.4426889592], +["Dem. Rep. Congo", 2266976093724.1265, 2035904.2956146006], +["Congo", 345009155130.8312, 961723.9757879174], +["Comoros", 1588682598.6376357, 111334.98741429756], +["Colombia", 1123596248307.3215, 1822038.428059104], +["China", 8060425748741.967, 3689010.6633797465], +["Macao", 22790451.33582536, 5609.2494132003585], +["Hong Kong", 1031202202.4066887, 41167.39922811497], +["Chile", 662506100339.9237, 3913004.5904785832], +["Chad", 1250306336304.5803, 1747717.1001141844], +["Central African Rep.", 615443921593.4967, 963245.901521966], +["Cabo Verde", 3585645473.0986457, 264469.72585925215], +["Canada", 8252315173326.137, 3925175.4429551493], +["Cameroon", 463047177129.98676, 1254568.7304865085], +["Cambodia", 181325584795.91324, 478513.2128836198], +["Myanmar", 654908635592.5571, 2024676.7575958604], +["Burundi", 27257646471.915493, 238454.34370384598], +["Burkina Faso", 273060011767.93573, 628020.0386516866], +["Bulgaria", 112483755019.30702, 336003.0361266016], +["Brunei", 5683983704.47261, 111143.6940463348], +["Brazil", 7542040031981.433, 3915588.1752071916], +["Botswana", 577537077673.9358, 1005033.7114702462], +["Bosnia and Herz.", 51762900143.40118, 302391.7470669987], +["Bolivia", 1076652528362.6862, 1452616.8315824775], +["Bhutan", 39941207799.865746, 179051.81149080832], +["Benin", 116541637410.61739, 684764.1659558142], +["Belize", 22820786611.704403, 288554.77214008226], +["Belgium", 30685782396.868896, 220012.43908339023], +["Belarus", 206593675978.1894, 539327.6016509426], +["Barbados", 390177698.8208726, 28438.43733392629], +["Bangladesh", 135631880598.23056, 641362.7611422196], +["Bahrain", 542666078.421561, 48940.616137428195], +["Bahamas", 12572006886.202946, 657347.8029052814], +["Azerbaijan", 86480375203.77911, 388647.32676976256], +["Austria", 83960555499.05753, 289718.05858780514], +["Australia", 6916075626359.462, 4253387.647790333], +["Indian Ocean Ter.", 143103838.04993325, 207167.46611093302], +["Heard I. and McDonald Is.", 419494189.5592296, 24277.108307189614], +["Norfolk Island", 41234971.619761944, 9164.00266587067], +["Ashmore and Cartier Is.", 2724124.8113709954, 1337.1383696935786], +["Armenia", 29606246853.694744, 268723.39105833217], +["Argentina", 2628180984838.9795, 3439095.945263166], +["Antigua and Barb.", 433754090.8784384, 79797.82491219617], +["Angola", 1231065800103.1306, 1487384.312862242], +["Andorra", 442811110.96016896, 23181.443248610587], +["Algeria", 2258264650157.1177, 1980213.5544527844], +["Albania", 28382259570.98209, 333197.42270929285], +["Afghanistan", 637227926969.2654, 1010493.9286560246], +["Siachen Glacier", 2122758731.8166118, 61495.05302246724], +["Antarctica", 9873880556033.318, 3705614.001089979], +["Sint Maarten", 41933349.229216255, 5539.704322566973]]; -const stateData = [["Alaska",1452514225725.9436,1868373.8543388732], -["Alabama",134183493809.92227,532965.3777696239], -["Arkansas",137594312821.44278,390088.00657864026], -["Arizona",294757028937.5847,633186.8250454122], -["California",406293983906.08356,1052709.4946563328], -["Colorado",269648516308.92535,450204.53976080974], -["Connecticut",12660002907.845184,118267.25668779382], -["District of Columbia",143239048.97410837,22849.35891797693], -["Delaware",5301476457.13695,154538.7770483073], -["Florida",147061503225.29276,725785.7361081617], -["Georgia",152545609645.3165,515643.4608175565], -["Hawaii",16276457956.22964,1072045.4061879863], -["Iowa",144371045331.47766,349101.761916603], -["Idaho",215165271391.04874,777597.4487340406], -["Illinois",149962816232.10614,614341.3685248627], -["Indiana",94418933046.32669,441183.50429391616], -["Kansas",211603378234.17575,339716.0845083418], -["Kentucky",104059819167.07492,288923.8165505772], -["Louisiana",119735851466.82343,446546.83642277156], -["Massachusetts",21240814302.251324,180458.12859798397], -["Maryland",25142576638.752808,199510.82555067376], -["Maine",83320514510.73213,487259.3522773301], -["Michigan",248831526119.40704,735361.3389467007], -["Minnesota",223905746565.9167,652250.567964836], -["Missouri",181327659750.11615,514688.64139698073], -["Mississippi",123907979131.48102,535154.9372703212], -["Montana",378043596367.47034,523842.3904506136], -["North Carolina",128508233574.94186,306028.3207092302], -["North Dakota",181516551961.1925,345149.0784229827], -["Nebraska",199879423825.03116,341927.3618479088], -["New Hampshire",24194580764.403435,288427.55344232], -["New Jersey",19628854900.92644,268835.7774083556], -["New Mexico",314637500694.8689,631664.9951280521], -["Nevada",286249761376.3085,779935.1168063006], -["New York",136767165418.95305,500159.906709641], -["Ohio",116221291680.81133,436881.72983926453], -["Oklahoma",180427267305.4764,381292.86025305686], -["Oregon",250918651052.89493,474937.6214419664], -["Pennsylvania",119213832983.51472,315004.6904564087], -["Rhode Island",2607765149.7594714,76364.10164281644], -["South Carolina",80044862853.43794,354848.4371203905], -["South Dakota",197935435136.62775,380974.5700711944], -["Tennessee",108984514303.16504,189546.14728804305], -["Texas",681029919907.9698,1177438.055205133], -["Utah",219421759907.71756,557946.3739070743], -["Virginia",102776048838.10104,320700.31725016324], -["Vermont",24577426263.49393,254009.8998166826], -["Washington",173341861295.48312,381943.3240589823], -["Wisconsin",168949350785.5707,534233.1040137928], -["West Virginia",62625585161.76298,382039.17230066983], -["Wyoming",253670441447.10522,450348.1722393462]]; +const stateData = [["Alaska", 1452514225725.9436, 1868373.8543388732], +["Alabama", 134183493809.92227, 532965.3777696239], +["Arkansas", 137594312821.44278, 390088.00657864026], +["Arizona", 294757028937.5847, 633186.8250454122], +["California", 406293983906.08356, 1052709.4946563328], +["Colorado", 269648516308.92535, 450204.53976080974], +["Connecticut", 12660002907.845184, 118267.25668779382], +["District of Columbia", 143239048.97410837, 22849.35891797693], +["Delaware", 5301476457.13695, 154538.7770483073], +["Florida", 147061503225.29276, 725785.7361081617], +["Georgia", 152545609645.3165, 515643.4608175565], +["Hawaii", 16276457956.22964, 1072045.4061879863], +["Iowa", 144371045331.47766, 349101.761916603], +["Idaho", 215165271391.04874, 777597.4487340406], +["Illinois", 149962816232.10614, 614341.3685248627], +["Indiana", 94418933046.32669, 441183.50429391616], +["Kansas", 211603378234.17575, 339716.0845083418], +["Kentucky", 104059819167.07492, 288923.8165505772], +["Louisiana", 119735851466.82343, 446546.83642277156], +["Massachusetts", 21240814302.251324, 180458.12859798397], +["Maryland", 25142576638.752808, 199510.82555067376], +["Maine", 83320514510.73213, 487259.3522773301], +["Michigan", 248831526119.40704, 735361.3389467007], +["Minnesota", 223905746565.9167, 652250.567964836], +["Missouri", 181327659750.11615, 514688.64139698073], +["Mississippi", 123907979131.48102, 535154.9372703212], +["Montana", 378043596367.47034, 523842.3904506136], +["North Carolina", 128508233574.94186, 306028.3207092302], +["North Dakota", 181516551961.1925, 345149.0784229827], +["Nebraska", 199879423825.03116, 341927.3618479088], +["New Hampshire", 24194580764.403435, 288427.55344232], +["New Jersey", 19628854900.92644, 268835.7774083556], +["New Mexico", 314637500694.8689, 631664.9951280521], +["Nevada", 286249761376.3085, 779935.1168063006], +["New York", 136767165418.95305, 500159.906709641], +["Ohio", 116221291680.81133, 436881.72983926453], +["Oklahoma", 180427267305.4764, 381292.86025305686], +["Oregon", 250918651052.89493, 474937.6214419664], +["Pennsylvania", 119213832983.51472, 315004.6904564087], +["Rhode Island", 2607765149.7594714, 76364.10164281644], +["South Carolina", 80044862853.43794, 354848.4371203905], +["South Dakota", 197935435136.62775, 380974.5700711944], +["Tennessee", 108984514303.16504, 189546.14728804305], +["Texas", 681029919907.9698, 1177438.055205133], +["Utah", 219421759907.71756, 557946.3739070743], +["Virginia", 102776048838.10104, 320700.31725016324], +["Vermont", 24577426263.49393, 254009.8998166826], +["Washington", 173341861295.48312, 381943.3240589823], +["Wisconsin", 168949350785.5707, 534233.1040137928], +["West Virginia", 62625585161.76298, 382039.17230066983], +["Wyoming", 253670441447.10522, 450348.1722393462]]; -lakeData = [["Great Bear Lake",30705087100.39444,249587.0178569169], -["Great Slave Lake",25979349104.78955,222553.71193975979], -["Lake Winnipeg",24725327311.907898,447364.2470703075], -["Lake Erie",25733708879.870712,192057.8934569162], -["Lake Ontario",19459731305.812992,146764.96294588706], -["Lake Nicaragua",7868905372.897486,121405.98391075578], -["Wollaston Lake",2407994278.0176673,100664.45715499032], -["Reindeer Lake",6699466550.276425,210598.49663443846], -["Lake of the Woods",4379783046.907034,126935.02352812613], -["Lake Nipigon",4536746686.966236,104037.22247574496], -["Lake Manitoba",4829556442.021682,180916.99807143302], -["Lake Winnipegosis",5351611949.371971,178544.41461400164], -["Lake Athabasca",8062134135.373696,125668.19259652402], -["Lake Mistassini",2824295951.1996794,151273.80987230735], -["Iliamna Lake",2683503646.516815,54253.86116743938], -["Nettilling Lake",5428463940.0246315,120928.81565285483], -["Dubawnt Lake",3839129965.478061,105256.91600794869], -["Churchill Lake",2530497557.088543,143807.84111510788], -["Amadjuak Lake",3119012874.3399687,96442.45913303625], -["Nueltin Lake",2382532908.150168,144479.1510201586], -["Lake Superior",82128651057.8527,287602.88026744884], -["Lake Michigan",57458364584.823746,499569.0816390038], -["Lake Huron",59875434567.45654,373053.5773839965], -["Saginaw Bay",2865869424.04707,84512.28053912352], -["North Channel",3684556990.9754815,56915.99271388163], -["Georgian Bay",13808097705.102896,171895.10063486965], -["Lake Ladoga",17599014466.118046,209334.63328439597], -["Lake Balkhash",17562535840.796925,211181.28357755358], -["Lake Baikal",31424860311.51558,477299.83526115003], -["Lake Albert",5415927058.213369,155202.656197211], -["Lake Malawi",28970832350.48915,547326.3444738411], -["Lake Tanganyika",32902316927.932625,607586.0299391], -["Lake Victoria",67418346184.673134,390319.56784477783], -["Vänern",5734055623.021802,116876.1416564023], -["Lake Onega",9909044087.826246,230124.3405532242], -["Lake Tana",3160403656.9873433,76255.00604678364], -["Titicaca",8151663175.319429,151530.26238999917], -["Saimaa",9326105632.628986,283077.95058092044], -["Khövsgöl Nuur",2769990775.426884,129877.91883177045], -["Päijänne",4196747579.7670493,258589.58875314955], -["Lake Mweru",5067313783.922969,116686.78520431886], -["Khanka Lake",4045235077.3068814,90076.24640317418], -["Tonlé Sap",2553211858.5867414,98947.36069800917], -["Lake Chany",2036123123.4033113,52202.04090924006], -["Hulun Lake",2353067533.933499,92796.22881659318], -["Lake Bangweulu",2129628045.789663,65631.44284618473], -["Lake Peipus",2759060418.26766,88539.80933535314], -["Lake Kivu",2420571993.993311,99186.4298864711], -["Lake Edward",2224493991.2384415,69041.20776115803], -["Tai Lake",2514863725.2561603,69631.14397759084], -["Poyang Lake",2082569465.8306487,108406.89159149017], -["Lake Taymyr",4630600860.681885,150682.1162110535], -["Lake Mai-Ndombe",2004727953.515109,126570.82009747467], -["Lake Zaysan",4203320514.932608,226023.30390275083], -["Southern Indian Lake",2375085546.8208504,116400.10372501276], -["Cedar Lake",2937528032.1579976,65147.775184547456], -["Manicouagan Reservoir",2118006513.255925,144870.07280010532], -["Réservoir La Grande 3",2239275723.412618,53513.67528037542], -["Smallwood Reservoir",5640049876.541362,190469.48647867434], -["Rybinsk Reservoir",4722710286.329823,133957.7463728129], -["Kakhovka Reservoir",2049796934.435282,112904.62705343394], -["Kuybyshev Reservoir",5766647343.887263,290849.3365806595], -["Represa de Sobradinho",8762455089.344688,260964.18453898316], -["Lake Kariba",4733267697.202208,167722.27330588724], -["Lake Nasser",3580707644.941417,264218.9835412912], -["Itaipu Reservoir",2423396874.4932756,153629.55357572105], -["Lake Volta",8006840739.213769,309195.89925877354], -["Bratsk Reservoir",4083587615.903011,362019.51913553616], -["Vilyuy Dam",4360690920.310207,210396.8805755474], -["Kama Reservoir",2036830902.6358452,249237.78659380943], -["Lake Kossou",2380053167.1158504,130370.0202230809], -["Tsimlyansk Reservoir",3062715578.4523644,219469.62838849897], -["Lake Eyre North",8160717992.988825,140190.12684965198], -["Lake Mackay",3602038557.1993456,78390.46045749947], -["Lake Gairdner",4250054729.630959,144465.8217206695], -["Lake Torrens",5168603659.73479,195624.43560849281], -["Lake Frome",2587401961.708965,97011.94585272294], -["Lake Barlee",2105972064.1145387,79852.21890348336], -["Great Salt Lake",4118614419.5601654,110708.30817172899], -["Aral Sea",18420950874.198406,295288.6621336193], -["Lagoa Mirim",3852743576.5131946,157406.51747675333], -["Issyk-Kul",6265432335.885046,66466.11155439584], -["Lake Turkana",7760832602.10179,252552.38778388937], -["Uvs Lake",3309336192.5481205,77898.99305242693], -["Qinghai Lake",4467193644.291539,76367.38196387803], -["Lake Urmia",4331085677.788487,128185.34935458575], -["Sarygamysh Lake",3818334763.173524,89812.66096188535], -["Lake Alakol",2840070077.572581,81435.15084690321], -["Lake Van",3511165387.9424443,76593.96899004786], -["Aydar Lake",2175294489.856263,62977.196706669674]]; +lakeData = [["Great Bear Lake", 30705087100.39444, 249587.0178569169], +["Great Slave Lake", 25979349104.78955, 222553.71193975979], +["Lake Winnipeg", 24725327311.907898, 447364.2470703075], +["Lake Erie", 25733708879.870712, 192057.8934569162], +["Lake Ontario", 19459731305.812992, 146764.96294588706], +["Lake Nicaragua", 7868905372.897486, 121405.98391075578], +["Wollaston Lake", 2407994278.0176673, 100664.45715499032], +["Reindeer Lake", 6699466550.276425, 210598.49663443846], +["Lake of the Woods", 4379783046.907034, 126935.02352812613], +["Lake Nipigon", 4536746686.966236, 104037.22247574496], +["Lake Manitoba", 4829556442.021682, 180916.99807143302], +["Lake Winnipegosis", 5351611949.371971, 178544.41461400164], +["Lake Athabasca", 8062134135.373696, 125668.19259652402], +["Lake Mistassini", 2824295951.1996794, 151273.80987230735], +["Iliamna Lake", 2683503646.516815, 54253.86116743938], +["Nettilling Lake", 5428463940.0246315, 120928.81565285483], +["Dubawnt Lake", 3839129965.478061, 105256.91600794869], +["Churchill Lake", 2530497557.088543, 143807.84111510788], +["Amadjuak Lake", 3119012874.3399687, 96442.45913303625], +["Nueltin Lake", 2382532908.150168, 144479.1510201586], +["Lake Superior", 82128651057.8527, 287602.88026744884], +["Lake Michigan", 57458364584.823746, 499569.0816390038], +["Lake Huron", 59875434567.45654, 373053.5773839965], +["Saginaw Bay", 2865869424.04707, 84512.28053912352], +["North Channel", 3684556990.9754815, 56915.99271388163], +["Georgian Bay", 13808097705.102896, 171895.10063486965], +["Lake Ladoga", 17599014466.118046, 209334.63328439597], +["Lake Balkhash", 17562535840.796925, 211181.28357755358], +["Lake Baikal", 31424860311.51558, 477299.83526115003], +["Lake Albert", 5415927058.213369, 155202.656197211], +["Lake Malawi", 28970832350.48915, 547326.3444738411], +["Lake Tanganyika", 32902316927.932625, 607586.0299391], +["Lake Victoria", 67418346184.673134, 390319.56784477783], +["Vänern", 5734055623.021802, 116876.1416564023], +["Lake Onega", 9909044087.826246, 230124.3405532242], +["Lake Tana", 3160403656.9873433, 76255.00604678364], +["Titicaca", 8151663175.319429, 151530.26238999917], +["Saimaa", 9326105632.628986, 283077.95058092044], +["Khövsgöl Nuur", 2769990775.426884, 129877.91883177045], +["Päijänne", 4196747579.7670493, 258589.58875314955], +["Lake Mweru", 5067313783.922969, 116686.78520431886], +["Khanka Lake", 4045235077.3068814, 90076.24640317418], +["Tonlé Sap", 2553211858.5867414, 98947.36069800917], +["Lake Chany", 2036123123.4033113, 52202.04090924006], +["Hulun Lake", 2353067533.933499, 92796.22881659318], +["Lake Bangweulu", 2129628045.789663, 65631.44284618473], +["Lake Peipus", 2759060418.26766, 88539.80933535314], +["Lake Kivu", 2420571993.993311, 99186.4298864711], +["Lake Edward", 2224493991.2384415, 69041.20776115803], +["Tai Lake", 2514863725.2561603, 69631.14397759084], +["Poyang Lake", 2082569465.8306487, 108406.89159149017], +["Lake Taymyr", 4630600860.681885, 150682.1162110535], +["Lake Mai-Ndombe", 2004727953.515109, 126570.82009747467], +["Lake Zaysan", 4203320514.932608, 226023.30390275083], +["Southern Indian Lake", 2375085546.8208504, 116400.10372501276], +["Cedar Lake", 2937528032.1579976, 65147.775184547456], +["Manicouagan Reservoir", 2118006513.255925, 144870.07280010532], +["Réservoir La Grande 3", 2239275723.412618, 53513.67528037542], +["Smallwood Reservoir", 5640049876.541362, 190469.48647867434], +["Rybinsk Reservoir", 4722710286.329823, 133957.7463728129], +["Kakhovka Reservoir", 2049796934.435282, 112904.62705343394], +["Kuybyshev Reservoir", 5766647343.887263, 290849.3365806595], +["Represa de Sobradinho", 8762455089.344688, 260964.18453898316], +["Lake Kariba", 4733267697.202208, 167722.27330588724], +["Lake Nasser", 3580707644.941417, 264218.9835412912], +["Itaipu Reservoir", 2423396874.4932756, 153629.55357572105], +["Lake Volta", 8006840739.213769, 309195.89925877354], +["Bratsk Reservoir", 4083587615.903011, 362019.51913553616], +["Vilyuy Dam", 4360690920.310207, 210396.8805755474], +["Kama Reservoir", 2036830902.6358452, 249237.78659380943], +["Lake Kossou", 2380053167.1158504, 130370.0202230809], +["Tsimlyansk Reservoir", 3062715578.4523644, 219469.62838849897], +["Lake Eyre North", 8160717992.988825, 140190.12684965198], +["Lake Mackay", 3602038557.1993456, 78390.46045749947], +["Lake Gairdner", 4250054729.630959, 144465.8217206695], +["Lake Torrens", 5168603659.73479, 195624.43560849281], +["Lake Frome", 2587401961.708965, 97011.94585272294], +["Lake Barlee", 2105972064.1145387, 79852.21890348336], +["Great Salt Lake", 4118614419.5601654, 110708.30817172899], +["Aral Sea", 18420950874.198406, 295288.6621336193], +["Lagoa Mirim", 3852743576.5131946, 157406.51747675333], +["Issyk-Kul", 6265432335.885046, 66466.11155439584], +["Lake Turkana", 7760832602.10179, 252552.38778388937], +["Uvs Lake", 3309336192.5481205, 77898.99305242693], +["Qinghai Lake", 4467193644.291539, 76367.38196387803], +["Lake Urmia", 4331085677.788487, 128185.34935458575], +["Sarygamysh Lake", 3818334763.173524, 89812.66096188535], +["Lake Alakol", 2840070077.572581, 81435.15084690321], +["Lake Van", 3511165387.9424443, 76593.96899004786], +["Aydar Lake", 2175294489.856263, 62977.196706669674]]; -const cityData = [["Perris, CA",81964684.1824094,17340.390703739322], -["Cleveland, OH",202339429.6215157,23209.59013569595], -["Worcester, MA",99671782.43041445,14605.325562621805], -["Columbia, SC",352019172.6742025,22039.263508459262], -["Waterbury, CT",74940543.08383945,11240.707285781124], -["Southfield, MI",68056558.14579019,8392.61900895638], -["Lafayette, LA",129286694.77836056,18758.11896349866], -["Boise City, ID",207886610.54425293,20093.30751479405], -["Buena Park, CA",27247435.947821848,9543.668972670741], -["West Palm Beach, FL",146897762.11629158,21549.76401462379], -["Aurora, IL",120471445.52952728,15844.639626294018], -["Westminster, CA",26241262.334816102,6034.238069099691], -["Lubbock, TX",321070069.40289456,26678.809304307542], -["Overland Park, KS",195493060.30501476,31614.995776477663], -["Jackson, MS",293835022.93754,24130.57932730848], -["Gastonia, NC",131626049.80787374,16753.396532561248], -["Kansas City, MO",827224849.722637,59097.508282939736], -["Chino, CA",77234020.69829516,13793.657971036002], -["Greenville, NC",93292960.22338143,16283.24022388977], -["Thornton, CO",94478965.28785168,18880.21539643759], -["Fall River, MA",101976365.88584314,18146.38176266416], -["Chula Vista, CA",129294608.95899868,11987.141847937619], -["Coral Springs, FL",62434132.13012164,9054.700467844257], -["Concord, NC",156532878.82281402,19647.160977435895], -["Naperville, IL",103524713.2460789,16914.159993174646], -["Hollywood, FL",74818446.08998168,11842.386666228074], -["New Orleans, LA",906674521.5629642,37022.311500542346], -["Portland, OR",375797768.615283,24591.5627549702], -["Concord, CA",79294632.07451227,11006.091052376294], -["Waukesha, WI",65362851.92824913,12088.559444274593], -["Schenectady, NY",28379808.45369227,8934.776513021488], -["Denver, CO",401181894.17280483,33428.90229663551], -["Springfield, IL",173763624.30651483,24485.781056843196], -["Moreno Valley, CA",133673435.36114071,14346.759106197478], -["Reno, NV",275125130.7340699,36802.1696698737], -["Portland, ME",55589705.80908808,10419.487814115026], -["Brooklyn Park, MN",68855207.56962253,9624.172381340968], -["Flint, MI",88191490.52350642,14870.592681352911], -["Indio, CA",75915305.66004917,14586.52559917154], -["Scottsdale, AZ",479235886.74755937,50407.90984786203], -["Columbus, OH",582767565.1705172,38793.34039390684], -["Lincoln, NE",234158906.9132179,22894.209192581955], -["Trenton, NJ",21170573.18973878,7180.5476742839055], -["Boston, MA",127836790.7322693,18822.517871251373], -["Rochester, MN",142001301.97639674,24895.640923369778], -["Missoula, MT",71814579.85637735,17633.369856748206], -["Clovis, CA",60163418.0249286,18215.427376010295], -["Pearland, TX",123578650.59719199,11187.222308574772], -["Gilbert, AZ",178329697.33061278,20135.2273066438], -["Raleigh, NC",376894382.294388,29249.025939360432], -["Orange, CA",66196592.458463416,8225.656294204873], -["Tallahassee, FL",268462766.4684203,26770.47644227203], -["San Antonio, TX",1212918533.3704445,55678.00062325552], -["Hartford, CT",46772532.39530423,9323.505157280575], -["Waterloo, IA",163870824.34050697,16509.00885740018], -["Meridian, ID",71453087.43116263,12656.070068849003], -["Baytown, TX",94941799.53019547,18582.457792760102], -["Cary, NC",145286552.03183773,27802.12215754255], -["Tulsa, OK",521224725.97529626,39368.26792522178], -["Mission, TX",88405352.18207435,14224.476085648716], -["Allen, TX",68635865.99572326,9464.536681388221], -["Tucson, AZ",589371155.539097,36655.54736550221], -["Jacksonville, FL",2159296893.648997,53703.66160827584], -["Erie, PA",49532006.32559827,8492.65915389901], -["Merced, CA",60632801.85242554,16987.99002449497], -["Abilene, TX",291409897.5488995,31302.649924294048], -["San Buenaventura (Ventura), CA",56769223.57810388,15077.407259505566], -["Fremont, CA",199684861.24003357,16722.21075201947], -["Pueblo, CO",141143378.0317769,39481.94005763312], -["Minneapolis, MN",148790791.23894674,17935.183870602435], -["Wichita Falls, TX",187301588.8327737,17868.139239650995], -["Missouri City, TX",77561545.4049587,20671.26072865235], -["St. Louis, MO",171230957.93688667,26962.511085851795], -["Pharr, TX",61043224.69785632,20678.777831707695], -["Albuquerque, NM",492687266.674239,30203.529854522527], -["North Las Vegas, NV",263325272.11777252,28492.150831624553], -["Pomona, CA",59569073.78771064,10245.597713782156], -["Lawrence, KS",89044167.95527506,14368.401249136708], -["Midland, TX",187594250.05793998,23361.637555789523], -["Oklahoma City, OK",1611352955.904515,42762.531793775255], -["Mesa, AZ",355955004.2475505,26251.19621685386], -["Norwalk, CT",60269647.00330636,13631.411455963032], -["Tustin, CA",28689983.47620466,9059.983609504301], -["Passaic, NJ",8385788.874998574,4754.933869155849], -["Escondido, CA",96223584.30953616,17137.506830427068], -["Berkeley, CA",27274159.864253197,6575.082123829863], -["Lawton, OK",210438957.07521755,20389.741823827622], -["Fort Wayne, IN",286999096.86365235,26105.738969595834], -["Albany, NY",56820552.27418033,12094.289795347902], -["Daly City, CA",19873934.605721675,6529.511359510658], -["San Mateo, CA",31858100.016018566,8814.831158653784], -["Orlando, FL",288663310.29998535,29449.081350021985], -["Wilmington, NC",134215290.57610995,15704.673630882673], -["Kansas City, KS",332977861.50626963,17764.85237537906], -["Newton, MA",47111602.1738547,9435.589879041197], -["Newark, NJ",63245990.46561011,12702.657347305474], -["Denton, TX",232494110.99463415,26880.117949507698], -["Salinas, CA",60163999.872296154,10645.031391251208], -["Miami Gardens, FL",49534275.739779145,6871.559742342773], -["Laredo, TX",235196529.87713376,42106.49109771302], -["Melbourne, FL",89943457.31376769,18433.308135772826], -["Palm Bay, FL",171675288.41459554,17109.723846818266], -["Parma, OH",52062341.19041303,7684.582691397297], -["Rapid City, SD",143933556.0536714,15791.264770709286], -["Springfield, MA",85691059.81804815,10964.767768075399], -["Fort Collins, CO",144077376.0616582,18540.84513294256], -["San Leandro, CA",34448692.57927646,8313.287364383506], -["Vista, CA",48687473.774501085,11956.731246778894], -["Yonkers, NY",47786475.07177949,9789.53426217761], -["Cincinnati, OH",206173378.13571635,18795.379445635663], -["Union City, NJ",3308860.3513190765,3594.2419431154485], -["Toledo, OH",217302466.84607494,16988.413946081513], -["Newport News, VA",181349714.02331522,28732.34870937686], -["Hammond, IN",61926953.28217004,16001.289595706265], -["Sugar Land, TX",88335070.44382124,16789.808617694023], -["Huntsville, AL",548459413.9145937,36458.123745384444], -["Hayward, CA",116773493.08426222,14356.217293641108], -["Sparks, NV",93203640.09087133,15455.957881420887], -["Decatur, IL",121744980.87246877,15354.489081768405], -["Mobile, AL",380073221.9404342,34851.95873894645], -["Vallejo, CA",89348797.12437336,12645.092064094315], -["Longview, TX",144836334.2189503,17603.5246842744], -["Chandler, AZ",168735429.95008734,17597.139755180127], -["Arvada, CO",93232095.40847915,11212.020598353713], -["Alhambra, CA",19794724.803666826,5688.059550556986], -["Indianapolis, IN",954400563.4199271,32858.87929479216], -["Boynton Beach, FL",42516133.244132444,9880.843946663143], -["Cranston, RI",74744528.31849171,8559.60702794063], -["Lafayette, IN",71847898.2323072,11117.174147772897], -["Olathe, KS",156961143.53212237,20440.21117196817], -["Johns Creek, GA",81403812.76448016,11657.249617260735], -["Greensboro, NC",341746621.2899855,25352.488225412148], -["Kalamazoo, MI",65026512.297898956,13045.63890309197], -["Jacksonville, NC",120859260.91207463,19736.519356193305], -["Citrus Heights, CA",36922967.221248366,6596.345266393401], -["Tuscaloosa, AL",181658575.12356657,38079.96496432905], -["Hawthorne, CA",15660670.640554277,4439.34883356512], -["Hoover, AL",126864507.89419562,22243.28399098702], -["Youngstown, OH",89726411.24050792,10446.699498709866], -["Redlands, CA",94531374.16977291,10887.653488328246], -["Nampa, ID",83505951.4815994,14706.186679515702], -["Washington, DC",161425218.78537098,20734.895510184135], -["Rialto, CA",58256242.94028176,17755.871964301965], -["Fargo, ND",126350664.86372894,30512.268679777568], -["Peoria, IL",130618199.90612084,21389.36100630251], -["Omaha, NE",338432182.90429187,22548.758243736083], -["San Diego, CA",853619735.6417948,64503.590663618685], -["Santa Rosa, CA",108608915.09395435,15756.26141312859], -["Lowell, MA",37584594.05374325,6682.064569352944], -["Broken Arrow, OK",160902566.88516757,22376.780338547876], -["Kent, WA",75428743.38986956,12407.504885351122], -["Nashville, TN",1289187938.3004665,48712.46408773016], -["Durham, NC",281800229.6648633,30120.544506908387], -["Wichita, KS",424842009.0275075,38990.78033476979], -["Sunnyvale, CA",56936469.5851142,13214.71648960157], -["Kenosha, WI",70805512.67844805,11145.360584369238], -["Pompano Beach, FL",63996347.68081537,10192.283360626338], -["San Angelo, TX",153731563.71273416,20909.50988176128], -["Bloomington, IL",70835964.25640915,9900.430653001467], -["Tracy, CA",57352418.36497506,12852.097679177505], -["Nashua, NH",82627132.73599777,11760.136631323694], -["Macon, GA",145958434.78842258,14725.423165397035], -["Camden, NJ",26793508.545671113,7847.304629357501], -["Chesapeake, VA",910387521.1544838,35189.51136561488], -["Elizabeth, NJ",32102270.022878703,6238.341106194418], -["Anchorage, AK",4472575669.8046,83337.19683677182], -["Davie, FL",92708520.92681056,10422.681316881732], -["McAllen, TX",126411530.57796985,27575.383980828774], -["McKinney, TX",163519800.71879953,19572.96525700693], -["Killeen, TX",140832951.8240438,20816.499598916143], -["Oakland, CA",145712381.7115506,20696.76766564196], -["Mountain View, CA",31611594.63491621,10746.103036195662], -["Amarillo, TX",262451484.695473,21406.19925198905], -["Provo, UT",114705661.94691227,15925.948185757514], -["Atlanta, GA",347516269.1341394,26506.151841457482], -["Montgomery, AL",421456374.56191427,20920.29205755097], -["Allentown, PA",46545880.1484073,9556.59776630063], -["Mount Pleasant, SC",120752756.25102511,18067.365583595943], -["Columbus, GA",574055020.5433981,26070.62148068078], -["Buffalo, NY",106262263.34733091,15617.700910115995], -["Sacramento, CA",259733558.8063098,27609.902989755727], -["Fort Smith, AR",171159411.52141178,20710.35051187157], -["Mount Vernon, NY",11426527.042606609,5048.823294117959], -["Lakewood, CO",114292120.1742486,15989.150751716354], -["Henderson, NV",280933674.3052185,25931.148568393706], -["Stamford, CT",99635557.2801628,18084.65822827067], -["Bloomington, IN",60629541.87291775,11112.9401962698], -["Spokane, WA",155323186.74857354,19112.674510275392], -["Kennewick, WA",73377256.70364779,9236.924186515891], -["Philadelphia, PA",365025434.7450253,29575.483705135273], -["Bellingham, WA",72506170.37018737,14218.526434995129], -["Visalia, CA",94326732.62437938,11296.363351712873], -["Dallas, TX",1002389201.235724,45703.38746696072], -["Antioch, CA",75288737.86473554,12137.442766037228], -["Sterling Heights, MI",95334901.88001123,10354.82656551851], -["Deerfield Beach, FL",42267243.74572009,5952.4204764935075], -["Fishers, IN",94570806.66734987,8258.785502547145], -["Cheyenne, WY",64905267.96616508,10076.399827071244], -["Murrieta, CA",87071713.18652694,14276.607025023079], -["Newport Beach, CA",67753054.75652517,11986.287356593803], -["Yakima, WA",71916435.96291183,8112.760519654357], -["Dayton, OH",146822620.49438712,24374.698428703516], -["Gulfport, MS",149281538.58992758,16513.789355647554], -["Long Beach, CA",132849817.99712364,16976.085937105105], -["Chico, CA",85792550.31925525,14373.959817439758], -["Eugene, OR",112527434.44525315,16130.32843766066], -["Pleasanton, CA",62946579.44628105,9260.900477407082], -["Everett, WA",90854101.67540008,17505.117386551054], -["Fairfield, CA",97715934.22424519,16720.91152209924], -["Avondale, AZ",118942667.8880126,27042.320382748705], -["Bloomington, MN",99497552.08204108,8583.40546046516], -["Beaverton, OR",48389457.161517166,13014.832668543517], -["Kenner, LA",39030244.0198878,8999.804267756526], -["Milpitas, CA",35445735.376643494,7865.499220919536], -["Savannah, GA",282146035.0614523,33648.08686334469], -["Vancouver, WA",128865667.19917196,12482.482137276624], -["Sunrise, FL",47584847.24320708,10168.759582566518], -["Muncie, IN",70933068.8508594,10186.33488100368], -["San Francisco, CA",121736447.34500486,13818.915331976223], -["Fontana, CA",110110777.98915584,16770.99687916988], -["Frisco, TX",162279846.23019996,15390.990456400674], -["Chino Hills, CA",116151482.0680687,16994.976384331865], -["Norfolk, VA",151868739.54327404,16535.901500840846], -["Hillsboro, OR",62317738.28636107,9747.094726817122], -["San Bernardino, CA",154907734.9086812,20078.63490949696], -["Victorville, CA",191660703.62894493,23330.61750169], -["Gary, IN",130064603.1510892,13951.962246044477], -["Syracuse, NY",66375943.07701508,11325.190217474239], -["Clarksville, TN",255055825.67497766,18134.288270394034], -["Lakeland, FL",193395960.70042235,24454.57652855733], -["Palatine, IL",35624731.050356455,8732.028956496397], -["Seattle, WA",257986466.0961069,26550.847468623397], -["Elk Grove, CA",109614072.56267175,10164.328830228551], -["Shreveport, LA",315160521.2001404,28468.477583028132], -["Ogden, UT",70134240.3137235,14010.453495666727], -["Inglewood, CA",23566839.293793038,6414.821796924194], -["Pasadena, CA",60034291.49688121,14936.234912244066], -["Lawrence, MA",19248358.729668453,5174.797171447283], -["Folsom, CA",62956147.912641115,9277.081436768509], -["Las Cruces, NM",199382700.79406014,21095.88852229422], -["Schaumburg, IL",50071985.50913443,10153.31301113897], -["Warren, MI",89267771.96286967,10159.478267657618], -["Surprise, AZ",274931802.69755787,27348.967545329237], -["Richardson, TX",74563912.49685393,9102.364924159876], -["Appleton, WI",64702217.11623114,14686.2347260698], -["Livermore, CA",65601163.45601955,11427.108096547494], -["Charlotte, NC",778151668.9973398,43384.40412044], -["Chicago, IL",598870383.9793495,42134.456445036994], -["Billings, MT",112943337.09102014,15494.740947631104], -["New Haven, CT",49954268.30284738,11563.598835586585], -["Knoxville, TN",269666746.2403927,24217.742152906583], -["Alameda, CA",27885382.651238013,8752.526601706806], -["Manteca, CA",46184775.33946612,9174.38735992951], -["Medford, OR",67039244.23127689,12198.968460211068], -["Murfreesboro, TN",144131322.43394652,22053.02526267268], -["Scranton, PA",66198810.491335906,14541.207125474259], -["Vacaville, CA",74177089.59128244,12111.799035044394], -["Santa Monica, CA",21778261.943565603,6138.580087797304], -["Suffolk, VA",1065044416.6857624,41407.68991378691], -["Rochester Hills, MI",85311398.6357122,10185.01274012628], -["Charleston, WV",84859071.04666862,13837.238338844905], -["Charleston, SC",304805909.7663607,33957.826969334026], -["Corona, CA",100935560.7072019,12626.415496444411], -["Lee's Summit, MO",169744975.77433014,22485.861063635653], -["Palm Coast, FL",235568529.71516344,26570.021348320344], -["Sandy, UT",59684068.99747784,9826.271967562632], -["Santa Clarita, CA",136960763.34557328,15003.147736396499], -["Memphis, TN",841230818.1130888,29930.560917656832], -["Irving, TX",176219562.63924173,20179.596534218785], -["Alexandria, VA",39541220.4654301,6111.1221890914985], -["Hesperia, CA",190250303.59346578,18541.26956364058], -["Bethlehem, PA",50555147.85487253,10527.55996934226], -["Napa, CA",47153094.56758781,14385.30632544945], -["Aurora, CO",403186005.76653236,30718.35150297758], -["Duluth, MN",177349040.34125116,25755.263630890942], -["Roanoke, VA",111450989.0389659,14007.57848867679], -["Bend, OR",86209906.10252617,13860.847191066689], -["Apple Valley, CA",190907621.30963057,24225.65028394661], -["Tampa, FL",306286311.1588018,38981.09971551443], -["Upland, CA",40509612.65487394,7224.180668218518], -["Plantation, FL",57070411.277413025,7600.422550167301], -["Colorado Springs, CO",505693973.0844614,35546.80384126408], -["Modesto, CA",96558846.6713323,21094.385463765597], -["Grand Rapids, MI",117200455.024391,16182.691759078898], -["Bellflower, CA",16023349.159680188,4996.197429853532], -["Boulder, CO",67192193.28370771,14527.057405337458], -["Santa Fe, NM",119634600.89508778,18458.80531467489], -["Riverside, CA",211082790.76158842,16353.07395253579], -["Palmdale, CA",275790622.2550165,16816.42739207769], -["Layton, UT",57711724.49312341,8940.578972971196], -["Bolingbrook, IL",63014953.53151218,11633.193961434832], -["Mission Viejo, CA",47007836.67370475,15026.694766393368], -["Little Rock, AR",313928345.4047921,21860.727355772968], -["Santa Ana, CA",71364262.98089834,10301.364066189075], -["Bellevue, WA",94375628.79575746,13985.852341560925], -["Roseville, CA",94130218.42663379,10475.945922826575], -["Columbia, MO",165016095.14188233,18462.54330493861], -["Racine, WI",41005137.2098309,11493.112811987336], -["Carmel, IN",125909581.09139155,8575.919598284761], -["Arlington Heights, IL",43084094.243159235,13416.44553656458], -["Hemet, CA",72068042.17744942,12166.332169525534], -["High Point, NC",144644415.8592999,19258.78407999194], -["San Marcos, CA",63736813.73107984,11984.162854933293], -["Lakewood, CA",24543130.05089996,5449.40255176097], -["Rockford, IL",161161755.37279502,19717.411045901823], -["El Cajon, CA",37292335.52083333,7058.962333468051], -["St. Petersburg, FL",164786560.40209162,29146.930127100914], -["Las Vegas, NV",353414529.7526734,27945.310246651945], -["Pasadena, TX",115343628.59774755,20185.86442277], -["Port St. Lucie, FL",299993214.4128807,18803.087762060954], -["Cedar Rapids, IA",187128828.93988135,23004.601095436425], -["Quincy, MA",42877727.75319703,11531.933410909553], -["Miramar, FL",81467855.92955561,4295.898706040543], -["El Paso, TX",665794112.8212899,42185.99729464523], -["Topeka, KS",159389215.19420618,21381.275082283755], -["Akron, OH",161965180.35313895,19302.18142637164], -["Edinburg, TX",97829052.20380215,22659.729569932544], -["Rancho Cucamonga, CA",103577815.22130105,10484.694988993799], -["North Charleston, SC",195010003.78886002,18949.001067108824], -["Louisville, KY",887536027.3564113,42632.8188644505], -["Carlsbad, CA",99205739.91156532,13593.606168891185], -["Redding, CA",158663000.2961073,23437.85788416143], -["Wyoming, MI",64590430.40863624,10203.43852419287], -["Fort Lauderdale, FL",92447977.52624184,14953.572701647507], -["Warner Robins, GA",92637658.7584049,15979.377894805177], -["Clearwater, FL",70505229.97891685,12753.223031348676], -["Sioux Falls, SD",191046737.51481017,16812.99142582782], -["Warwick, RI",93404631.5888004,15385.56533213461], -["Bakersfield, CA",373330172.2557742,28264.206428515965], -["Miami, FL",94436739.53528354,16313.916398281905], -["Lake Charles, LA",116445968.10857004,16440.68359771386], -["Troy, MI",87228316.83545749,10065.550667814647], -["New Rochelle, NY",27356919.09872853,12086.77502196198], -["Stockton, CA",168119906.30541438,21299.226570833653], -["Spokane Valley, WA",98514066.89767279,12218.445095133415], -["Costa Mesa, CA",40927103.005330086,8546.994179421907], -["Grand Prairie, TX",210639720.0090124,35772.46385184718], -["Portsmouth, VA",95638515.84169498,15429.258291354603], -["Sioux City, IA",151411408.2851384,21671.1157651159], -["Peoria, AZ",462390948.0285476,45241.00046873826], -["Tempe, AZ",104631187.25587574,16042.985661617655], -["Wilmington, DE",30781363.016926706,8203.131528520304], -["Westland, MI",52958008.268298246,9766.978748159527], -["Mesquite, TX",119671101.2308798,18658.052638200534], -["Garland, TX",148680201.3689532,17278.427561739532], -["Richmond, CA",76620764.35919361,13028.862118495894], -["Fayetteville, NC",383470228.96085703,22599.64493179071], -["Albany, GA",144939924.2783537,11260.734460960397], -["Chattanooga, TN",375708399.7618184,25754.14999244921], -["Baldwin Park, CA",17719767.88176574,5783.597878322788], -["Miami Beach, FL",18767171.3117442,12071.52181292305], -["St. Joseph, MO",116156246.19782926,13807.49549336925], -["Redondo Beach, CA",15975802.453288553,8892.085056292704], -["Houston, TX",1625177074.3106484,65347.054618184746], -["Temecula, CA",78343212.71921027,11853.906971903194], -["Ann Arbor, MI",75358673.80680929,11249.63769032106], -["Beaumont, TX",223227518.9360223,23956.941124227502], -["Pembroke Pines, FL",90320030.8674843,7048.306846943047], -["Springdale, AR",109487257.12097904,12124.827682533725], -["Oxnard, CA",70481711.22121,15799.750497327517], -["Odessa, TX",109825650.21917774,17039.87018663301], -["Brockton, MA",55765822.2153101,9387.46530194601], -["Jersey City, NJ",38720291.856515504,11349.38017051909], -["St. Paul, MN",145427621.52886617,11642.144565796836], -["Deltona, FL",106874726.3700854,15883.78194550615], -["Iowa City, IA",65610343.58861762,10768.112603419819], -["Anaheim, CA",131874961.94919606,9863.351531376777], -["West Valley City, UT",92165898.14959729,10657.319427772201], -["Hampton, VA",138525968.757897,14471.617324640742], -["Orem, UT",47427927.89833045,8579.78913079117], -["Plymouth, MN",91544113.13805619,9794.330094838442], -["South Bend, IN",108580452.8867025,18141.392615290042], -["Edmond, OK",228078255.3146762,12981.986526251989], -["Des Moines, IA",214104538.4349991,18877.941326551572], -["Whittier, CA",38116225.21492862,11148.313804747979], -["Livonia, MI",92921092.94835486,9968.38010471353], -["Milwaukee, WI",250826848.68409485,30528.2204660556], -["Auburn, WA",77405165.51957545,12571.557665195754], -["Renton, WA",60957534.62512573,12954.820623979189], -["Centennial, CO",75299442.61339408,8063.492911469569], -["Richmond, VA",161971041.88415238,17350.381495264242], -["Norwalk, CA",25322049.04957091,5917.88355613905], -["Yuma, AZ",313881407.4794324,28068.47736949612], -["Joliet, IL",164393355.92808434,18192.616127476416], -["Rock Hill, SC",94006998.67394231,16017.281639974244], -["Honolulu, HI",1561838805.0558693,50750.24741979128], -["Carrollton, TX",96727612.6726836,14901.987906805196], -["Burbank, CA",45133930.716844454,8784.77026749422], -["Fullerton, CA",58245447.83114085,7839.237150350101], -["Farmington Hills, MI",86414205.43290152,10065.345483205341], -["San Jose, CA",463803867.6791941,37935.48807837168], -["Round Rock, TX",89755578.24047355,11933.726641827097], -["Norman, OK",491839831.2554452,22595.135678842744], -["Irvine, CA",172623476.57692724,19526.53263592462], -["Sandy Springs, GA",100342075.09170946,14813.045417466335], -["Champaign, IL",58600003.147826836,11331.719511498159], -["Clifton, NJ",29512825.776797056,8842.284563060333], -["Lancaster, CA",245599960.51283917,15393.254148335855], -["Bryan, TX",115656610.45230778,15726.62899212451], -["Cape Coral, FL",296768654.4045847,26995.900577250166], -["Manchester, NH",90614732.53082307,18021.737298869597], -["Virginia Beach, VA",679123753.5397043,42518.60757702567], -["Somerville, MA",10645936.585639814,5012.854006912979], -["Largo, FL",47953342.89271046,7502.097579654162], -["Fresno, CA",291717284.5369908,27751.978197792196], -["Pawtucket, RI",23134086.230073716,4676.185513032966], -["Winston-Salem, NC",347815514.24982566,24701.68611666068], -["O'Fallon, MO",77280927.70621097,17834.349381062733], -["Redwood City, CA",53710623.26161152,11657.353658086162], -["Union City, CA",50625789.656449206,8308.75446696634], -["Menifee, CA",120964860.43938926,14550.685277052366], -["Loveland, CO",91858834.19592565,12981.791451454881], -["Providence, RI",48663268.433759086,9925.15514355744], -["Hialeah, FL",59425576.31246726,13578.31221819809], -["San Ramon, CA",46962894.124381624,8300.8132137631], -["Ontario, CA",129773948.09493506,13118.956110874997], -["St. George, UT",183822517.80378368,23351.83202218191], -["Glendale, CA",79409153.21392162,16522.98971008113], -["Elgin, IL",98073808.74773648,14702.569353334875], -["Plano, TX",186801488.09306085,14250.460561057287], -["Longmont, CO",72615825.33372708,9422.354003608903], -["Jonesboro, AR",208525010.98361045,16117.939136552874], -["College Station, TX",128901338.39199863,15187.112224352903], -["Dearborn, MI",63402718.71377407,8307.437564097292], -["Baltimore, MD",211110136.687518,19481.94868916342], -["Springfield, MO",213418229.5375552,20494.534080708458], -["Lynn, MA",29889251.585398607,7439.299665021594], -["Gainesville, FL",161842403.40472102,20146.086506523166], -["Fayetteville, AR",143057015.65505883,17746.24884424294], -["Tacoma, WA",129062273.09195016,16946.525482792968], -["Burlington, VT",40074869.857893206,10441.938809129291], -["New York, NY",776913085.4440758,46664.14993544265], -["Simi Valley, CA",110000962.86151998,12718.570296349528], -["West Covina, CA",41698963.317330115,10090.78305417133], -["Fort Worth, TX",904643827.3066726,55425.31043730481], -["Carson, CA",49173272.43364395,10415.222257469502], -["Evansville, IN",115917184.30549382,13502.042586839483], -["Santa Maria, CA",60670958.002015,12588.017704032736], -["Westminster, CO",88284965.0823576,16591.205521861386], -["Reading, PA",26297974.590882696,8236.381962826019], -["Turlock, CA",44026196.200300805,7803.476116963613], -["Greeley, CO",121435795.84628743,11508.964038708284], -["Tyler, TX",140444734.95585826,18043.049274512596], -["Waco, TX",262990030.6031047,23042.872986635277], -["Thousand Oaks, CA",143304630.07797608,14002.82372329902], -["Bridgeport, CT",42300834.787009224,9637.546565284007], -["Torrance, CA",53270505.16779522,11851.458683774323], -["Madison, WI",245277546.53182447,19369.644081465354], -["Waukegan, IL",62138628.30700616,13720.095669642027], -["Arlington, TX",258882114.35651392,25542.615771104938], -["Lewisville, TX",110304414.20408913,12814.711738056434], -["New Bedford, MA",52444426.815606356,16981.554938813995], -["Garden Grove, CA",46385437.661223896,7897.662535813339], -["Lynwood, CA",12699196.838815562,4541.990959445397], -["Canton, OH",66186454.07021776,12965.725606070775], -["Baton Rouge, LA",205797544.73477614,21975.95476585528], -["Independence, MO",203032728.39947346,13604.491606613963], -["Lansing, MI",95075912.84735177,13626.215188595805], -["Green Bay, WI",120282205.7150592,11423.118838021755], -["Evanston, IL",20120779.76282729,5851.2159887481075], -["Los Angeles, CA",1228195507.831013,70446.16016514058], -["Federal Way, WA",58102341.94055346,11173.62766180987], -["West Jordan, UT",84154809.99306782,8109.723041062284], -["Pittsburgh, PA",151203264.28529465,15388.337361742688], -["Downey, CA",32649897.464175254,7850.6045459294455], -["Cicero, IL",15229016.208693285,4946.300268321804], -["South Gate, CA",18975953.081086416,6170.480762634442], -["League City, TX",137677161.4779727,14562.62714877001], -["Salt Lake City, UT",289539381.92303646,17042.158644033836], -["Phoenix, AZ",1345428439.5495973,69921.36615781618], -["Roswell, GA",109161037.14038236,16260.398126786313], -["Huntington Beach, CA",71139699.73492898,14099.57221077618], -["Corpus Christi, TX",407086322.54507345,38617.68749878332], -["Cambridge, MA",18439488.49328066,5741.602179339344], -["Glendale, AZ",156215977.890462,21122.6556861747], -["Davenport, IA",168767003.7579641,17662.484993688828], -["Boca Raton, FL",77666371.29397109,11577.075189719442], -["New Britain, CT",34860420.9155217,7881.145395990154], -["Gresham, OR",60610913.2151143,11107.360139765036], -["Lauderhill, FL",22273427.05799784,8098.481274772797], -["Santa Clara, CA",47727003.10684869,10627.817377094347], -["Oceanside, CA",109115935.49036966,16403.106069162866], -["Lake Forest, CA",46472304.46795488,11691.846104051598], -["Asheville, NC",117195316.92338851,26082.492685450652], -["Compton, CA",26024008.556003362,6640.524455621662], -["Lynchburg, VA",128913590.63869417,15164.816115926775], -["Danbury, CT",114424718.57523526,15238.288425083869], -["El Monte, CA",24901263.280347694,6621.965486241159], -["Paterson, NJ",22595812.776308566,5868.486183600654], -["Salem, OR",125731792.44227253,17952.44525427886], -["Brownsville, TX",380603133.6999252,41979.88156456974], -["Detroit, MI",360190957.2171271,21694.619836946295], -["Rochester, NY",95176691.1784165,18183.20890046319], -["Birmingham, AL",386916778.64116365,32751.862809225568], -["Austin, TX",794358036.1988915,44710.31661937267], -["Santa Barbara, CA",50991347.46845491,7484.009670940266], -["Rio Rancho, NM",269136968.1901309,23814.351777786604]]; +const cityData = [["Perris, CA", 81964684.1824094, 17340.390703739322], +["Cleveland, OH", 202339429.6215157, 23209.59013569595], +["Worcester, MA", 99671782.43041445, 14605.325562621805], +["Columbia, SC", 352019172.6742025, 22039.263508459262], +["Waterbury, CT", 74940543.08383945, 11240.707285781124], +["Southfield, MI", 68056558.14579019, 8392.61900895638], +["Lafayette, LA", 129286694.77836056, 18758.11896349866], +["Boise City, ID", 207886610.54425293, 20093.30751479405], +["Buena Park, CA", 27247435.947821848, 9543.668972670741], +["West Palm Beach, FL", 146897762.11629158, 21549.76401462379], +["Aurora, IL", 120471445.52952728, 15844.639626294018], +["Westminster, CA", 26241262.334816102, 6034.238069099691], +["Lubbock, TX", 321070069.40289456, 26678.809304307542], +["Overland Park, KS", 195493060.30501476, 31614.995776477663], +["Jackson, MS", 293835022.93754, 24130.57932730848], +["Gastonia, NC", 131626049.80787374, 16753.396532561248], +["Kansas City, MO", 827224849.722637, 59097.508282939736], +["Chino, CA", 77234020.69829516, 13793.657971036002], +["Greenville, NC", 93292960.22338143, 16283.24022388977], +["Thornton, CO", 94478965.28785168, 18880.21539643759], +["Fall River, MA", 101976365.88584314, 18146.38176266416], +["Chula Vista, CA", 129294608.95899868, 11987.141847937619], +["Coral Springs, FL", 62434132.13012164, 9054.700467844257], +["Concord, NC", 156532878.82281402, 19647.160977435895], +["Naperville, IL", 103524713.2460789, 16914.159993174646], +["Hollywood, FL", 74818446.08998168, 11842.386666228074], +["New Orleans, LA", 906674521.5629642, 37022.311500542346], +["Portland, OR", 375797768.615283, 24591.5627549702], +["Concord, CA", 79294632.07451227, 11006.091052376294], +["Waukesha, WI", 65362851.92824913, 12088.559444274593], +["Schenectady, NY", 28379808.45369227, 8934.776513021488], +["Denver, CO", 401181894.17280483, 33428.90229663551], +["Springfield, IL", 173763624.30651483, 24485.781056843196], +["Moreno Valley, CA", 133673435.36114071, 14346.759106197478], +["Reno, NV", 275125130.7340699, 36802.1696698737], +["Portland, ME", 55589705.80908808, 10419.487814115026], +["Brooklyn Park, MN", 68855207.56962253, 9624.172381340968], +["Flint, MI", 88191490.52350642, 14870.592681352911], +["Indio, CA", 75915305.66004917, 14586.52559917154], +["Scottsdale, AZ", 479235886.74755937, 50407.90984786203], +["Columbus, OH", 582767565.1705172, 38793.34039390684], +["Lincoln, NE", 234158906.9132179, 22894.209192581955], +["Trenton, NJ", 21170573.18973878, 7180.5476742839055], +["Boston, MA", 127836790.7322693, 18822.517871251373], +["Rochester, MN", 142001301.97639674, 24895.640923369778], +["Missoula, MT", 71814579.85637735, 17633.369856748206], +["Clovis, CA", 60163418.0249286, 18215.427376010295], +["Pearland, TX", 123578650.59719199, 11187.222308574772], +["Gilbert, AZ", 178329697.33061278, 20135.2273066438], +["Raleigh, NC", 376894382.294388, 29249.025939360432], +["Orange, CA", 66196592.458463416, 8225.656294204873], +["Tallahassee, FL", 268462766.4684203, 26770.47644227203], +["San Antonio, TX", 1212918533.3704445, 55678.00062325552], +["Hartford, CT", 46772532.39530423, 9323.505157280575], +["Waterloo, IA", 163870824.34050697, 16509.00885740018], +["Meridian, ID", 71453087.43116263, 12656.070068849003], +["Baytown, TX", 94941799.53019547, 18582.457792760102], +["Cary, NC", 145286552.03183773, 27802.12215754255], +["Tulsa, OK", 521224725.97529626, 39368.26792522178], +["Mission, TX", 88405352.18207435, 14224.476085648716], +["Allen, TX", 68635865.99572326, 9464.536681388221], +["Tucson, AZ", 589371155.539097, 36655.54736550221], +["Jacksonville, FL", 2159296893.648997, 53703.66160827584], +["Erie, PA", 49532006.32559827, 8492.65915389901], +["Merced, CA", 60632801.85242554, 16987.99002449497], +["Abilene, TX", 291409897.5488995, 31302.649924294048], +["San Buenaventura (Ventura), CA", 56769223.57810388, 15077.407259505566], +["Fremont, CA", 199684861.24003357, 16722.21075201947], +["Pueblo, CO", 141143378.0317769, 39481.94005763312], +["Minneapolis, MN", 148790791.23894674, 17935.183870602435], +["Wichita Falls, TX", 187301588.8327737, 17868.139239650995], +["Missouri City, TX", 77561545.4049587, 20671.26072865235], +["St. Louis, MO", 171230957.93688667, 26962.511085851795], +["Pharr, TX", 61043224.69785632, 20678.777831707695], +["Albuquerque, NM", 492687266.674239, 30203.529854522527], +["North Las Vegas, NV", 263325272.11777252, 28492.150831624553], +["Pomona, CA", 59569073.78771064, 10245.597713782156], +["Lawrence, KS", 89044167.95527506, 14368.401249136708], +["Midland, TX", 187594250.05793998, 23361.637555789523], +["Oklahoma City, OK", 1611352955.904515, 42762.531793775255], +["Mesa, AZ", 355955004.2475505, 26251.19621685386], +["Norwalk, CT", 60269647.00330636, 13631.411455963032], +["Tustin, CA", 28689983.47620466, 9059.983609504301], +["Passaic, NJ", 8385788.874998574, 4754.933869155849], +["Escondido, CA", 96223584.30953616, 17137.506830427068], +["Berkeley, CA", 27274159.864253197, 6575.082123829863], +["Lawton, OK", 210438957.07521755, 20389.741823827622], +["Fort Wayne, IN", 286999096.86365235, 26105.738969595834], +["Albany, NY", 56820552.27418033, 12094.289795347902], +["Daly City, CA", 19873934.605721675, 6529.511359510658], +["San Mateo, CA", 31858100.016018566, 8814.831158653784], +["Orlando, FL", 288663310.29998535, 29449.081350021985], +["Wilmington, NC", 134215290.57610995, 15704.673630882673], +["Kansas City, KS", 332977861.50626963, 17764.85237537906], +["Newton, MA", 47111602.1738547, 9435.589879041197], +["Newark, NJ", 63245990.46561011, 12702.657347305474], +["Denton, TX", 232494110.99463415, 26880.117949507698], +["Salinas, CA", 60163999.872296154, 10645.031391251208], +["Miami Gardens, FL", 49534275.739779145, 6871.559742342773], +["Laredo, TX", 235196529.87713376, 42106.49109771302], +["Melbourne, FL", 89943457.31376769, 18433.308135772826], +["Palm Bay, FL", 171675288.41459554, 17109.723846818266], +["Parma, OH", 52062341.19041303, 7684.582691397297], +["Rapid City, SD", 143933556.0536714, 15791.264770709286], +["Springfield, MA", 85691059.81804815, 10964.767768075399], +["Fort Collins, CO", 144077376.0616582, 18540.84513294256], +["San Leandro, CA", 34448692.57927646, 8313.287364383506], +["Vista, CA", 48687473.774501085, 11956.731246778894], +["Yonkers, NY", 47786475.07177949, 9789.53426217761], +["Cincinnati, OH", 206173378.13571635, 18795.379445635663], +["Union City, NJ", 3308860.3513190765, 3594.2419431154485], +["Toledo, OH", 217302466.84607494, 16988.413946081513], +["Newport News, VA", 181349714.02331522, 28732.34870937686], +["Hammond, IN", 61926953.28217004, 16001.289595706265], +["Sugar Land, TX", 88335070.44382124, 16789.808617694023], +["Huntsville, AL", 548459413.9145937, 36458.123745384444], +["Hayward, CA", 116773493.08426222, 14356.217293641108], +["Sparks, NV", 93203640.09087133, 15455.957881420887], +["Decatur, IL", 121744980.87246877, 15354.489081768405], +["Mobile, AL", 380073221.9404342, 34851.95873894645], +["Vallejo, CA", 89348797.12437336, 12645.092064094315], +["Longview, TX", 144836334.2189503, 17603.5246842744], +["Chandler, AZ", 168735429.95008734, 17597.139755180127], +["Arvada, CO", 93232095.40847915, 11212.020598353713], +["Alhambra, CA", 19794724.803666826, 5688.059550556986], +["Indianapolis, IN", 954400563.4199271, 32858.87929479216], +["Boynton Beach, FL", 42516133.244132444, 9880.843946663143], +["Cranston, RI", 74744528.31849171, 8559.60702794063], +["Lafayette, IN", 71847898.2323072, 11117.174147772897], +["Olathe, KS", 156961143.53212237, 20440.21117196817], +["Johns Creek, GA", 81403812.76448016, 11657.249617260735], +["Greensboro, NC", 341746621.2899855, 25352.488225412148], +["Kalamazoo, MI", 65026512.297898956, 13045.63890309197], +["Jacksonville, NC", 120859260.91207463, 19736.519356193305], +["Citrus Heights, CA", 36922967.221248366, 6596.345266393401], +["Tuscaloosa, AL", 181658575.12356657, 38079.96496432905], +["Hawthorne, CA", 15660670.640554277, 4439.34883356512], +["Hoover, AL", 126864507.89419562, 22243.28399098702], +["Youngstown, OH", 89726411.24050792, 10446.699498709866], +["Redlands, CA", 94531374.16977291, 10887.653488328246], +["Nampa, ID", 83505951.4815994, 14706.186679515702], +["Washington, DC", 161425218.78537098, 20734.895510184135], +["Rialto, CA", 58256242.94028176, 17755.871964301965], +["Fargo, ND", 126350664.86372894, 30512.268679777568], +["Peoria, IL", 130618199.90612084, 21389.36100630251], +["Omaha, NE", 338432182.90429187, 22548.758243736083], +["San Diego, CA", 853619735.6417948, 64503.590663618685], +["Santa Rosa, CA", 108608915.09395435, 15756.26141312859], +["Lowell, MA", 37584594.05374325, 6682.064569352944], +["Broken Arrow, OK", 160902566.88516757, 22376.780338547876], +["Kent, WA", 75428743.38986956, 12407.504885351122], +["Nashville, TN", 1289187938.3004665, 48712.46408773016], +["Durham, NC", 281800229.6648633, 30120.544506908387], +["Wichita, KS", 424842009.0275075, 38990.78033476979], +["Sunnyvale, CA", 56936469.5851142, 13214.71648960157], +["Kenosha, WI", 70805512.67844805, 11145.360584369238], +["Pompano Beach, FL", 63996347.68081537, 10192.283360626338], +["San Angelo, TX", 153731563.71273416, 20909.50988176128], +["Bloomington, IL", 70835964.25640915, 9900.430653001467], +["Tracy, CA", 57352418.36497506, 12852.097679177505], +["Nashua, NH", 82627132.73599777, 11760.136631323694], +["Macon, GA", 145958434.78842258, 14725.423165397035], +["Camden, NJ", 26793508.545671113, 7847.304629357501], +["Chesapeake, VA", 910387521.1544838, 35189.51136561488], +["Elizabeth, NJ", 32102270.022878703, 6238.341106194418], +["Anchorage, AK", 4472575669.8046, 83337.19683677182], +["Davie, FL", 92708520.92681056, 10422.681316881732], +["McAllen, TX", 126411530.57796985, 27575.383980828774], +["McKinney, TX", 163519800.71879953, 19572.96525700693], +["Killeen, TX", 140832951.8240438, 20816.499598916143], +["Oakland, CA", 145712381.7115506, 20696.76766564196], +["Mountain View, CA", 31611594.63491621, 10746.103036195662], +["Amarillo, TX", 262451484.695473, 21406.19925198905], +["Provo, UT", 114705661.94691227, 15925.948185757514], +["Atlanta, GA", 347516269.1341394, 26506.151841457482], +["Montgomery, AL", 421456374.56191427, 20920.29205755097], +["Allentown, PA", 46545880.1484073, 9556.59776630063], +["Mount Pleasant, SC", 120752756.25102511, 18067.365583595943], +["Columbus, GA", 574055020.5433981, 26070.62148068078], +["Buffalo, NY", 106262263.34733091, 15617.700910115995], +["Sacramento, CA", 259733558.8063098, 27609.902989755727], +["Fort Smith, AR", 171159411.52141178, 20710.35051187157], +["Mount Vernon, NY", 11426527.042606609, 5048.823294117959], +["Lakewood, CO", 114292120.1742486, 15989.150751716354], +["Henderson, NV", 280933674.3052185, 25931.148568393706], +["Stamford, CT", 99635557.2801628, 18084.65822827067], +["Bloomington, IN", 60629541.87291775, 11112.9401962698], +["Spokane, WA", 155323186.74857354, 19112.674510275392], +["Kennewick, WA", 73377256.70364779, 9236.924186515891], +["Philadelphia, PA", 365025434.7450253, 29575.483705135273], +["Bellingham, WA", 72506170.37018737, 14218.526434995129], +["Visalia, CA", 94326732.62437938, 11296.363351712873], +["Dallas, TX", 1002389201.235724, 45703.38746696072], +["Antioch, CA", 75288737.86473554, 12137.442766037228], +["Sterling Heights, MI", 95334901.88001123, 10354.82656551851], +["Deerfield Beach, FL", 42267243.74572009, 5952.4204764935075], +["Fishers, IN", 94570806.66734987, 8258.785502547145], +["Cheyenne, WY", 64905267.96616508, 10076.399827071244], +["Murrieta, CA", 87071713.18652694, 14276.607025023079], +["Newport Beach, CA", 67753054.75652517, 11986.287356593803], +["Yakima, WA", 71916435.96291183, 8112.760519654357], +["Dayton, OH", 146822620.49438712, 24374.698428703516], +["Gulfport, MS", 149281538.58992758, 16513.789355647554], +["Long Beach, CA", 132849817.99712364, 16976.085937105105], +["Chico, CA", 85792550.31925525, 14373.959817439758], +["Eugene, OR", 112527434.44525315, 16130.32843766066], +["Pleasanton, CA", 62946579.44628105, 9260.900477407082], +["Everett, WA", 90854101.67540008, 17505.117386551054], +["Fairfield, CA", 97715934.22424519, 16720.91152209924], +["Avondale, AZ", 118942667.8880126, 27042.320382748705], +["Bloomington, MN", 99497552.08204108, 8583.40546046516], +["Beaverton, OR", 48389457.161517166, 13014.832668543517], +["Kenner, LA", 39030244.0198878, 8999.804267756526], +["Milpitas, CA", 35445735.376643494, 7865.499220919536], +["Savannah, GA", 282146035.0614523, 33648.08686334469], +["Vancouver, WA", 128865667.19917196, 12482.482137276624], +["Sunrise, FL", 47584847.24320708, 10168.759582566518], +["Muncie, IN", 70933068.8508594, 10186.33488100368], +["San Francisco, CA", 121736447.34500486, 13818.915331976223], +["Fontana, CA", 110110777.98915584, 16770.99687916988], +["Frisco, TX", 162279846.23019996, 15390.990456400674], +["Chino Hills, CA", 116151482.0680687, 16994.976384331865], +["Norfolk, VA", 151868739.54327404, 16535.901500840846], +["Hillsboro, OR", 62317738.28636107, 9747.094726817122], +["San Bernardino, CA", 154907734.9086812, 20078.63490949696], +["Victorville, CA", 191660703.62894493, 23330.61750169], +["Gary, IN", 130064603.1510892, 13951.962246044477], +["Syracuse, NY", 66375943.07701508, 11325.190217474239], +["Clarksville, TN", 255055825.67497766, 18134.288270394034], +["Lakeland, FL", 193395960.70042235, 24454.57652855733], +["Palatine, IL", 35624731.050356455, 8732.028956496397], +["Seattle, WA", 257986466.0961069, 26550.847468623397], +["Elk Grove, CA", 109614072.56267175, 10164.328830228551], +["Shreveport, LA", 315160521.2001404, 28468.477583028132], +["Ogden, UT", 70134240.3137235, 14010.453495666727], +["Inglewood, CA", 23566839.293793038, 6414.821796924194], +["Pasadena, CA", 60034291.49688121, 14936.234912244066], +["Lawrence, MA", 19248358.729668453, 5174.797171447283], +["Folsom, CA", 62956147.912641115, 9277.081436768509], +["Las Cruces, NM", 199382700.79406014, 21095.88852229422], +["Schaumburg, IL", 50071985.50913443, 10153.31301113897], +["Warren, MI", 89267771.96286967, 10159.478267657618], +["Surprise, AZ", 274931802.69755787, 27348.967545329237], +["Richardson, TX", 74563912.49685393, 9102.364924159876], +["Appleton, WI", 64702217.11623114, 14686.2347260698], +["Livermore, CA", 65601163.45601955, 11427.108096547494], +["Charlotte, NC", 778151668.9973398, 43384.40412044], +["Chicago, IL", 598870383.9793495, 42134.456445036994], +["Billings, MT", 112943337.09102014, 15494.740947631104], +["New Haven, CT", 49954268.30284738, 11563.598835586585], +["Knoxville, TN", 269666746.2403927, 24217.742152906583], +["Alameda, CA", 27885382.651238013, 8752.526601706806], +["Manteca, CA", 46184775.33946612, 9174.38735992951], +["Medford, OR", 67039244.23127689, 12198.968460211068], +["Murfreesboro, TN", 144131322.43394652, 22053.02526267268], +["Scranton, PA", 66198810.491335906, 14541.207125474259], +["Vacaville, CA", 74177089.59128244, 12111.799035044394], +["Santa Monica, CA", 21778261.943565603, 6138.580087797304], +["Suffolk, VA", 1065044416.6857624, 41407.68991378691], +["Rochester Hills, MI", 85311398.6357122, 10185.01274012628], +["Charleston, WV", 84859071.04666862, 13837.238338844905], +["Charleston, SC", 304805909.7663607, 33957.826969334026], +["Corona, CA", 100935560.7072019, 12626.415496444411], +["Lee's Summit, MO", 169744975.77433014, 22485.861063635653], +["Palm Coast, FL", 235568529.71516344, 26570.021348320344], +["Sandy, UT", 59684068.99747784, 9826.271967562632], +["Santa Clarita, CA", 136960763.34557328, 15003.147736396499], +["Memphis, TN", 841230818.1130888, 29930.560917656832], +["Irving, TX", 176219562.63924173, 20179.596534218785], +["Alexandria, VA", 39541220.4654301, 6111.1221890914985], +["Hesperia, CA", 190250303.59346578, 18541.26956364058], +["Bethlehem, PA", 50555147.85487253, 10527.55996934226], +["Napa, CA", 47153094.56758781, 14385.30632544945], +["Aurora, CO", 403186005.76653236, 30718.35150297758], +["Duluth, MN", 177349040.34125116, 25755.263630890942], +["Roanoke, VA", 111450989.0389659, 14007.57848867679], +["Bend, OR", 86209906.10252617, 13860.847191066689], +["Apple Valley, CA", 190907621.30963057, 24225.65028394661], +["Tampa, FL", 306286311.1588018, 38981.09971551443], +["Upland, CA", 40509612.65487394, 7224.180668218518], +["Plantation, FL", 57070411.277413025, 7600.422550167301], +["Colorado Springs, CO", 505693973.0844614, 35546.80384126408], +["Modesto, CA", 96558846.6713323, 21094.385463765597], +["Grand Rapids, MI", 117200455.024391, 16182.691759078898], +["Bellflower, CA", 16023349.159680188, 4996.197429853532], +["Boulder, CO", 67192193.28370771, 14527.057405337458], +["Santa Fe, NM", 119634600.89508778, 18458.80531467489], +["Riverside, CA", 211082790.76158842, 16353.07395253579], +["Palmdale, CA", 275790622.2550165, 16816.42739207769], +["Layton, UT", 57711724.49312341, 8940.578972971196], +["Bolingbrook, IL", 63014953.53151218, 11633.193961434832], +["Mission Viejo, CA", 47007836.67370475, 15026.694766393368], +["Little Rock, AR", 313928345.4047921, 21860.727355772968], +["Santa Ana, CA", 71364262.98089834, 10301.364066189075], +["Bellevue, WA", 94375628.79575746, 13985.852341560925], +["Roseville, CA", 94130218.42663379, 10475.945922826575], +["Columbia, MO", 165016095.14188233, 18462.54330493861], +["Racine, WI", 41005137.2098309, 11493.112811987336], +["Carmel, IN", 125909581.09139155, 8575.919598284761], +["Arlington Heights, IL", 43084094.243159235, 13416.44553656458], +["Hemet, CA", 72068042.17744942, 12166.332169525534], +["High Point, NC", 144644415.8592999, 19258.78407999194], +["San Marcos, CA", 63736813.73107984, 11984.162854933293], +["Lakewood, CA", 24543130.05089996, 5449.40255176097], +["Rockford, IL", 161161755.37279502, 19717.411045901823], +["El Cajon, CA", 37292335.52083333, 7058.962333468051], +["St. Petersburg, FL", 164786560.40209162, 29146.930127100914], +["Las Vegas, NV", 353414529.7526734, 27945.310246651945], +["Pasadena, TX", 115343628.59774755, 20185.86442277], +["Port St. Lucie, FL", 299993214.4128807, 18803.087762060954], +["Cedar Rapids, IA", 187128828.93988135, 23004.601095436425], +["Quincy, MA", 42877727.75319703, 11531.933410909553], +["Miramar, FL", 81467855.92955561, 4295.898706040543], +["El Paso, TX", 665794112.8212899, 42185.99729464523], +["Topeka, KS", 159389215.19420618, 21381.275082283755], +["Akron, OH", 161965180.35313895, 19302.18142637164], +["Edinburg, TX", 97829052.20380215, 22659.729569932544], +["Rancho Cucamonga, CA", 103577815.22130105, 10484.694988993799], +["North Charleston, SC", 195010003.78886002, 18949.001067108824], +["Louisville, KY", 887536027.3564113, 42632.8188644505], +["Carlsbad, CA", 99205739.91156532, 13593.606168891185], +["Redding, CA", 158663000.2961073, 23437.85788416143], +["Wyoming, MI", 64590430.40863624, 10203.43852419287], +["Fort Lauderdale, FL", 92447977.52624184, 14953.572701647507], +["Warner Robins, GA", 92637658.7584049, 15979.377894805177], +["Clearwater, FL", 70505229.97891685, 12753.223031348676], +["Sioux Falls, SD", 191046737.51481017, 16812.99142582782], +["Warwick, RI", 93404631.5888004, 15385.56533213461], +["Bakersfield, CA", 373330172.2557742, 28264.206428515965], +["Miami, FL", 94436739.53528354, 16313.916398281905], +["Lake Charles, LA", 116445968.10857004, 16440.68359771386], +["Troy, MI", 87228316.83545749, 10065.550667814647], +["New Rochelle, NY", 27356919.09872853, 12086.77502196198], +["Stockton, CA", 168119906.30541438, 21299.226570833653], +["Spokane Valley, WA", 98514066.89767279, 12218.445095133415], +["Costa Mesa, CA", 40927103.005330086, 8546.994179421907], +["Grand Prairie, TX", 210639720.0090124, 35772.46385184718], +["Portsmouth, VA", 95638515.84169498, 15429.258291354603], +["Sioux City, IA", 151411408.2851384, 21671.1157651159], +["Peoria, AZ", 462390948.0285476, 45241.00046873826], +["Tempe, AZ", 104631187.25587574, 16042.985661617655], +["Wilmington, DE", 30781363.016926706, 8203.131528520304], +["Westland, MI", 52958008.268298246, 9766.978748159527], +["Mesquite, TX", 119671101.2308798, 18658.052638200534], +["Garland, TX", 148680201.3689532, 17278.427561739532], +["Richmond, CA", 76620764.35919361, 13028.862118495894], +["Fayetteville, NC", 383470228.96085703, 22599.64493179071], +["Albany, GA", 144939924.2783537, 11260.734460960397], +["Chattanooga, TN", 375708399.7618184, 25754.14999244921], +["Baldwin Park, CA", 17719767.88176574, 5783.597878322788], +["Miami Beach, FL", 18767171.3117442, 12071.52181292305], +["St. Joseph, MO", 116156246.19782926, 13807.49549336925], +["Redondo Beach, CA", 15975802.453288553, 8892.085056292704], +["Houston, TX", 1625177074.3106484, 65347.054618184746], +["Temecula, CA", 78343212.71921027, 11853.906971903194], +["Ann Arbor, MI", 75358673.80680929, 11249.63769032106], +["Beaumont, TX", 223227518.9360223, 23956.941124227502], +["Pembroke Pines, FL", 90320030.8674843, 7048.306846943047], +["Springdale, AR", 109487257.12097904, 12124.827682533725], +["Oxnard, CA", 70481711.22121, 15799.750497327517], +["Odessa, TX", 109825650.21917774, 17039.87018663301], +["Brockton, MA", 55765822.2153101, 9387.46530194601], +["Jersey City, NJ", 38720291.856515504, 11349.38017051909], +["St. Paul, MN", 145427621.52886617, 11642.144565796836], +["Deltona, FL", 106874726.3700854, 15883.78194550615], +["Iowa City, IA", 65610343.58861762, 10768.112603419819], +["Anaheim, CA", 131874961.94919606, 9863.351531376777], +["West Valley City, UT", 92165898.14959729, 10657.319427772201], +["Hampton, VA", 138525968.757897, 14471.617324640742], +["Orem, UT", 47427927.89833045, 8579.78913079117], +["Plymouth, MN", 91544113.13805619, 9794.330094838442], +["South Bend, IN", 108580452.8867025, 18141.392615290042], +["Edmond, OK", 228078255.3146762, 12981.986526251989], +["Des Moines, IA", 214104538.4349991, 18877.941326551572], +["Whittier, CA", 38116225.21492862, 11148.313804747979], +["Livonia, MI", 92921092.94835486, 9968.38010471353], +["Milwaukee, WI", 250826848.68409485, 30528.2204660556], +["Auburn, WA", 77405165.51957545, 12571.557665195754], +["Renton, WA", 60957534.62512573, 12954.820623979189], +["Centennial, CO", 75299442.61339408, 8063.492911469569], +["Richmond, VA", 161971041.88415238, 17350.381495264242], +["Norwalk, CA", 25322049.04957091, 5917.88355613905], +["Yuma, AZ", 313881407.4794324, 28068.47736949612], +["Joliet, IL", 164393355.92808434, 18192.616127476416], +["Rock Hill, SC", 94006998.67394231, 16017.281639974244], +["Honolulu, HI", 1561838805.0558693, 50750.24741979128], +["Carrollton, TX", 96727612.6726836, 14901.987906805196], +["Burbank, CA", 45133930.716844454, 8784.77026749422], +["Fullerton, CA", 58245447.83114085, 7839.237150350101], +["Farmington Hills, MI", 86414205.43290152, 10065.345483205341], +["San Jose, CA", 463803867.6791941, 37935.48807837168], +["Round Rock, TX", 89755578.24047355, 11933.726641827097], +["Norman, OK", 491839831.2554452, 22595.135678842744], +["Irvine, CA", 172623476.57692724, 19526.53263592462], +["Sandy Springs, GA", 100342075.09170946, 14813.045417466335], +["Champaign, IL", 58600003.147826836, 11331.719511498159], +["Clifton, NJ", 29512825.776797056, 8842.284563060333], +["Lancaster, CA", 245599960.51283917, 15393.254148335855], +["Bryan, TX", 115656610.45230778, 15726.62899212451], +["Cape Coral, FL", 296768654.4045847, 26995.900577250166], +["Manchester, NH", 90614732.53082307, 18021.737298869597], +["Virginia Beach, VA", 679123753.5397043, 42518.60757702567], +["Somerville, MA", 10645936.585639814, 5012.854006912979], +["Largo, FL", 47953342.89271046, 7502.097579654162], +["Fresno, CA", 291717284.5369908, 27751.978197792196], +["Pawtucket, RI", 23134086.230073716, 4676.185513032966], +["Winston-Salem, NC", 347815514.24982566, 24701.68611666068], +["O'Fallon, MO", 77280927.70621097, 17834.349381062733], +["Redwood City, CA", 53710623.26161152, 11657.353658086162], +["Union City, CA", 50625789.656449206, 8308.75446696634], +["Menifee, CA", 120964860.43938926, 14550.685277052366], +["Loveland, CO", 91858834.19592565, 12981.791451454881], +["Providence, RI", 48663268.433759086, 9925.15514355744], +["Hialeah, FL", 59425576.31246726, 13578.31221819809], +["San Ramon, CA", 46962894.124381624, 8300.8132137631], +["Ontario, CA", 129773948.09493506, 13118.956110874997], +["St. George, UT", 183822517.80378368, 23351.83202218191], +["Glendale, CA", 79409153.21392162, 16522.98971008113], +["Elgin, IL", 98073808.74773648, 14702.569353334875], +["Plano, TX", 186801488.09306085, 14250.460561057287], +["Longmont, CO", 72615825.33372708, 9422.354003608903], +["Jonesboro, AR", 208525010.98361045, 16117.939136552874], +["College Station, TX", 128901338.39199863, 15187.112224352903], +["Dearborn, MI", 63402718.71377407, 8307.437564097292], +["Baltimore, MD", 211110136.687518, 19481.94868916342], +["Springfield, MO", 213418229.5375552, 20494.534080708458], +["Lynn, MA", 29889251.585398607, 7439.299665021594], +["Gainesville, FL", 161842403.40472102, 20146.086506523166], +["Fayetteville, AR", 143057015.65505883, 17746.24884424294], +["Tacoma, WA", 129062273.09195016, 16946.525482792968], +["Burlington, VT", 40074869.857893206, 10441.938809129291], +["New York, NY", 776913085.4440758, 46664.14993544265], +["Simi Valley, CA", 110000962.86151998, 12718.570296349528], +["West Covina, CA", 41698963.317330115, 10090.78305417133], +["Fort Worth, TX", 904643827.3066726, 55425.31043730481], +["Carson, CA", 49173272.43364395, 10415.222257469502], +["Evansville, IN", 115917184.30549382, 13502.042586839483], +["Santa Maria, CA", 60670958.002015, 12588.017704032736], +["Westminster, CO", 88284965.0823576, 16591.205521861386], +["Reading, PA", 26297974.590882696, 8236.381962826019], +["Turlock, CA", 44026196.200300805, 7803.476116963613], +["Greeley, CO", 121435795.84628743, 11508.964038708284], +["Tyler, TX", 140444734.95585826, 18043.049274512596], +["Waco, TX", 262990030.6031047, 23042.872986635277], +["Thousand Oaks, CA", 143304630.07797608, 14002.82372329902], +["Bridgeport, CT", 42300834.787009224, 9637.546565284007], +["Torrance, CA", 53270505.16779522, 11851.458683774323], +["Madison, WI", 245277546.53182447, 19369.644081465354], +["Waukegan, IL", 62138628.30700616, 13720.095669642027], +["Arlington, TX", 258882114.35651392, 25542.615771104938], +["Lewisville, TX", 110304414.20408913, 12814.711738056434], +["New Bedford, MA", 52444426.815606356, 16981.554938813995], +["Garden Grove, CA", 46385437.661223896, 7897.662535813339], +["Lynwood, CA", 12699196.838815562, 4541.990959445397], +["Canton, OH", 66186454.07021776, 12965.725606070775], +["Baton Rouge, LA", 205797544.73477614, 21975.95476585528], +["Independence, MO", 203032728.39947346, 13604.491606613963], +["Lansing, MI", 95075912.84735177, 13626.215188595805], +["Green Bay, WI", 120282205.7150592, 11423.118838021755], +["Evanston, IL", 20120779.76282729, 5851.2159887481075], +["Los Angeles, CA", 1228195507.831013, 70446.16016514058], +["Federal Way, WA", 58102341.94055346, 11173.62766180987], +["West Jordan, UT", 84154809.99306782, 8109.723041062284], +["Pittsburgh, PA", 151203264.28529465, 15388.337361742688], +["Downey, CA", 32649897.464175254, 7850.6045459294455], +["Cicero, IL", 15229016.208693285, 4946.300268321804], +["South Gate, CA", 18975953.081086416, 6170.480762634442], +["League City, TX", 137677161.4779727, 14562.62714877001], +["Salt Lake City, UT", 289539381.92303646, 17042.158644033836], +["Phoenix, AZ", 1345428439.5495973, 69921.36615781618], +["Roswell, GA", 109161037.14038236, 16260.398126786313], +["Huntington Beach, CA", 71139699.73492898, 14099.57221077618], +["Corpus Christi, TX", 407086322.54507345, 38617.68749878332], +["Cambridge, MA", 18439488.49328066, 5741.602179339344], +["Glendale, AZ", 156215977.890462, 21122.6556861747], +["Davenport, IA", 168767003.7579641, 17662.484993688828], +["Boca Raton, FL", 77666371.29397109, 11577.075189719442], +["New Britain, CT", 34860420.9155217, 7881.145395990154], +["Gresham, OR", 60610913.2151143, 11107.360139765036], +["Lauderhill, FL", 22273427.05799784, 8098.481274772797], +["Santa Clara, CA", 47727003.10684869, 10627.817377094347], +["Oceanside, CA", 109115935.49036966, 16403.106069162866], +["Lake Forest, CA", 46472304.46795488, 11691.846104051598], +["Asheville, NC", 117195316.92338851, 26082.492685450652], +["Compton, CA", 26024008.556003362, 6640.524455621662], +["Lynchburg, VA", 128913590.63869417, 15164.816115926775], +["Danbury, CT", 114424718.57523526, 15238.288425083869], +["El Monte, CA", 24901263.280347694, 6621.965486241159], +["Paterson, NJ", 22595812.776308566, 5868.486183600654], +["Salem, OR", 125731792.44227253, 17952.44525427886], +["Brownsville, TX", 380603133.6999252, 41979.88156456974], +["Detroit, MI", 360190957.2171271, 21694.619836946295], +["Rochester, NY", 95176691.1784165, 18183.20890046319], +["Birmingham, AL", 386916778.64116365, 32751.862809225568], +["Austin, TX", 794358036.1988915, 44710.31661937267], +["Santa Barbara, CA", 50991347.46845491, 7484.009670940266], +["Rio Rancho, NM", 269136968.1901309, 23814.351777786604]]; function makePlanet(name, diameter, mass, image) { return { @@ -964,11 +964,11 @@ function makeGIS(data, category) { } } }); - - return makeEntity( {name: category }, views); + + return makeEntity({ name: category }, views); } } - + } function makeNaturals() { const results = []; @@ -1010,12 +1010,12 @@ function makeNaturals() { results.push(makeHeightWeight( [ - ["Sun", 2*1, "solarradii", 1, "solarmasses", "./media/naturals/planet-generic.svg"], + ["Sun", 2 * 1, "solarradii", 1, "solarmasses", "./media/naturals/planet-generic.svg"], ["White Dwarf", 14000, "km", 1e30, "kg", "./media/naturals/planet-generic.svg"], - ["Polaris", 2*37.5, "solarradii", 5.4, "solarmasses", "./media/naturals/planet-generic.svg"], - ["Sun (Red Giant)", 2*256, "solarradii", 1, "solarmasses", "./media/naturals/planet-generic.svg"], - ["Betelgeuse", 2*887, "solarradii", 11.6, "solarmasses", "./media/naturals/planet-generic.svg"], - ["VY Canis Majoris", 2*1420, "solarradii", 17, "solarmasses", "./media/naturals/planet-generic.svg"], + ["Polaris", 2 * 37.5, "solarradii", 5.4, "solarmasses", "./media/naturals/planet-generic.svg"], + ["Sun (Red Giant)", 2 * 256, "solarradii", 1, "solarmasses", "./media/naturals/planet-generic.svg"], + ["Betelgeuse", 2 * 887, "solarradii", 11.6, "solarmasses", "./media/naturals/planet-generic.svg"], + ["VY Canis Majoris", 2 * 1420, "solarradii", 17, "solarmasses", "./media/naturals/planet-generic.svg"], ], "Stars", "", diff --git a/presets/objects.js b/presets/objects.js index cb500a9a..f6b8f4af 100644 --- a/presets/objects.js +++ b/presets/objects.js @@ -1,6 +1,3 @@ - - - function makeObject(name, viewInfo) { views = {}; @@ -42,13 +39,13 @@ function addShoeView(object, name, points) { } } -function makeHeight(info, category, prefix="", type="objects") { +function makeHeight(info, category, prefix = "", type = "objects") { const views = {}; info.forEach(object => { let src; - + // this lets us provide our own source if needed // useful for reusing existing art if (object[3]) { @@ -73,7 +70,7 @@ function makeHeight(info, category, prefix="", type="objects") { } } -function makeHeightWeight(info, category, prefix="", type="objects") { +function makeHeightWeight(info, category, prefix = "", type = "objects") { const views = {}; info.forEach(object => { let src; @@ -196,7 +193,7 @@ function makeObjects() { "Shot Glass", { glass: { - height: math.unit(2 + 3/8, "inches"), + height: math.unit(2 + 3 / 8, "inches"), mass: math.unit(75, "g"), image: { source: "./media/objects/shot-glass.svg" }, name: "Bottle" @@ -455,15 +452,15 @@ function makeObjects() { } ) }) - + results.push(makeHeight( [ ["king", 4, "inches"], - ["queen", 351/407*4, "inches"], - ["bishop", 340/407*4, "inches"], - ["knight", 309/407*4, "inches"], - ["rook", 271/407*4, "inches"], - ["pawn", 197/407*4, "inches"], + ["queen", 351 / 407 * 4, "inches"], + ["bishop", 340 / 407 * 4, "inches"], + ["knight", 309 / 407 * 4, "inches"], + ["rook", 271 / 407 * 4, "inches"], + ["pawn", 197 / 407 * 4, "inches"], ], "Chess Pieces", "chess_" @@ -556,7 +553,7 @@ function makeObjects() { name: value.name, rename: true } - + if (value.mass) { views[key].attributes.mass = { name: "Mass", @@ -566,7 +563,7 @@ function makeObjects() { }; } }); - + return makeEntity({ name: "Strand" }, views); } }) @@ -586,13 +583,13 @@ function makeObjects() { "cell_" )) - + results.sort((b1, b2) => { e1 = b1.constructor(); e2 = b2.constructor(); return -math.subtract(e1.views[e1.defaultView].height, e2.views[e2.defaultView].height).value; }); - + return results; } diff --git a/presets/scenes.js b/presets/scenes.js index 07be4120..3f49a50d 100644 --- a/presets/scenes.js +++ b/presets/scenes.js @@ -1,11 +1,11 @@ const scenes = {}; scenes["Default"] = () => { - importScene({"entities":[{"name":"Fen","scale":1,"view":"back","x":"0.5152113970588236","y":"1"}],"world":{"height":2.9053707516337908,"unit":"meters"}}); + importScene({ "entities": [{ "name": "Fen", "scale": 1, "view": "back", "x": "0.5152113970588236", "y": "1" }], "world": { "height": 2.9053707516337908, "unit": "meters" } }); fitWorld(true); } scenes["Demo"] = () => { - importScene({"entities":[{"name":"Fen","scale":13.37613697164259,"view":"back","x":"0.4739888072901602","y":"1"},{"name":"Cars","scale":1,"view":"Toyota Prius C (Side)","x":"0.5446325587240624","y":"1"},{"name":"Flagpole","scale":1,"view":"medium","x":"0.6884494749664603","y":"1"},{"name":"Aircraft","scale":1,"view":"Cessena 172 (Side)","x":"0.5554263161666061","y":"0.22135128477620036"},{"name":"Bus","scale":1,"view":"side","x":"0.3384726446176792","y":"1"},{"name":"Leopard 2 Rev. 1","scale":1,"view":"side","x":"0.6168929701770606","y":"1"},{"name":"Trees","scale":1,"view":"sycamore","x":"0.19678198200160846","y":"1"},{"name":"18-Wheeler","scale":1,"view":"side","x":"0.7563502890715608","y":"1"},{"name":"Cars","scale":1,"view":"Toyota Prius C (Top)","x":"0.5363900938385269","y":"0.7215473541048467"},{"name":"Human","scale":1,"view":"woman1","x":"0.4756975717747481","y":"1"},{"name":"Human","scale":1,"view":"man1","x":"0.47400075247875356","y":"0.2538019287833828"}],"world":{"height":38.5,"unit":"meters"}}) + importScene({ "entities": [{ "name": "Fen", "scale": 13.37613697164259, "view": "back", "x": "0.4739888072901602", "y": "1" }, { "name": "Cars", "scale": 1, "view": "Toyota Prius C (Side)", "x": "0.5446325587240624", "y": "1" }, { "name": "Flagpole", "scale": 1, "view": "medium", "x": "0.6884494749664603", "y": "1" }, { "name": "Aircraft", "scale": 1, "view": "Cessena 172 (Side)", "x": "0.5554263161666061", "y": "0.22135128477620036" }, { "name": "Bus", "scale": 1, "view": "side", "x": "0.3384726446176792", "y": "1" }, { "name": "Leopard 2 Rev. 1", "scale": 1, "view": "side", "x": "0.6168929701770606", "y": "1" }, { "name": "Trees", "scale": 1, "view": "sycamore", "x": "0.19678198200160846", "y": "1" }, { "name": "18-Wheeler", "scale": 1, "view": "side", "x": "0.7563502890715608", "y": "1" }, { "name": "Cars", "scale": 1, "view": "Toyota Prius C (Top)", "x": "0.5363900938385269", "y": "0.7215473541048467" }, { "name": "Human", "scale": 1, "view": "woman1", "x": "0.4756975717747481", "y": "1" }, { "name": "Human", "scale": 1, "view": "man1", "x": "0.47400075247875356", "y": "0.2538019287833828" }], "world": { "height": 38.5, "unit": "meters" } }) fitWorld(true); } @@ -41,12 +41,12 @@ function makeSlice(min, max) { const entity = x.constructor(); return math.compare(entity.views[entity.view].height, min) == 1 && math.compare(entity.views[entity.view].height, max) != 1 }); - + characters.forEach(character => { const entity = character.constructor(); displayEntity(entity, entity.view, 0, 1); }); - + arrangeEntities(getSortedEntities()); fitWorld(true); } @@ -129,7 +129,7 @@ function makeOwnerScene(owners) { console.log(entity) displayEntity(entity, entity.view, 0, 1); }); - + arrangeEntities(getSortedEntities()); fitWorld(true); } @@ -160,7 +160,7 @@ function makeOwnerSceneViews(owners) { console.log(entity) displayEntity(entity, entity.view, 0, 1); }); - + arrangeEntities(getSortedEntities()); fitWorld(true); } @@ -183,18 +183,18 @@ scenes["Neopuc"] = () => { }).reduce((size, entity) => { entity.views[entity.view].height = math.unit(100 * Math.sqrt(size) * (entity.name == "Ilisha Devya" ? 2 : 1), "meters"); displayEntity(entity, entity.view, 0, 1); - return size+1; + return size + 1; }, 1) - + arrangeEntities(getSortedEntities()); fitWorld(true); } scenes["Fidverse"] = () => { makeOwnerSceneViews(["fidchell", "cam"])(); - document.querySelector("#entity-" + (entityIndex-1)).dataset.x = 0.5; - document.querySelector("#entity-" + (entityIndex-2)).dataset.x = 0.25; - document.querySelector("#entity-" + (entityIndex-3)).dataset.x = 0.75; + document.querySelector("#entity-" + (entityIndex - 1)).dataset.x = 0.5; + document.querySelector("#entity-" + (entityIndex - 2)).dataset.x = 0.25; + document.querySelector("#entity-" + (entityIndex - 3)).dataset.x = 0.75; updateSizes(); fitWorld(true, 1); } \ No newline at end of file diff --git a/presets/species.js b/presets/species.js index c9bb8e4a..b520bfb1 100644 --- a/presets/species.js +++ b/presets/species.js @@ -28,7 +28,7 @@ speciesMakers["Synx"] = () => { name: "Synx", image: { source: "./media/species/synx/synx.svg", - extra: 8.06/6.6, + extra: 8.06 / 6.6, bottom: 0.05 } }, @@ -38,13 +38,13 @@ speciesMakers["Synx"] = () => { name: "Weeper", image: { source: "./media/species/synx/weeper.svg", - extra: 8.04/7.5, + extra: 8.04 / 7.5, bottom: 0.05 } }, }, [ - + ] ); diff --git a/presets/vehicles.js b/presets/vehicles.js index 70fd9f77..9d42c1d6 100644 --- a/presets/vehicles.js +++ b/presets/vehicles.js @@ -68,8 +68,8 @@ function makeAircraft() { ], - sides = {} - const sorted = options.sort((a,b) => a[1]-b[1]) + sides = {} + const sorted = options.sort((a, b) => a[1] - b[1]) sorted.forEach(plane => { sides[plane[0] + " (Side)"] = { @@ -102,23 +102,23 @@ function makeAircraft() { entity.sizes.push({ name: "1:72", - height: math.unit(sorted[0][2]/72, "meters") + height: math.unit(sorted[0][2] / 72, "meters") }); entity.sizes.push({ name: "1:24", - height: math.unit(sorted[0][2]/24, "meters") + height: math.unit(sorted[0][2] / 24, "meters") }); entity.sizes.push({ name: "1:16", - height: math.unit(sorted[0][2]/16, "meters") + height: math.unit(sorted[0][2] / 16, "meters") }); entity.sizes.push({ name: "1:8", - height: math.unit(sorted[0][2]/8, "meters") + height: math.unit(sorted[0][2] / 8, "meters") }); entity.sizes.push({ name: "1:4", - height: math.unit(sorted[0][2]/4, "meters") + height: math.unit(sorted[0][2] / 4, "meters") }); entity.sizes.push({ name: "1", @@ -137,7 +137,7 @@ function makeCars() { ["Ford F-150", 5.89, 1.92, 1950, 1, 1, 1] ] sides = {} - const sorted = options.sort((a,b) => a[1]-b[1]) + const sorted = options.sort((a, b) => a[1] - b[1]) sorted.forEach(car => { sides[car[0] + " (Front)"] = { @@ -147,7 +147,7 @@ function makeCars() { mass: math.unit(car[3], "kg"), image: { source: "./media/vehicles/cars/car_" + car[0].replace(/ /g, "-").toLowerCase() + "-front.svg", extra: car[4] } }; - + sides[car[0] + " (Side)"] = { name: car[0] + " (Side)", rename: true, @@ -169,23 +169,23 @@ function makeCars() { entity.sizes.push({ name: "1:72", - height: math.unit(sorted[0][2]/72, "meters") + height: math.unit(sorted[0][2] / 72, "meters") }); entity.sizes.push({ name: "1:24", - height: math.unit(sorted[0][2]/24, "meters") + height: math.unit(sorted[0][2] / 24, "meters") }); entity.sizes.push({ name: "1:16", - height: math.unit(sorted[0][2]/16, "meters") + height: math.unit(sorted[0][2] / 16, "meters") }); entity.sizes.push({ name: "1:8", - height: math.unit(sorted[0][2]/8, "meters") + height: math.unit(sorted[0][2] / 8, "meters") }); entity.sizes.push({ name: "1:4", - height: math.unit(sorted[0][2]/4, "meters") + height: math.unit(sorted[0][2] / 4, "meters") }); entity.sizes.push({ name: "1", @@ -212,7 +212,7 @@ function makeBuses() { mass: math.unit(bus[3], "kg"), image: { source: "./media/vehicles/buses/bus_" + bus[0].replace(/ /g, "-").toLowerCase() + "-front.svg", extra: bus[4] } }; - + sides[bus[0] + " (Side)"] = { name: bus[0] + " (Side)", rename: true, @@ -234,23 +234,23 @@ function makeBuses() { entity.sizes.push({ name: "1:72", - height: math.unit(options[0][2]/72, "meters") + height: math.unit(options[0][2] / 72, "meters") }); entity.sizes.push({ name: "1:24", - height: math.unit(options[0][2]/24, "meters") + height: math.unit(options[0][2] / 24, "meters") }); entity.sizes.push({ name: "1:16", - height: math.unit(options[0][2]/16, "meters") + height: math.unit(options[0][2] / 16, "meters") }); entity.sizes.push({ name: "1:8", - height: math.unit(options[0][2]/8, "meters") + height: math.unit(options[0][2] / 8, "meters") }); entity.sizes.push({ name: "1:4", - height: math.unit(options[0][2]/4, "meters") + height: math.unit(options[0][2] / 4, "meters") }); entity.sizes.push({ name: "1", @@ -284,23 +284,23 @@ function makeVehicleGroup(info, name, prefix) { entity.sizes.push({ name: "1:72", - height: math.unit(math.divide(defaultHeight,72)) + height: math.unit(math.divide(defaultHeight, 72)) }); entity.sizes.push({ name: "1:24", - height: math.unit(math.divide(defaultHeight,24)) + height: math.unit(math.divide(defaultHeight, 24)) }); entity.sizes.push({ name: "1:16", - height: math.unit(math.divide(defaultHeight,16)) + height: math.unit(math.divide(defaultHeight, 16)) }); entity.sizes.push({ name: "1:8", - height: math.unit(math.divide(defaultHeight,8)) + height: math.unit(math.divide(defaultHeight, 8)) }); entity.sizes.push({ name: "1:4", - height: math.unit(math.divide(defaultHeight,4)) + height: math.unit(math.divide(defaultHeight, 4)) }); return entity; @@ -336,7 +336,7 @@ function makeVehicles() { { side: { name: "Side", - height: math.unit(883*1114/4250, "feet"), + height: math.unit(883 * 1114 / 4250, "feet"), image: { source: "./media/vehicles/titanic.svg" }, }, sideVertical: { @@ -398,22 +398,22 @@ function makeVehicles() { } ) }); - + results.push({ name: "Aircraft", constructor: () => makeAircraft() }); - + results.push({ name: "Cars", constructor: () => makeCars() }); - + results.push({ name: "Buses", constructor: () => makeBuses() }); - + results.push({ name: "Trains", constructor: () => makeVehicleGroup([ @@ -437,23 +437,23 @@ function makeVehicles() { name: "3250 Cubic Ft Hopper", mass: math.unit(52000, "lbs"), sides: { - "Side": { height: math.unit(15 + 3/12, "feet") }, - "Front": { height: math.unit(15 + 3/12, "feet") }, + "Side": { height: math.unit(15 + 3 / 12, "feet") }, + "Front": { height: math.unit(15 + 3 / 12, "feet") }, } }, { name: "28600 Gallon Tank Car", mass: math.unit(93000, "lbs"), sides: { - "Side": { height: math.unit(15 + 5.7/12, "feet") }, - "Front": { height: math.unit(15 + 5.7/12, "feet") }, + "Side": { height: math.unit(15 + 5.7 / 12, "feet") }, + "Front": { height: math.unit(15 + 5.7 / 12, "feet") }, } } ], - "Trains", - "train") - }); - + "Trains", + "train") + }); + results.push({ name: "Warships", constructor: () => makeVehicleGroup([ @@ -512,8 +512,8 @@ function makeVehicles() { } }, ], - "Warships", - "") + "Warships", + "") }); return results;