Explorar el Código

Move planets to new category; add states; add Gateway Arch; add new area

units
tags/v0.0.6
Fen Dweller hace 5 años
padre
commit
330972311f
Se han modificado 17 ficheros con 300 adiciones y 31 borrados
  1. +1
    -0
      macrovision.html
  2. +5
    -1
      macrovision.js
  3. +21
    -0
      media/LICENSES.md
  4. +10
    -0
      media/buildings/gateway-arch.svg
  5. +37
    -0
      media/naturals/alaska.svg
  6. +23
    -0
      media/naturals/california.svg
  7. +12
    -0
      media/naturals/colorado.svg
  8. +22
    -0
      media/naturals/florida.svg
  9. +19
    -0
      media/naturals/maine.svg
  10. +15
    -0
      media/naturals/montana.svg
  11. +19
    -0
      media/naturals/new-york.svg
  12. +0
    -0
      media/naturals/planet-generic.svg
  13. +0
    -0
      media/naturals/saturn.svg
  14. +26
    -0
      media/naturals/texas.svg
  15. +9
    -0
      presets/buildings.js
  16. +81
    -0
      presets/naturals.js
  17. +0
    -30
      presets/objects.js

+ 1
- 0
macrovision.html Ver fichero

@@ -10,6 +10,7 @@
<script src="presets/buildings.js"></script>
<script src="presets/characters.js"></script>
<script src="presets/objects.js"></script>
<script src="presets/naturals.js"></script>
<script src="presets/vehicles.js"></script>
<script src="macrovision.js"></script>
<meta name="theme-color" content="#000000" />


+ 5
- 1
macrovision.js Ver fichero

@@ -24,7 +24,10 @@ const unitChoices = {
],
area: [
"cm^2",
"meters^2"
"meters^2",
"kilometers^2",
"acres",
"miles^2"
],
mass: [
"kilograms"
@@ -778,6 +781,7 @@ function prepareEntities() {
availableEntities["buildings"] = makeBuildings();
availableEntities["characters"] = makeCharacters();
availableEntities["objects"] = makeObjects();
availableEntities["naturals"] = makeNaturals();
availableEntities["vehicles"] = makeVehicles();

availableEntities["characters"].sort((x,y) => {


+ 21
- 0
media/LICENSES.md Ver fichero

@@ -19,6 +19,7 @@ https://commons.wikimedia.org/wiki/File:TallestBuildings.svg
* house.svg
* mobile-home.svg
* mailbox.svg
* gateway-arch.svg

# Characters

@@ -311,6 +312,26 @@ http://www.furaffinity.net/view/18577161/

* back.svg

# Naturals

**Self-created**

* planet-generic.svg
* saturn.svg

**Theshibboleth [CC BY-SA (http://creativecommons.org/licenses/by-sa/3.0/)]**

https://commons.wikimedia.org/wiki/File:Blank_US_Map_(states_only).svg

* alaska.svg
* california.svg
* colorado.svg
* florida.svg
* maine.svg
* montana.svg
* new-york.svg
* texas.svg

# Objects

**Self-created**


+ 10
- 0
media/buildings/gateway-arch.svg Ver fichero

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 323.43 340.53" style="enable-background:new 0 0 323.43 340.53;" xml:space="preserve">
<style type="text/css">
.st0{stroke:#000000;stroke-miterlimit:10;}
</style>
<path class="st0" d="M0.54,340.02c0,0,26.31-339.52,160.18-339.52s162.17,338.53,162.17,338.53h-26.75
c0,0-35.67-317.72-135.41-317.72S29.82,339.86,29.82,339.86L0.54,340.02z"/>
</svg>

+ 37
- 0
media/naturals/alaska.svg Ver fichero

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 209.3 155.4" style="enable-background:new 0 0 209.3 155.4;" xml:space="preserve">
<style type="text/css">
.st0{stroke:#A9A9A9;stroke-width:2;}
</style>
<path id="AK" d="M152.1,20.2l-0.3,85.4l1.6,1l3.1,0.2l1.5-1.1h2.6l0.2,2.9l7,6.8l0.5,2.6l3.4-1.9l0.6-0.2l0.3-3.1l1.5-1.6l1.1-0.2
l1.9-1.5l3.1,2.1l0.6,2.9l1.9,1.1l1.1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.7-3.1h1.1l3.6,2.4l1.9,2.1l-0.5,1.1l0.6,1.1l1.6-1.6l3.9,0.3l0.3,3.7l1.9,1.5l7.1,0.6l6.3,4.2l1.5-1l5.2,2.6l2.1-0.6
l1.9-0.8l4.8,1.9L152.1,20.2z M37,49.1l2.1,5.3l-0.2,1L36,55.1l-1.8-4l-1.8-1.5H30L29.8,47l1.8-2.4l1.1,2.4l1.5,1.5L37,49.1z
M34.4,82.6l3.7,0.8l3.7,1l0.8,1L41,89.1l-3.1-0.2l-3.4-3.6L34.4,82.6z M13.7,68.5l1.1,2.6l1.1,1.6l-1.1,0.8l-2.1-3.1v-1.9H13.7z
M0,141.6l3.4-2.3l3.4-1l2.6,0.3l0.5,1.6l1.9,0.5l1.9-1.9l-0.3-1.6l2.7-0.6l2.9,2.6l-1.1,1.8l-4.4,1.1l-2.7-0.5l-3.7-1.1L2.7,142
l-1.6,0.3L0,141.6z M48.9,137.1l1.6,1.9l2.1-1.6l-1.5-1.3L48.9,137.1z M51.8,140.1l1.1-2.3l2.1,0.3l-0.8,1.9h-2.4L51.8,140.1z
M75.4,138.2l1.5,1.8l1-1.1l-0.8-1.9L75.4,138.2z M84.2,125.7l1.1,5.8l2.9,0.8l5-2.9l4.4-2.6l-1.6-2.4l0.5-2.4l-2.1,1.3l-2.9-0.8
l1.6-1.1l1.9,0.8l3.9-1.8l0.5-1.5l-2.4-0.8l0.8-1.9l-2.7,1.9l-4.7,3.6l-4.8,2.9L84.2,125.7z M126.5,105.9l2.4-1.5l-1-1.8l-1.8,1
L126.5,105.9z">
<title>Alaska</title>
</path>
<path id="frames" class="st0" d="M308.06,261.22 M57.06,93.22"/>
</svg>

+ 23
- 0
media/naturals/california.svg Ver fichero

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 179.85 208.12" style="enable-background:new 0 0 179.85 208.12;" xml:space="preserve">
<style type="text/css">
.st0{stroke:#A9A9A9;stroke-width:2;}
</style>
<path id="CA" d="M158.61,204.26l-19.71,2.64l-10.04,1.22l-0.96-1.6l-2.5-9.06l-1.14-3l-3.62-3.36l-1.38-2l-4.88-3.01l-4.05-3.76
l-2.66,0.53l-3.3,0.08l-0.56-0.88l1.29-0.98l-1.43-2.92l-2-1.62l-4.84,0.51l-4.32-0.99l-1.67-1.92l-3.78-3.93l-3.62-2.22l-2.8,0.77
l-4.32-0.99l-4.82-0.54l-4.18,0.64l-3.03-1.96l-0.02-1.96l-0.16-7.32l0.27-2.04l-0.64-2.31l-1.81-0.54l-1.25-2.66l-2.14-2.11
l-4.82-4.69l-2.08-2.64l-2.7-4.13l-2.95-4.68l-4.26-3.39l-1.25-2.66l-0.27-3.97l1.06-0.29l1.6-2.1l0.1-3.76l-1.68-2.34l-2.74,0.24
l-2.52-2l-3.01-3.01l-2.38-7.85l0.07-1.99l-0.03-2.38l-0.16-2.45l-7.17-4.56l-0.56-2.02l0.16-0.56l-0.56-3.16l-2.32-3.51l-3.49-4.01
l-3.8-3.62L10,68.11l-0.02-3.83l-0.97-5.75l0.91-3.47l-1.44-6.35l-2.02-3.18L3.8,41.91l-3.72-3.33L0,35.29l0.33-4.45l1.52-1.25
l0-1.14l2.3-3.33l1.87-12.76L4.24,5.17L4.56,0L45,1.07l26.43-0.45l0.62,32.3l0.46,34.21l17.29,15.14l57.22,48.83l23.43,20.61
l0.44,3.09l4.08,4.27l2.5,4.91l1.36,1.18l0.83,0.39l0.18,1.4l-1.08,1.34l-2.85,2.45l-1.27,2.53l-0.6,4.21l0.77,4.66l-1.84,3.1
l-1.92,1.67l1.55,6l-0.07,1.99l1.42,1.37l2.97-0.51l0.04,1.65l-0.82,2.3l-3.6,1.62L158.61,204.26z M74.36,176.8l1.65,1.1l0.15,1.31
l-3.11,0.76l-0.9-1l-0.98-1.29L74.36,176.8z M76.19,176.29l1-0.9l4.03,1.07l3.31,0.33l-0.71,0.82l-4.39,1.01l-1.97-1.12
L76.19,176.29z M101.41,189.87l2.35,1.74l1.04,0.75l1.61,0.18l0.18-1.61l-1.44-1.47l-3.14-1.21l-1.01,0.49l0.32,1.16L101.41,189.87z
M102.38,198.63l2.59,2.61l1.66,1.51l-1.39,0.59l-1.57-0.81c0,0-1.07-1.26-1.18-1.65l-0.59-2.12L102.38,198.63z">
<title>California</title>
</path>
<path id="frames" class="st0" d="M409.36,52.82 M158.36-115.18"/>
</svg>

+ 12
- 0
media/naturals/colorado.svg Ver fichero

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 121.09 87.89" style="enable-background:new 0 0 121.09 87.89;" xml:space="preserve">
<style type="text/css">
.st0{stroke:#A9A9A9;stroke-width:2;}
</style>
<path id="CO" d="M118.04,0.37L81.87,0.54L2.31,0l0.05,22.21L0.5,73.06L0,86.88l34.22,0.43l37.75,0.58l34.83-0.53l14.29-0.85
L118.04,0.37z">
<title>Colorado</title>
</path>
</svg>

+ 22
- 0
media/naturals/florida.svg Ver fichero

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 153.26 136.79" style="enable-background:new 0 0 153.26 136.79;" xml:space="preserve">
<style type="text/css">
.st0{stroke:#A9A9A9;stroke-width:2;}
</style>
<path id="FL" d="M111.9,2.08l-5.15-1.03L106,1.81l1.22,4.49l-0.73,5.16l-4.03-1.26l-0.02-2.81l-4.09-0.26L93.02,7.5L60.56,7.34
L52.4,6.53l-1.59-1.8l-2.23-4.35L42.69,0l-6.62,0.08L0.48,2.04L0,4.81l1.5,1.7l2.77,2.18l-0.23,8.4l3.33-0.39l6.12-1.72l6.02-0.12
l4.43-0.32l7.47,2.28l7.84,4.4l1.5,1.6l2.82,1.28l1.48,2l0.13,2.71l3.28-1.1l3.89,0.25l3.71-1.67l3.92-3.36l3.08,0.4l0.57-1.07
l-0.74-1.05l0.32-1.88l4.04-0.55l2.59,0.16l2.8,1.68l4.1,1.76l2.16,3.84l2.63,1.17l0.88,3.46l3.29,1.81l1.43,2.7L89,36.1l5.11,1.63
l1.1,3.18l2.76,3.88l-0.6,9.48l-1.79,4.6l0.13,2.71l0.99,4.87l1.54,4.11l0.83-0.45l1.78-4.4l-2.53-1.16l-0.26-0.62l1.63-0.5
l4.43,1.28l0.1,1.61l-3.54,5.29l-2.25,2.26l3.36,3.92l2.4,3.26l2.56,5.47l2.65,4.08l1.78,5.12l1.78,0.41l1.73-1.99l1.73,1.21
l2.34,4.16l0.37,3.63l2.82,4.59l0.88-1.25l3.87,0.55l3.45,2.52l3.06,5.4l0.58,3.44l0.12,2.91l1.03,1.07l1.27,0.58l2.46-0.85l1.6-1.5
l3.9,0.05l3.19-1.3l2.9-3.02l-0.38-1.93l-0.15-2.41l0.72-1.86l-0.18-1.92l2.48-1.15l0.51-3.37l-0.48-1.83l0.26-12.01l-0.82-7.67
l-3.97-8.47l-3.23-6.02l-2.26-5.45l-2.71-3.08l-2.43-7.57l0.79-1.35l1.18-1.23l-1.41-3l-3.76-3.95l-4.44-5.79l-3.29-6.52l-4.7-9.72
l-3.08-9.91l-1.83-7.43L111.9,2.08z M121.17,135.63l2.43-0.45l1.31-0.12l1.64-2.2l2.4-1.45l1.27,0.58l1.68,0.41l0.33,1.12
l-3.57,0.98l-4.29,1.23l-2.37,1.05L121.17,135.63z M134.96,131.5l1.13,1.17l2.83-1.93l5.55-3.86l3.94-3.66l2.91-6.43l1.11-1.63
l0.41-3.38l-0.73,0.45l-1.18,2.73l-1.79,4.5l-3.53,5.09l-4.66,3.91l-3.51,1.68L134.96,131.5z">
<title>Florida</title>
</path>
</svg>

+ 19
- 0
media/naturals/maine.svg Ver fichero

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 63.07 95.02" style="enable-background:new 0 0 63.07 95.02;" xml:space="preserve">
<style type="text/css">
.st0{stroke:#A9A9A9;stroke-width:2;}
</style>
<path id="ME" d="M1.59,46.74l1.32,0.82l0.76-2.49l2.37-5.03l3.86-3.73l2.6-3.39l-1.11-2.85l1.76-5.74l1.06-0.72l1.55-2.35l0.25-1.49
l1.21-4.65l3.13-4.06l5.38-7.66L28.96,0l1.24,0.38l1.18,0.57L31.07,2l0.57,2.58l2.41,1.36l1-0.53l0.29-0.96l4.67-1.6l2.25-1.19
l1.38,0.63l5.04,4.05l1.52,1.51l-0.04,31.25l5.74,1.76l0.21,2.05l-1.21,4.65l2.1,3.05l0.76,0.23l0.34-0.42l-0.16-1.2l2.82,0.34
l1.2,2.56l1.12,4.21l-0.56,1.82l-3.38,3.88l-1.99,0.02l-4.16,1.97l-6.2,3.86l-1.24-0.38c-0.57-0.18-0.34-2.3-0.34-2.3l-1.78-0.34
l-1.4,1.14l-2.73,0.73l-1.4,1.14l1.09,1.9l-0.65,0.43l-1.27,2.44l-1.76-0.75l0.47-1.53l0.09-1.33l-1.52-0.15l-0.79-3.59l-2.39,0.63
l0.8,1.81l-0.03,1.14l-1.15,1.01l-0.62,3.05l-0.28,1.59l-2.29,2.02l-2.92-0.37l-1.14,2.69l-5.97,1.41l-1.39,0.1l-1.09-1.9
l-4.02,2.54l0.02,3.35l-1.81,0.8l-1.48,4.15l-2.89,5.7l-1.84-1.5l0.43-3.11L0,88.19l0.54-2.45L0.3,46.52L1.59,46.74z M31.93,72.33
l1.87-1l1.02,1.46l-0.13,2.47l-1.89,0.36L31.93,72.33z M40.07,68.65l1.17,2.34c0,0,1.21,0.48,1.3,0.19
c0.09-0.29,0.78-1.85,0.78-1.85l1.09-0.5l-0.24-1.96l-2.12,0.08L40.07,68.65z">
<title>Maine</title>
</path>
</svg>

+ 15
- 0
media/naturals/montana.svg Ver fichero

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 179.67 103.96" style="enable-background:new 0 0 179.67 103.96;" xml:space="preserve">
<style type="text/css">
.st0{stroke:#A9A9A9;stroke-width:2;}
</style>
<path id="MT" d="M177.2,18.64l1.86,57.35l0.6,15.24l-59.46,0.81l-49.5-0.94l0.01,11.29l-2.1-1.45l-0.71-2.43l-1.53-1.72l-3.09,1.9
l-0.38,2.57l-2.24,0.58l-3.97-1.11l-4.06,0.61l-2.29,0.99l-3.36-1.09l-2.95,0.57l-1.85,2.15l-0.97-0.48l-1.12-3.29l0.3-3.26
l-3.08-2.84l-3.59-2.07l-4.05-12.19l-0.76-5.25l-1.69-0.59l-0.47,1.07l-4.07,3.74l-1.2,0.05l-2.63-2.49l-0.55-2.75l4.81-17.89
l-0.93-2.57l-3.61-0.68l-0.51-0.85l-3.11-3.14l-5.86-9.76l-3.37-1.17l-2.32-4l0.71-4.76L0,21.67L1.71,0l33.3,2.76L53.7,3.84
l32.71,1.23l29.57,0.32l29.41-0.16l30.94-0.79L177.2,18.64z">
<title>Montana</title>
</path>
</svg>

+ 19
- 0
media/naturals/new-york.svg Ver fichero

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 124.28 98.29" style="enable-background:new 0 0 124.28 98.29;" xml:space="preserve">
<style type="text/css">
.st0{stroke:#A9A9A9;stroke-width:2;}
</style>
<path id="NY" d="M94.36,93.91l1.06-2.53l0.31-2.39l-2.61-2.1l-5.93-3.33l-5.31-3.81l-0.5-0.52l-2.58-0.86l-1.64-1.89l-0.8-6.21
l-3.12-1.19l-1.84-2.85l-39.24-0.21L0,65.19l0.89-6.46L2.7,57.9l1.5-0.8l1.32-1.35l1.99-0.69l2.24-1.36l0.83-1.46l2.62-2.19
l1.29-0.74l0.02-1.02l-0.61-3.3l-1.72-0.58l-0.57-6.36l3.22-1.15l4.62-0.53l4.18-0.42l3.23,0.19l6.2,1.14l1.58,1.67l1.52,0.53
l2.33-0.83l2.77-0.52l5.19,0.61l2.43-1.31l2.44-2.75l1.97-1.52l2.05,0.44l2.09-0.67l0.68-2.21l-1.02-2.37l0.02-1.53l1.52-1.82
l0.32-1.47l-1.76-0.38l-1.59-1.16l-0.55-1.24l0.35-2.58L62.24,14L63,13.35l2.08-2.52l3.79-3.78L72.29,4l2.56-1.9l2.73-1.25
l3.28-0.52l5.65-0.11l3.09,0.87l4.72-0.51l7.7-0.58l-0.35,4.94l0.97,6.86l-0.28,5.06l-1.87,3.89l1.59,4.95l0.36,2.12l-1.56,2.94
l3.26,2.44l0.48,10.54l-1.23,5.67l-2.89,10.53l-0.36,5.45l-0.08,3.67l-0.08,7.45l-1.71,7.92l-1.56,2.02l1.48,3.08l0.3,0.99
l-2.24,1.36l0.02,1.33l1.33-0.02l1.74-0.95l2.8-2.05l1.2-0.35l1.44,0.93l2.21,0.68l8.55-2.14l3.41-2.03l1.59-1.19l3.77,2.45
l-4.08,2.8l-4.43,2.01L107.71,97l-2.75,0.43l-6.07,0.63l-4.14,0.23l-0.89-0.6L94.36,93.91z">
<title>New York</title>
</path>
</svg>

media/objects/planet-generic.svg → media/naturals/planet-generic.svg Ver fichero


media/objects/saturn.svg → media/naturals/saturn.svg Ver fichero


+ 26
- 0
media/naturals/texas.svg Ver fichero

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 244.53 232.71" style="enable-background:new 0 0 244.53 232.71;" xml:space="preserve">
<style type="text/css">
.st0{stroke:#A9A9A9;stroke-width:2;}
</style>
<path id="TX" d="M0,97.76L37.15,99l29.36,0.04l1.18-97.97L122.14,0l-0.22,23.36l0.15,18.03l0.33,1.98l4.65,3.81l2.07,0.97l1.8-0.11
l0.42-1.23l0.76,0.85l2.41,0.05l1.06-0.67l-0.01-0.2l1.03,0.44L136.41,51l4.54,0.41l2.45,0.75l4.24,0.43l2.71,1.63l2.67-2.07
l2.73,0.43l2.39,2.95l0.8,0.05l0.13,2.1l3.36,0.89l2.36-2.25l1.53,0.4l2.1-0.03l0.73,2.06l5.32,1.67l2.26-0.65l1.64-4.11l0.1-0.01
l1.22,1.83l4.65,0.61l3.48,1.08l3.26,0.79l2.32-1.35l0.55-2.34l3.59-0.23l2.16,0.86l2.87-2.19l0.4-0.03l0.59,1.37l4.69-0.3
l1.78-1.92l1.32,0.32l1.83,1.99l3.41,1.69l3.46,0.78l2.58,1.24l2.82,1.82l3.02-1.39l2.15,0.66l1.97,19.92l1.3,9.44l0.86,4.05
l2.87,4.23l1.18,4.43l4.57,5.62l0.5,3.07l0.65,0.76l-0.21,7.73l-2.59,4.97l1.46,2.51l-0.35,2.43l-0.34,7.24l-1.11,3.08l0.57,4.17
l-5.49,1.95l-9.59,5.12l-0.88,1.96l-2.47,2.06l-2,1.63l-1.25,0.88l-5.35,5.65l-2.56,2.27l-5.09,3.53l-5.54,2.76l-6.07,3.79
l-1.7,1.61l-5.56,3.96l-3.36,0.81l-3.54,5.74l-3.97,0.55l-0.88,1.96l2.42,1.75l-1.15,5.58l-1.01,4.57l-0.85,3.96l-0.51,4.54
l0.95,2.34l2.24,6.87l1.39,6.02l1.97,2.58l-0.9,1.56l-2.97,2.09l-5.94-3.53l-5.56-0.75l-1.27,0.58l-3.23-0.4l-4.39-2.83l-5.26-0.77
l-7.8-2.91l-2.34-3.76l-1.71-6.4l-3.31-1.69l-0.74-2.26l0.56-0.64l0.08-3.41l-1.34-0.52l-0.66-0.96l1.02-4.47l-1.74-2.19l-3.28-1.09
l-3.67-4.18l-4.01-6.36l-4.36-2.33l0.08-1.91L113.29,168l-1.07-4.14l-1.92-1.78l-0.29-1.48l-6.32-4.91l-2.79-2.93l-0.07-1.1
l-2.73-1.93l-6.86-0.67l-7.42-0.13l-3.24-2.1l-4.38,2.08l-3.5,1.73l-2.09,3.34l-0.76,3.76l-4,6.37l-2.24,2.55l-2.66-0.83l-1.87-0.98
l-1.93-0.48l-4.04-2.05l-0.04-0.6l-1.92-1.78l-5.32-1.77l-7.88-7.31l-2.59-4.54l-0.51-8.08l-3.61-6.28l-0.67-2.66l-1.66-0.9
l-1.23-2.03l-5.12-1.78l-1.4-1.51l-7.59-7.43l-1.5-3.11l-4.84-2l-1.78-4.3l-2.78-2.73l-1.73-0.39L0,97.76z M183.05,228.09
l-1.05-7.05l-3.15-7.01l-1.04-6.95l0.98-8.28l2.86-7.1l3.15-5.61l2.96-3.8l0.61,0.16l-4.37,6.89l-3.98,6.77l-1.58,6.71l0.03,5.21
l1.29,6.03l3.05,7.02l0.83,5.16l0.29,1.48L183.05,228.09z">
<title>Texas</title>
</path>
</svg>

+ 9
- 0
presets/buildings.js Ver fichero

@@ -110,5 +110,14 @@ function makeBuildings() {
)
});

results.push({
name: "Gateway Arch",
constructor: () => makeBuilding(
"Gateway Arch",
math.unit(630, "feet"),
{ source: "./media/buildings/gateway-arch.svg" }
)
});

return results;
}

+ 81
- 0
presets/naturals.js Ver fichero

@@ -0,0 +1,81 @@
function makeState(name, height, width, area) {
return {
name: name,
constructor: () => makeEntity(
name,
"State",
{
state: {
attributes: {
height: {
name: "Height",
power: 1,
type: "length",
base: height
},
width: {
name: "Width",
power: 1,
type: "length",
base: width
},
area: {
name: "Area",
power: 2,
type: "area",
base: area
},
},
name: "State",
image: {
source: "./media/naturals/" + name.toLowerCase().replace(" ", "-") + ".svg"
}
}
}
)
}
}

function makePlanet(name, diameter, mass, image) {
return {
name: name,
constructor: () => makeObject(
name,
{
body: {
height: diameter,
mass: mass,
image: (image === undefined ? {
source: "./media/objects/planet-generic.svg"
} : image),
name: "Body"
}
}
)
};
}

function makeNaturals() {
const results = [];
results.push(makePlanet("Mercury", math.unit(4879, "km"), math.unit(0.330e24, "kg")));
results.push(makePlanet("Venus", math.unit(12104, "km"), math.unit(4.87e24, "kg")));
results.push(makePlanet("Earth", math.unit(12756, "km"), math.unit(5.97e24, "kg")));
results.push(makePlanet("Moon", math.unit(3475, "km"), math.unit(0.073e24, "kg")));
results.push(makePlanet("Mars", math.unit(6792, "km"), math.unit(0.642e24, "kg")));
results.push(makePlanet("Jupiter", math.unit(142984, "km"), math.unit(1898e24, "kg")));
results.push(makePlanet("Saturn", math.unit(120536, "km"), math.unit(568e24, "kg"), { source: "./media/objects/saturn.svg" }));
results.push(makePlanet("Uranus", math.unit(51118, "km"), math.unit(86.8e24, "kg")));
results.push(makePlanet("Neptune", math.unit(49528, "km"), math.unit(102e24, "kg")));
results.push(makePlanet("Pluto", math.unit(2370, "km"), math.unit(0.0146e24, "kg")));

results.push(makeState("Alaska", math.unit(2071.44, "km"), math.unit(2483.83, "km"), math.unit(1723337, "km^2")));
results.push(makeState("California", math.unit(1048.82, "km"), math.unit(852.02, "km"), math.unit(423967, "km^2")));
results.push(makeState("Colorado", math.unit(442.44, "km"), math.unit(604.47, "km"), math.unit(269601, "km^2")));
results.push(makeState("Florida", math.unit(716.79, "km"), math.unit(723.97, "km"), math.unit(170312, "km^2")));
results.push(makeState("Maine", math.unit(505.94, "km"), math.unit(330.98, "km"), math.unit(91633, "km^2")));
results.push(makeState("Montana", math.unit(497.99, "km"), math.unit(983.98, "km"), math.unit(380831, "km^2")));
results.push(makeState("New York", math.unit(494.92, "km"), math.unit(536.63, "km"), math.unit(141297, "km^2")));
results.push(makeState("Texas", math.unit(1183.33, "km"), math.unit(1226.69, "km"), math.unit(695662, "km^2")));

return results;
}

+ 0
- 30
presets/objects.js Ver fichero

@@ -31,25 +31,6 @@ function makeObject(name, viewInfo) {
return makeEntity(name, "Object", views);
}

function makePlanet(name, diameter, mass, image) {
return {
name: name,
constructor: () => makeObject(
name,
{
body: {
height: diameter,
mass: mass,
image: (image === undefined ? {
source: "./media/objects/planet-generic.svg"
} : image),
name: "Body"
}
}
)
};
}

function makeObjects() {
const results = [];

@@ -87,16 +68,5 @@ function makeObjects() {
)
});

results.push(makePlanet("Mercury", math.unit(4879, "km"), math.unit(0.330e24, "kg")));
results.push(makePlanet("Venus", math.unit(12104, "km"), math.unit(4.87e24, "kg")));
results.push(makePlanet("Earth", math.unit(12756, "km"), math.unit(5.97e24, "kg")));
results.push(makePlanet("Moon", math.unit(3475, "km"), math.unit(0.073e24, "kg")));
results.push(makePlanet("Mars", math.unit(6792, "km"), math.unit(0.642e24, "kg")));
results.push(makePlanet("Jupiter", math.unit(142984, "km"), math.unit(1898e24, "kg")));
results.push(makePlanet("Saturn", math.unit(120536, "km"), math.unit(568e24, "kg"), {source: "./media/objects/saturn.svg"}));
results.push(makePlanet("Uranus", math.unit(51118, "km"), math.unit(86.8e24, "kg")));
results.push(makePlanet("Neptune", math.unit(49528, "km"), math.unit(102e24, "kg")));
results.push(makePlanet("Pluto", math.unit(2370, "km"), math.unit(0.0146e24, "kg")));

return results;
}

Cargando…
Cancelar
Guardar