浏览代码

Add the Washington Monument and the Great Pyramid of Giza

tags/v0.1.0
Fen Dweller 5 年前
父节点
当前提交
99d7a08ef4
共有 4 个文件被更改,包括 41 次插入0 次删除
  1. +11
    -0
      media/attribution.js
  2. +6
    -0
      media/landmarks/pyramid.svg
  3. +6
    -0
      media/landmarks/washington-monument.svg
  4. +18
    -0
      presets/landmarks.js

+ 11
- 0
media/attribution.js 查看文件

@@ -550,6 +550,17 @@ const attributionData = {

]
},
{
prefix: "./media/landmarks/",
files: [
{ name: "gateway-arch.svg", source: null },
{ name: "washington-monument.svg", source: null },
{ name: "pyramid.svg", source: null },
],
authors: [
"chemicalcrux"
]
},
{
prefix: "./media/naturals/",
files: [


+ 6
- 0
media/landmarks/pyramid.svg 查看文件

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.2, 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 230 146" style="enable-background:new 0 0 230 146;" xml:space="preserve">
<polygon points="0,146 230,146 114.68,0 "/>
</svg>

+ 6
- 0
media/landmarks/washington-monument.svg 查看文件

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.2, 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 46 505" style="enable-background:new 0 0 46 505;" xml:space="preserve">
<polygon points="46,505 38,51 23,0 8,51 0,505 "/>
</svg>

+ 18
- 0
presets/landmarks.js 查看文件

@@ -92,6 +92,24 @@ function makeLandmarks() {
)
});

results.push({
name: "Washington Monument",
constructor: () => makeLandmark(
"Washington Monument",
math.unit(555 + 5/12, "feet"),
{ source: "./media/landmarks/washington-monument.svg" }
)
});

results.push({
name: "Great Pyramid of Giza",
constructor: () => makeLandmark(
"Great Pyramid of Giza",
math.unit(146, "meters"),
{ source: "./media/landmarks/pyramid.svg" }
)
});

results.sort((b1, b2) => {
e1 = b1.constructor();
e2 = b2.constructor();


正在加载...
取消
保存