浏览代码

Add electromagnetic waves

master
Fen Dweller 5 年前
父节点
当前提交
1c7e0c133d
共有 3 个文件被更改,包括 143 次插入0 次删除
  1. +1
    -0
      media/attribution.js
  2. +81
    -0
      media/objects/sine-wave.svg
  3. +61
    -0
      presets/objects.js

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

@@ -12510,6 +12510,7 @@ const attributionData = {
{ name: "credit-card-vertical.svg", source: null },
{ name: "flagpole.svg", source: null },
{ name: "strand.svg", source: null },
{ name: "sine-wave.svg", source: null },
],
authors: [
"chemicalcrux"


+ 81
- 0
media/objects/sine-wave.svg 查看文件

@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1"
id="svg2335" inkscape:version="0.44" sodipodi:docbase="C:\Documents and Settings\Omegatron\My Documents\Wikipedia\Waveforms\Sine wave" sodipodi:docname="sine wave.svg" sodipodi:version="0.32" xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="918" height="1224.66" viewBox="0 0 918 1224.66"
style="enable-background:new 0 0 918 1224.66;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#000000;stroke-width:40;stroke-miterlimit:10;}
</style>
<sodipodi:namedview bordercolor="#666666" borderopacity="1.0" gridtolerance="10.0" guidetolerance="10.0" id="base" inkscape:current-layer="svg2335" inkscape:cx="447.55195" inkscape:cy="343.74318" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:window-height="588" inkscape:window-width="909" inkscape:window-x="664" inkscape:window-y="190" inkscape:zoom="0.49866667" objecttolerance="10.0" pagecolor="#ffffff">
</sodipodi:namedview>
<desc id="desc2337">Produced by GNUPLOT 4.0 patchlevel 0</desc>
<g id="g2355">
</g>
<g>
<g id="g2361">
<path id="path2363" class="st0" d="M918,1090.85"/>
<g id="g2365" transform="translate(28,611)">
</g>
</g>
<g id="g2373">
<path id="path2375" class="st0" d="M918,859.85"/>
<g id="g2377" transform="translate(28,380)">
</g>
</g>
<g id="g2385">
<path id="path2387" class="st0" d="M918,628.85"/>
<g id="g2389" transform="translate(28,149)">
</g>
</g>
<g id="g2397">
<path id="path2399" class="st0" d="M0,512.85"/>
<g id="g2401" transform="translate(41,757)">
</g>
</g>
<g id="g2409">
<path id="path2411" class="st0" d="M111.25,527.66"/>
<g id="g2413" transform="translate(194,757)">
</g>
</g>
<g id="g2421">
<path id="path2423" class="st0" d="M264.25,527.66"/>
<g id="g2425" transform="translate(347,757)">
</g>
</g>
<g id="g2433">
<path id="path2435" class="st0" d="M417.25,527.66"/>
<g id="g2437" transform="translate(500,757)">
</g>
</g>
<g id="g2445">
<path id="path2447" class="st0" d="M570.25,527.66"/>
<g id="g2449" transform="translate(653,757)">
</g>
</g>
<g id="g2457">
<path id="path2459" class="st0" d="M723.25,527.66"/>
<g id="g2461" transform="translate(806,757)">
</g>
</g>
<g id="g2469">
<path id="path2471" class="st0" d="M918,512.85"/>
<g id="g2473" transform="translate(959,757)">
</g>
</g>
<g id="g2485">
<path id="path2487" class="st0" d="M427.25,1224.66l-22-9l-22-10l-21-9l-21-9l-20-9l-19-10l-18-9l-17-9l-15-9l-13-10l-12-9l-10-9
l-9-10l-6-9l-4-9l-2-9v-10l2-9l4-9l6-9l9-10l10-9l12-9l13-10l15-9l17-9l18-9l19-10l20-9l21-9l21-9l22-10l22-9l22-9l22-10l21-9
l21-9l20-9l19-10l18-9l17-9l15-9l13-10l12-9l10-9l9-10l6-9l4-9l2-9v-10l-2-9l-4-9l-6-9l-9-10l-10-9l-12-9l-13-10l-15-9l-17-9
l-18-9l-19-10l-20-9l-21-9l-21-9l-22-10l-22-9l-22-9l-22-10l-21-9l-21-9l-20-9l-19-10l-18-9l-17-9l-15-9l-13-10l-12-9l-10-9l-9-10
l-6-9l-4-9l-2-9v-10l2-9l4-9l6-9l9-10l10-9l12-9l13-10l15-9l17-9l18-9l19-10l20-9l21-9l21-9l22-10l22-9"/>
</g>
<g id="g2485_1_">
<path id="path2487_1_" class="st0" d="M427.25,0l22,9l22,10l21,9l21,9l20,9l19,10l18,9l17,9l15,9l13,10l12,9l10,9l9,10l6,9l4,9
l2,9v10l-2,9l-4,9l-6,9l-9,10l-10,9l-12,9l-13,10l-15,9l-17,9l-18,9l-19,10l-20,9l-21,9l-21,9l-22,10l-22,9l-22,9l-22,10l-21,9
l-21,9l-20,9l-19,10l-18,9l-17,9l-15,9l-13,10l-12,9l-10,9l-9,10l-6,9l-4,9l-2,9v10l2,9l4,9l6,9l9,10l10,9l12,9l13,10l15,9l17,9
l18,9l19,10l20,9l21,9l21,9l22,10l22,9l22,9l22,10l21,9l21,9l20,9l19,10l18,9l17,9l15,9l13,10l12,9l10,9l9,10l6,9l4,9l2,9v10l-2,9
l-4,9l-6,9l-9,10l-10,9l-12,9l-13,10l-15,9l-17,9l-18,9l-19,10l-20,9l-21,9l-21,9l-22,10l-22,9"/>
</g>
</g>
</svg>

+ 61
- 0
presets/objects.js 查看文件

@@ -654,6 +654,67 @@ function makeObjects() {
"objects")
})

results.push({
name: "Electromagnetic Waves",
constructor: () => {
views = {};

viewInfo = [
["Gamma rays", math.unit(1, "pm")],
["Hard X-rays", math.unit(20, "pm")],
["Soft X-rays", math.unit(1, "nm")],
["Extreme-ultraviolet", math.unit(50, "nm")],
["UVC", math.unit(200, "nm")],
["UVB", math.unit(295, "nm")],
["UVA", math.unit(350, "nm")],
["Violet", math.unit(415, "nm")],
["Blue", math.unit(470, "nm")],
["Cyan", math.unit(490, "nm")],
["Green", math.unit(530, "nm")],
["Yellow", math.unit(580, "nm")],
["Orange", math.unit(610, "nm")],
["Red", math.unit(690, "nm")],
["Near-infrared", math.unit(1.2, "um")],
["Short-wavelength infrared", math.unit(2.2, "um")],
["Mid-wavelength infrared", math.unit(6.5, "um")],
["Long-wavelength infrared", math.unit(12, "um")],
["Far infrared", math.unit(500, "um")],
["D-band microwaves (mm-wave)", math.unit(2, "mm")],
["S-band microwaves (ovens, wifi)", math.unit(11, "cm")],
["L-band microwaves (GPS)", math.unit(22, "cm")],
["UHF", math.unit(50, "cm")],
["VHF", math.unit(5, "m")],
["HF", math.unit(50, "m")],
["MF", math.unit(500, "m")],
["LF", math.unit(5, "km")],
["VLF", math.unit(50, "km")],
["ULF", math.unit(500, "km")],
["SLF", math.unit(5000, "km")],
["ELF", math.unit(50000, "km")],
]
viewInfo.forEach(([name, length]) => {
views[name] = {
attributes: {
height: {
name: "Height",
power: 1,
type: "length",
base: math.multiply(length, 2)
}
},
image: {
source: "./media/objects/sine-wave.svg"
},
name: name,
rename: true,
default: name === "Green"
}
});

return makeEntity({ name: "Electromagnetic Waves" }, views);
}
})


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


正在加载...
取消
保存