@ccp-nc/crystvis-js 0.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +16 -0
- package/.github/workflows/test-mocha.yml +30 -0
- package/.vscode/settings.json +4 -0
- package/LICENSE +21 -0
- package/README.html +1127 -0
- package/README.md +76 -0
- package/demo/demo.css +30 -0
- package/demo/index.html +76 -0
- package/demo/main.js +143 -0
- package/docs/.nojekyll +0 -0
- package/docs-tutorials/Events.md +57 -0
- package/docs-tutorials/Queries.md +50 -0
- package/fonts/Rubik/OFL.txt +93 -0
- package/fonts/Rubik/README.txt +77 -0
- package/fonts/Rubik/Rubik-Italic-VariableFont_wght.ttf +0 -0
- package/fonts/Rubik/Rubik-VariableFont_wght.ttf +0 -0
- package/fonts/Rubik/static/Rubik-Black.ttf +0 -0
- package/fonts/Rubik/static/Rubik-BlackItalic.ttf +0 -0
- package/fonts/Rubik/static/Rubik-Bold.ttf +0 -0
- package/fonts/Rubik/static/Rubik-BoldItalic.ttf +0 -0
- package/fonts/Rubik/static/Rubik-ExtraBold.ttf +0 -0
- package/fonts/Rubik/static/Rubik-ExtraBoldItalic.ttf +0 -0
- package/fonts/Rubik/static/Rubik-Italic.ttf +0 -0
- package/fonts/Rubik/static/Rubik-Light.ttf +0 -0
- package/fonts/Rubik/static/Rubik-LightItalic.ttf +0 -0
- package/fonts/Rubik/static/Rubik-Medium.ttf +0 -0
- package/fonts/Rubik/static/Rubik-MediumItalic.ttf +0 -0
- package/fonts/Rubik/static/Rubik-Regular.ttf +0 -0
- package/fonts/Rubik/static/Rubik-SemiBold.ttf +0 -0
- package/fonts/Rubik/static/Rubik-SemiBoldItalic.ttf +0 -0
- package/index.html +25 -0
- package/index.js +11 -0
- package/jsconf.json +14 -0
- package/lib/assets/fonts/Rubik-Medium.fnt +297 -0
- package/lib/assets/fonts/Rubik-Medium.png +0 -0
- package/lib/assets/fonts/bmpfonts.in.js +16 -0
- package/lib/assets/fonts/bmpfonts.js +9 -0
- package/lib/assets/fonts/font.js +82 -0
- package/lib/assets/fonts/index.js +14 -0
- package/lib/assets/fonts/threebmfont.js +28 -0
- package/lib/data.js +125 -0
- package/lib/formats/cell.js +114 -0
- package/lib/formats/cif.js +22 -0
- package/lib/formats/magres.js +337 -0
- package/lib/formats/xyz.js +124 -0
- package/lib/loader.js +87 -0
- package/lib/model.js +2076 -0
- package/lib/modelview.js +382 -0
- package/lib/nmrdata.js +2898 -0
- package/lib/orbit.js +1233 -0
- package/lib/primitives/atoms.js +261 -0
- package/lib/primitives/cell.js +160 -0
- package/lib/primitives/dither.js +156 -0
- package/lib/primitives/ellipsoid.js +183 -0
- package/lib/primitives/geometries.js +20 -0
- package/lib/primitives/index.js +48 -0
- package/lib/primitives/isosurface.js +171 -0
- package/lib/primitives/shapes.js +100 -0
- package/lib/primitives/sprites.js +172 -0
- package/lib/query.js +158 -0
- package/lib/render.js +440 -0
- package/lib/selbox.js +361 -0
- package/lib/shaders/aura.frag +26 -0
- package/lib/shaders/aura.vert +37 -0
- package/lib/shaders/dither.frag +42 -0
- package/lib/shaders/dither.vert +8 -0
- package/lib/shaders/index.in.js +17 -0
- package/lib/shaders/index.js +25 -0
- package/lib/shaders/msdf300.frag +25 -0
- package/lib/shaders/msdf300.vert +45 -0
- package/lib/tensor.js +227 -0
- package/lib/utils.js +168 -0
- package/lib/visualizer.js +480 -0
- package/package.json +106 -0
- package/scripts/build-bundle.js +17 -0
- package/scripts/build-fonts.js +43 -0
- package/scripts/build-resources.js +46 -0
- package/scripts/plugins-shim.js +10 -0
- package/test/chemdata.js +69 -0
- package/test/data/CHA.cif +74 -0
- package/test/data/H2O.xyz +8 -0
- package/test/data/H2_bound.xyz +4 -0
- package/test/data/ethanol.cell +25 -0
- package/test/data/ethanol.magres +238 -0
- package/test/data/example_single.cif +789 -0
- package/test/data/frac.cell +8 -0
- package/test/data/org.cif +427 -0
- package/test/data/pyridine.xyz +13 -0
- package/test/data/si8.xyz +10 -0
- package/test/loader.js +107 -0
- package/test/model.js +368 -0
- package/test/query.js +135 -0
- package/test/tensor.js +133 -0
- package/test/test-html/examples.js +1485 -0
- package/test/test-html/index.html +33 -0
- package/test/test-html/index.js +279 -0
- package/tools/compile_colors.py +120 -0
- package/tools/compile_periodic.py +96 -0
- package/tools/ptable.json +497 -0
- package/tools/test +5844 -0
package/index.html
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<title>CrystVis</title>
|
|
7
|
+
<link rel="stylesheet" href="">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div>
|
|
11
|
+
<h1>
|
|
12
|
+
CrystVis - A JS+WebGL visualizer for crystal structures
|
|
13
|
+
</h1>
|
|
14
|
+
|
|
15
|
+
<p>
|
|
16
|
+
For tests, click <a href="test/test-html/index.html">here</a>.
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p>
|
|
20
|
+
For demo, click <a href="demo/">here</a>.
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
</div>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
package/index.js
ADDED
package/jsconf.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": {
|
|
3
|
+
"include": ["README.md", "index.js", "lib/visualizer.js", "lib/model.js",
|
|
4
|
+
"lib/modelview.js"]
|
|
5
|
+
},
|
|
6
|
+
"opts": {
|
|
7
|
+
"encoding": "utf8",
|
|
8
|
+
"template": "node_modules/clean-jsdoc-theme",
|
|
9
|
+
"theme_opts": {
|
|
10
|
+
"theme": "dark"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"plugins": ["plugins/markdown"]
|
|
14
|
+
}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<font>
|
|
3
|
+
<info face="Rubik-Medium" size="42" bold="0" italic="0" charset="" unicode="1" stretchH="100" smooth="1" aa="1" padding="2,2,2,2" spacing="0,0"/>
|
|
4
|
+
<common lineHeight="50" base="41" scaleW="512" scaleH="512" pages="1" packed="0" alphaChnl="0" redChnl="0" greenChnl="0" blueChnl="0"/>
|
|
5
|
+
<pages>
|
|
6
|
+
<page id="0" file="Rubik-Medium.png"/>
|
|
7
|
+
</pages>
|
|
8
|
+
<distanceField fieldType="msdf" distanceRange="4"/>
|
|
9
|
+
<chars count="95">
|
|
10
|
+
<char id="124" index="697" char="|" width="9" height="50" xoffset="1" yoffset="3" xadvance="10" chnl="15" x="0" y="0" page="0"/>
|
|
11
|
+
<char id="40" index="83" char="(" width="16" height="43" xoffset="0" yoffset="8" xadvance="15" chnl="15" x="0" y="51" page="0"/>
|
|
12
|
+
<char id="41" index="84" char=")" width="16" height="43" xoffset="-1" yoffset="8" xadvance="15" chnl="15" x="10" y="0" page="0"/>
|
|
13
|
+
<char id="91" index="85" char="[" width="15" height="43" xoffset="1" yoffset="8" xadvance="15" chnl="15" x="0" y="95" page="0"/>
|
|
14
|
+
<char id="93" index="86" char="]" width="15" height="43" xoffset="-1" yoffset="8" xadvance="15" chnl="15" x="0" y="139" page="0"/>
|
|
15
|
+
<char id="123" index="87" char="{" width="19" height="43" xoffset="-1" yoffset="8" xadvance="17" chnl="15" x="0" y="183" page="0"/>
|
|
16
|
+
<char id="125" index="88" char="}" width="19" height="43" xoffset="-1" yoffset="8" xadvance="17" chnl="15" x="16" y="95" page="0"/>
|
|
17
|
+
<char id="36" index="646" char="$" width="28" height="42" xoffset="0" yoffset="7" xadvance="27" chnl="15" x="16" y="139" page="0"/>
|
|
18
|
+
<char id="106" index="37" char="j" width="15" height="42" xoffset="-4" yoffset="11" xadvance="12" chnl="15" x="17" y="44" page="0"/>
|
|
19
|
+
<char id="47" index="607" char="/" width="23" height="41" xoffset="-1" yoffset="8" xadvance="21" chnl="15" x="27" y="0" page="0"/>
|
|
20
|
+
<char id="92" index="604" char="\" width="23" height="41" xoffset="-1" yoffset="8" xadvance="21" chnl="15" x="33" y="42" page="0"/>
|
|
21
|
+
<char id="64" index="690" char="@" width="35" height="37" xoffset="0" yoffset="13" xadvance="35" chnl="15" x="51" y="0" page="0"/>
|
|
22
|
+
<char id="81" index="18" char="Q" width="29" height="37" xoffset="0" yoffset="11" xadvance="29" chnl="15" x="36" y="84" page="0"/>
|
|
23
|
+
<char id="109" index="40" char="m" width="37" height="26" xoffset="1" yoffset="19" xadvance="38" chnl="15" x="57" y="38" page="0"/>
|
|
24
|
+
<char id="103" index="34" char="g" width="25" height="36" xoffset="0" yoffset="19" xadvance="26" chnl="15" x="87" y="0" page="0"/>
|
|
25
|
+
<char id="119" index="50" char="w" width="36" height="26" xoffset="-1" yoffset="19" xadvance="34" chnl="15" x="0" y="227" page="0"/>
|
|
26
|
+
<char id="87" index="24" char="W" width="35" height="33" xoffset="0" yoffset="12" xadvance="34" chnl="15" x="20" y="182" page="0"/>
|
|
27
|
+
<char id="102" index="33" char="f" width="21" height="35" xoffset="-1" yoffset="10" xadvance="17" chnl="15" x="45" y="122" page="0"/>
|
|
28
|
+
<char id="37" index="679" char="%" width="33" height="34" xoffset="0" yoffset="11" xadvance="33" chnl="15" x="66" y="65" page="0"/>
|
|
29
|
+
<char id="38" index="89" char="&" width="31" height="34" xoffset="0" yoffset="11" xadvance="30" chnl="15" x="0" y="254" page="0"/>
|
|
30
|
+
<char id="48" index="54" char="0" width="27" height="34" xoffset="0" yoffset="11" xadvance="28" chnl="15" x="0" y="289" page="0"/>
|
|
31
|
+
<char id="50" index="56" char="2" width="26" height="34" xoffset="0" yoffset="11" xadvance="26" chnl="15" x="0" y="324" page="0"/>
|
|
32
|
+
<char id="51" index="57" char="3" width="27" height="34" xoffset="0" yoffset="12" xadvance="26" chnl="15" x="0" y="359" page="0"/>
|
|
33
|
+
<char id="53" index="59" char="5" width="27" height="34" xoffset="0" yoffset="12" xadvance="26" chnl="15" x="27" y="324" page="0"/>
|
|
34
|
+
<char id="54" index="60" char="6" width="27" height="34" xoffset="0" yoffset="12" xadvance="26" chnl="15" x="28" y="289" page="0"/>
|
|
35
|
+
<char id="56" index="62" char="8" width="27" height="34" xoffset="0" yoffset="11" xadvance="28" chnl="15" x="32" y="254" page="0"/>
|
|
36
|
+
<char id="57" index="63" char="9" width="27" height="34" xoffset="-1" yoffset="11" xadvance="26" chnl="15" x="37" y="216" page="0"/>
|
|
37
|
+
<char id="63" index="66" char="?" width="25" height="34" xoffset="-1" yoffset="11" xadvance="24" chnl="15" x="56" y="158" page="0"/>
|
|
38
|
+
<char id="67" index="4" char="C" width="29" height="34" xoffset="0" yoffset="11" xadvance="29" chnl="15" x="67" y="100" page="0"/>
|
|
39
|
+
<char id="71" index="8" char="G" width="29" height="34" xoffset="0" yoffset="11" xadvance="29" chnl="15" x="0" y="394" page="0"/>
|
|
40
|
+
<char id="74" index="11" char="J" width="27" height="34" xoffset="-1" yoffset="12" xadvance="27" chnl="15" x="28" y="359" page="0"/>
|
|
41
|
+
<char id="79" index="16" char="O" width="29" height="34" xoffset="0" yoffset="11" xadvance="29" chnl="15" x="55" y="324" page="0"/>
|
|
42
|
+
<char id="83" index="20" char="S" width="28" height="34" xoffset="0" yoffset="11" xadvance="27" chnl="15" x="56" y="289" page="0"/>
|
|
43
|
+
<char id="85" index="22" char="U" width="28" height="34" xoffset="1" yoffset="12" xadvance="30" chnl="15" x="60" y="251" page="0"/>
|
|
44
|
+
<char id="98" index="29" char="b" width="25" height="34" xoffset="1" yoffset="11" xadvance="26" chnl="15" x="65" y="193" page="0"/>
|
|
45
|
+
<char id="100" index="31" char="d" width="25" height="34" xoffset="0" yoffset="11" xadvance="26" chnl="15" x="82" y="135" page="0"/>
|
|
46
|
+
<char id="104" index="35" char="h" width="25" height="34" xoffset="1" yoffset="11" xadvance="26" chnl="15" x="97" y="100" page="0"/>
|
|
47
|
+
<char id="105" index="36" char="i" width="10" height="34" xoffset="1" yoffset="11" xadvance="11" chnl="15" x="100" y="37" page="0"/>
|
|
48
|
+
<char id="107" index="38" char="k" width="24" height="34" xoffset="1" yoffset="11" xadvance="23" chnl="15" x="111" y="37" page="0"/>
|
|
49
|
+
<char id="108" index="39" char="l" width="10" height="34" xoffset="1" yoffset="11" xadvance="11" chnl="15" x="113" y="0" page="0"/>
|
|
50
|
+
<char id="112" index="43" char="p" width="25" height="34" xoffset="1" yoffset="19" xadvance="26" chnl="15" x="124" y="0" page="0"/>
|
|
51
|
+
<char id="113" index="44" char="q" width="25" height="34" xoffset="0" yoffset="19" xadvance="26" chnl="15" x="0" y="429" page="0"/>
|
|
52
|
+
<char id="116" index="47" char="t" width="20" height="34" xoffset="-1" yoffset="11" xadvance="18" chnl="15" x="0" y="464" page="0"/>
|
|
53
|
+
<char id="121" index="52" char="y" width="26" height="34" xoffset="-1" yoffset="19" xadvance="24" chnl="15" x="21" y="464" page="0"/>
|
|
54
|
+
<char id="33" index="64" char="!" width="10" height="33" xoffset="1" yoffset="12" xadvance="11" chnl="15" x="26" y="429" page="0"/>
|
|
55
|
+
<char id="49" index="55" char="1" width="20" height="33" xoffset="-1" yoffset="12" xadvance="19" chnl="15" x="30" y="394" page="0"/>
|
|
56
|
+
<char id="52" index="58" char="4" width="29" height="33" xoffset="-1" yoffset="12" xadvance="27" chnl="15" x="37" y="428" page="0"/>
|
|
57
|
+
<char id="55" index="61" char="7" width="24" height="33" xoffset="-1" yoffset="12" xadvance="23" chnl="15" x="51" y="394" page="0"/>
|
|
58
|
+
<char id="65" index="2" char="A" width="32" height="33" xoffset="-1" yoffset="12" xadvance="29" chnl="15" x="56" y="359" page="0"/>
|
|
59
|
+
<char id="66" index="3" char="B" width="28" height="33" xoffset="1" yoffset="12" xadvance="29" chnl="15" x="48" y="462" page="0"/>
|
|
60
|
+
<char id="68" index="5" char="D" width="28" height="33" xoffset="1" yoffset="12" xadvance="30" chnl="15" x="67" y="428" page="0"/>
|
|
61
|
+
<char id="69" index="6" char="E" width="25" height="33" xoffset="1" yoffset="12" xadvance="26" chnl="15" x="76" y="393" page="0"/>
|
|
62
|
+
<char id="70" index="7" char="F" width="24" height="33" xoffset="1" yoffset="12" xadvance="25" chnl="15" x="77" y="462" page="0"/>
|
|
63
|
+
<char id="72" index="9" char="H" width="28" height="33" xoffset="1" yoffset="12" xadvance="31" chnl="15" x="96" y="427" page="0"/>
|
|
64
|
+
<char id="73" index="10" char="I" width="10" height="33" xoffset="1" yoffset="12" xadvance="13" chnl="15" x="102" y="461" page="0"/>
|
|
65
|
+
<char id="75" index="12" char="K" width="27" height="33" xoffset="1" yoffset="12" xadvance="27" chnl="15" x="113" y="461" page="0"/>
|
|
66
|
+
<char id="76" index="13" char="L" width="24" height="33" xoffset="1" yoffset="12" xadvance="24" chnl="15" x="85" y="286" page="0"/>
|
|
67
|
+
<char id="77" index="14" char="M" width="32" height="33" xoffset="1" yoffset="12" xadvance="34" chnl="15" x="85" y="320" page="0"/>
|
|
68
|
+
<char id="78" index="15" char="N" width="27" height="33" xoffset="1" yoffset="12" xadvance="30" chnl="15" x="89" y="354" page="0"/>
|
|
69
|
+
<char id="80" index="17" char="P" width="27" height="33" xoffset="1" yoffset="12" xadvance="28" chnl="15" x="102" y="388" page="0"/>
|
|
70
|
+
<char id="82" index="19" char="R" width="27" height="33" xoffset="1" yoffset="12" xadvance="28" chnl="15" x="117" y="354" page="0"/>
|
|
71
|
+
<char id="84" index="21" char="T" width="27" height="33" xoffset="-1" yoffset="12" xadvance="25" chnl="15" x="125" y="422" page="0"/>
|
|
72
|
+
<char id="86" index="23" char="V" width="30" height="33" xoffset="-1" yoffset="12" xadvance="28" chnl="15" x="130" y="388" page="0"/>
|
|
73
|
+
<char id="88" index="25" char="X" width="30" height="33" xoffset="-1" yoffset="12" xadvance="28" chnl="15" x="141" y="456" page="0"/>
|
|
74
|
+
<char id="89" index="26" char="Y" width="30" height="33" xoffset="-1" yoffset="12" xadvance="28" chnl="15" x="153" y="422" page="0"/>
|
|
75
|
+
<char id="90" index="27" char="Z" width="27" height="33" xoffset="0" yoffset="12" xadvance="26" chnl="15" x="172" y="456" page="0"/>
|
|
76
|
+
<char id="95" index="608" char="_" width="31" height="9" xoffset="0" yoffset="39" xadvance="31" chnl="15" x="0" y="499" page="0"/>
|
|
77
|
+
<char id="35" index="606" char="#" width="29" height="30" xoffset="0" yoffset="13" xadvance="29" chnl="15" x="89" y="228" page="0"/>
|
|
78
|
+
<char id="60" index="664" char="<" width="21" height="29" xoffset="-1" yoffset="14" xadvance="21" chnl="15" x="91" y="170" page="0"/>
|
|
79
|
+
<char id="62" index="663" char=">" width="21" height="29" xoffset="1" yoffset="14" xadvance="21" chnl="15" x="108" y="135" page="0"/>
|
|
80
|
+
<char id="59" index="71" char=";" width="11" height="28" xoffset="0" yoffset="20" xadvance="12" chnl="15" x="110" y="259" page="0"/>
|
|
81
|
+
<char id="43" index="657" char="+" width="27" height="26" xoffset="0" yoffset="17" xadvance="26" chnl="15" x="100" y="72" page="0"/>
|
|
82
|
+
<char id="97" index="28" char="a" width="24" height="27" xoffset="-1" yoffset="19" xadvance="24" chnl="15" x="91" y="200" page="0"/>
|
|
83
|
+
<char id="99" index="30" char="c" width="25" height="27" xoffset="0" yoffset="19" xadvance="24" chnl="15" x="110" y="288" page="0"/>
|
|
84
|
+
<char id="101" index="32" char="e" width="25" height="27" xoffset="0" yoffset="19" xadvance="24" chnl="15" x="113" y="165" page="0"/>
|
|
85
|
+
<char id="111" index="42" char="o" width="25" height="27" xoffset="0" yoffset="19" xadvance="25" chnl="15" x="116" y="193" page="0"/>
|
|
86
|
+
<char id="115" index="46" char="s" width="23" height="27" xoffset="0" yoffset="19" xadvance="22" chnl="15" x="123" y="99" page="0"/>
|
|
87
|
+
<char id="110" index="41" char="n" width="25" height="26" xoffset="1" yoffset="19" xadvance="26" chnl="15" x="128" y="72" page="0"/>
|
|
88
|
+
<char id="114" index="45" char="r" width="18" height="26" xoffset="1" yoffset="19" xadvance="18" chnl="15" x="89" y="259" page="0"/>
|
|
89
|
+
<char id="117" index="48" char="u" width="25" height="26" xoffset="1" yoffset="19" xadvance="26" chnl="15" x="136" y="35" page="0"/>
|
|
90
|
+
<char id="118" index="49" char="v" width="26" height="26" xoffset="-1" yoffset="19" xadvance="24" chnl="15" x="150" y="0" page="0"/>
|
|
91
|
+
<char id="120" index="51" char="x" width="26" height="26" xoffset="-1" yoffset="19" xadvance="24" chnl="15" x="118" y="316" page="0"/>
|
|
92
|
+
<char id="122" index="53" char="z" width="23" height="26" xoffset="0" yoffset="19" xadvance="22" chnl="15" x="119" y="221" page="0"/>
|
|
93
|
+
<char id="58" index="70" char=":" width="10" height="25" xoffset="1" yoffset="20" xadvance="12" chnl="15" x="130" y="127" page="0"/>
|
|
94
|
+
<char id="61" index="661" char="=" width="22" height="19" xoffset="1" yoffset="21" xadvance="24" chnl="15" x="65" y="228" page="0"/>
|
|
95
|
+
<char id="126" index="669" char="~" width="22" height="10" xoffset="1" yoffset="25" xadvance="23" chnl="15" x="118" y="343" page="0"/>
|
|
96
|
+
<char id="42" index="603" char="*" width="19" height="18" xoffset="0" yoffset="10" xadvance="19" chnl="15" x="141" y="490" page="0"/>
|
|
97
|
+
<char id="45" index="74" char="-" width="19" height="9" xoffset="1" yoffset="26" xadvance="20" chnl="15" x="136" y="62" page="0"/>
|
|
98
|
+
<char id="94" index="703" char="^" width="18" height="10" xoffset="0" yoffset="10" xadvance="19" chnl="15" x="119" y="248" page="0"/>
|
|
99
|
+
<char id="34" index="76" char=""" width="17" height="14" xoffset="0" yoffset="11" xadvance="17" chnl="15" x="48" y="496" page="0"/>
|
|
100
|
+
<char id="39" index="75" char="'" width="10" height="14" xoffset="0" yoffset="11" xadvance="10" chnl="15" x="45" y="158" page="0"/>
|
|
101
|
+
<char id="96" index="742" char="`" width="14" height="10" xoffset="1" yoffset="10" xadvance="15" chnl="15" x="20" y="216" page="0"/>
|
|
102
|
+
<char id="44" index="68" char="," width="11" height="13" xoffset="0" yoffset="35" xadvance="11" chnl="15" x="32" y="499" page="0"/>
|
|
103
|
+
<char id="46" index="69" char="." width="10" height="10" xoffset="1" yoffset="35" xadvance="11" chnl="15" x="141" y="343" page="0"/>
|
|
104
|
+
<char id="32" index="1" char=" " width="0" height="0" xoffset="-2" yoffset="41" xadvance="10" chnl="15" x="16" y="182" page="0"/>
|
|
105
|
+
</chars>
|
|
106
|
+
<kernings count="189">
|
|
107
|
+
<kerning first="34" second="38" amount="-1"/>
|
|
108
|
+
<kerning first="34" second="44" amount="-4"/>
|
|
109
|
+
<kerning first="34" second="45" amount="-2"/>
|
|
110
|
+
<kerning first="34" second="46" amount="-4"/>
|
|
111
|
+
<kerning first="34" second="47" amount="-3"/>
|
|
112
|
+
<kerning first="34" second="52" amount="-2"/>
|
|
113
|
+
<kerning first="34" second="54" amount="-1"/>
|
|
114
|
+
<kerning first="34" second="58" amount="0"/>
|
|
115
|
+
<kerning first="34" second="59" amount="0"/>
|
|
116
|
+
<kerning first="34" second="64" amount="0"/>
|
|
117
|
+
<kerning first="35" second="55" amount="0"/>
|
|
118
|
+
<kerning first="38" second="34" amount="-1"/>
|
|
119
|
+
<kerning first="38" second="39" amount="-1"/>
|
|
120
|
+
<kerning first="39" second="38" amount="-1"/>
|
|
121
|
+
<kerning first="39" second="44" amount="-4"/>
|
|
122
|
+
<kerning first="39" second="45" amount="-2"/>
|
|
123
|
+
<kerning first="39" second="46" amount="-4"/>
|
|
124
|
+
<kerning first="39" second="47" amount="-3"/>
|
|
125
|
+
<kerning first="39" second="52" amount="-2"/>
|
|
126
|
+
<kerning first="39" second="54" amount="-1"/>
|
|
127
|
+
<kerning first="39" second="58" amount="0"/>
|
|
128
|
+
<kerning first="39" second="59" amount="0"/>
|
|
129
|
+
<kerning first="39" second="64" amount="0"/>
|
|
130
|
+
<kerning first="40" second="40" amount="0"/>
|
|
131
|
+
<kerning first="40" second="48" amount="-1"/>
|
|
132
|
+
<kerning first="40" second="49" amount="-1"/>
|
|
133
|
+
<kerning first="40" second="50" amount="-1"/>
|
|
134
|
+
<kerning first="40" second="52" amount="-2"/>
|
|
135
|
+
<kerning first="40" second="53" amount="-1"/>
|
|
136
|
+
<kerning first="40" second="54" amount="-2"/>
|
|
137
|
+
<kerning first="40" second="56" amount="-1"/>
|
|
138
|
+
<kerning first="40" second="57" amount="-1"/>
|
|
139
|
+
<kerning first="40" second="123" amount="-1"/>
|
|
140
|
+
<kerning first="41" second="41" amount="0"/>
|
|
141
|
+
<kerning first="41" second="93" amount="0"/>
|
|
142
|
+
<kerning first="41" second="125" amount="0"/>
|
|
143
|
+
<kerning first="43" second="49" amount="-1"/>
|
|
144
|
+
<kerning first="43" second="50" amount="-1"/>
|
|
145
|
+
<kerning first="43" second="51" amount="0"/>
|
|
146
|
+
<kerning first="43" second="55" amount="-2"/>
|
|
147
|
+
<kerning first="44" second="34" amount="-4"/>
|
|
148
|
+
<kerning first="44" second="39" amount="-4"/>
|
|
149
|
+
<kerning first="44" second="45" amount="-2"/>
|
|
150
|
+
<kerning first="44" second="48" amount="0"/>
|
|
151
|
+
<kerning first="44" second="49" amount="-3"/>
|
|
152
|
+
<kerning first="44" second="52" amount="0"/>
|
|
153
|
+
<kerning first="44" second="54" amount="0"/>
|
|
154
|
+
<kerning first="44" second="55" amount="-1"/>
|
|
155
|
+
<kerning first="44" second="56" amount="0"/>
|
|
156
|
+
<kerning first="44" second="57" amount="-2"/>
|
|
157
|
+
<kerning first="45" second="34" amount="-2"/>
|
|
158
|
+
<kerning first="45" second="39" amount="-2"/>
|
|
159
|
+
<kerning first="45" second="49" amount="-1"/>
|
|
160
|
+
<kerning first="45" second="50" amount="-1"/>
|
|
161
|
+
<kerning first="45" second="51" amount="-1"/>
|
|
162
|
+
<kerning first="45" second="53" amount="0"/>
|
|
163
|
+
<kerning first="45" second="55" amount="-2"/>
|
|
164
|
+
<kerning first="45" second="57" amount="0"/>
|
|
165
|
+
<kerning first="46" second="34" amount="-4"/>
|
|
166
|
+
<kerning first="46" second="39" amount="-4"/>
|
|
167
|
+
<kerning first="46" second="45" amount="-2"/>
|
|
168
|
+
<kerning first="46" second="48" amount="0"/>
|
|
169
|
+
<kerning first="46" second="49" amount="-3"/>
|
|
170
|
+
<kerning first="46" second="52" amount="0"/>
|
|
171
|
+
<kerning first="46" second="54" amount="0"/>
|
|
172
|
+
<kerning first="46" second="55" amount="-1"/>
|
|
173
|
+
<kerning first="46" second="56" amount="0"/>
|
|
174
|
+
<kerning first="46" second="57" amount="-2"/>
|
|
175
|
+
<kerning first="47" second="47" amount="-9"/>
|
|
176
|
+
<kerning first="47" second="48" amount="-1"/>
|
|
177
|
+
<kerning first="47" second="49" amount="0"/>
|
|
178
|
+
<kerning first="47" second="50" amount="-1"/>
|
|
179
|
+
<kerning first="47" second="52" amount="-2"/>
|
|
180
|
+
<kerning first="47" second="53" amount="0"/>
|
|
181
|
+
<kerning first="47" second="54" amount="-2"/>
|
|
182
|
+
<kerning first="47" second="56" amount="-1"/>
|
|
183
|
+
<kerning first="47" second="57" amount="0"/>
|
|
184
|
+
<kerning first="48" second="41" amount="-1"/>
|
|
185
|
+
<kerning first="48" second="44" amount="0"/>
|
|
186
|
+
<kerning first="48" second="46" amount="0"/>
|
|
187
|
+
<kerning first="48" second="47" amount="-1"/>
|
|
188
|
+
<kerning first="48" second="92" amount="-1"/>
|
|
189
|
+
<kerning first="48" second="93" amount="-1"/>
|
|
190
|
+
<kerning first="48" second="125" amount="-1"/>
|
|
191
|
+
<kerning first="50" second="41" amount="0"/>
|
|
192
|
+
<kerning first="50" second="43" amount="0"/>
|
|
193
|
+
<kerning first="50" second="45" amount="-1"/>
|
|
194
|
+
<kerning first="50" second="52" amount="0"/>
|
|
195
|
+
<kerning first="50" second="92" amount="-1"/>
|
|
196
|
+
<kerning first="50" second="93" amount="0"/>
|
|
197
|
+
<kerning first="50" second="125" amount="0"/>
|
|
198
|
+
<kerning first="51" second="47" amount="0"/>
|
|
199
|
+
<kerning first="51" second="49" amount="-1"/>
|
|
200
|
+
<kerning first="51" second="92" amount="0"/>
|
|
201
|
+
<kerning first="52" second="34" amount="-1"/>
|
|
202
|
+
<kerning first="52" second="39" amount="-1"/>
|
|
203
|
+
<kerning first="52" second="41" amount="-1"/>
|
|
204
|
+
<kerning first="52" second="44" amount="0"/>
|
|
205
|
+
<kerning first="52" second="46" amount="0"/>
|
|
206
|
+
<kerning first="52" second="47" amount="0"/>
|
|
207
|
+
<kerning first="52" second="49" amount="-1"/>
|
|
208
|
+
<kerning first="52" second="55" amount="-1"/>
|
|
209
|
+
<kerning first="52" second="57" amount="0"/>
|
|
210
|
+
<kerning first="52" second="92" amount="-1"/>
|
|
211
|
+
<kerning first="52" second="93" amount="-1"/>
|
|
212
|
+
<kerning first="52" second="125" amount="-1"/>
|
|
213
|
+
<kerning first="53" second="44" amount="0"/>
|
|
214
|
+
<kerning first="53" second="46" amount="0"/>
|
|
215
|
+
<kerning first="53" second="47" amount="0"/>
|
|
216
|
+
<kerning first="53" second="49" amount="0"/>
|
|
217
|
+
<kerning first="53" second="92" amount="0"/>
|
|
218
|
+
<kerning first="54" second="34" amount="-1"/>
|
|
219
|
+
<kerning first="54" second="39" amount="-1"/>
|
|
220
|
+
<kerning first="54" second="41" amount="-1"/>
|
|
221
|
+
<kerning first="54" second="47" amount="0"/>
|
|
222
|
+
<kerning first="54" second="49" amount="-1"/>
|
|
223
|
+
<kerning first="54" second="55" amount="-1"/>
|
|
224
|
+
<kerning first="54" second="92" amount="-2"/>
|
|
225
|
+
<kerning first="54" second="93" amount="-1"/>
|
|
226
|
+
<kerning first="54" second="125" amount="-1"/>
|
|
227
|
+
<kerning first="55" second="35" amount="0"/>
|
|
228
|
+
<kerning first="55" second="43" amount="-1"/>
|
|
229
|
+
<kerning first="55" second="44" amount="-3"/>
|
|
230
|
+
<kerning first="55" second="45" amount="-1"/>
|
|
231
|
+
<kerning first="55" second="46" amount="-3"/>
|
|
232
|
+
<kerning first="55" second="47" amount="-3"/>
|
|
233
|
+
<kerning first="55" second="52" amount="-1"/>
|
|
234
|
+
<kerning first="55" second="54" amount="-1"/>
|
|
235
|
+
<kerning first="55" second="61" amount="0"/>
|
|
236
|
+
<kerning first="56" second="41" amount="-1"/>
|
|
237
|
+
<kerning first="56" second="44" amount="0"/>
|
|
238
|
+
<kerning first="56" second="46" amount="0"/>
|
|
239
|
+
<kerning first="56" second="47" amount="0"/>
|
|
240
|
+
<kerning first="56" second="92" amount="-1"/>
|
|
241
|
+
<kerning first="56" second="93" amount="-1"/>
|
|
242
|
+
<kerning first="56" second="125" amount="-1"/>
|
|
243
|
+
<kerning first="57" second="41" amount="-1"/>
|
|
244
|
+
<kerning first="57" second="44" amount="-2"/>
|
|
245
|
+
<kerning first="57" second="45" amount="0"/>
|
|
246
|
+
<kerning first="57" second="46" amount="-2"/>
|
|
247
|
+
<kerning first="57" second="47" amount="-2"/>
|
|
248
|
+
<kerning first="57" second="51" amount="0"/>
|
|
249
|
+
<kerning first="57" second="52" amount="0"/>
|
|
250
|
+
<kerning first="57" second="54" amount="0"/>
|
|
251
|
+
<kerning first="57" second="92" amount="-1"/>
|
|
252
|
+
<kerning first="57" second="93" amount="-1"/>
|
|
253
|
+
<kerning first="57" second="125" amount="-1"/>
|
|
254
|
+
<kerning first="58" second="34" amount="0"/>
|
|
255
|
+
<kerning first="58" second="39" amount="0"/>
|
|
256
|
+
<kerning first="59" second="34" amount="0"/>
|
|
257
|
+
<kerning first="59" second="39" amount="0"/>
|
|
258
|
+
<kerning first="61" second="55" amount="-1"/>
|
|
259
|
+
<kerning first="64" second="34" amount="0"/>
|
|
260
|
+
<kerning first="64" second="39" amount="0"/>
|
|
261
|
+
<kerning first="91" second="40" amount="0"/>
|
|
262
|
+
<kerning first="91" second="48" amount="-1"/>
|
|
263
|
+
<kerning first="91" second="49" amount="-1"/>
|
|
264
|
+
<kerning first="91" second="50" amount="0"/>
|
|
265
|
+
<kerning first="91" second="52" amount="-1"/>
|
|
266
|
+
<kerning first="91" second="53" amount="-1"/>
|
|
267
|
+
<kerning first="91" second="54" amount="-1"/>
|
|
268
|
+
<kerning first="91" second="56" amount="-1"/>
|
|
269
|
+
<kerning first="91" second="57" amount="-1"/>
|
|
270
|
+
<kerning first="91" second="123" amount="-1"/>
|
|
271
|
+
<kerning first="92" second="34" amount="-3"/>
|
|
272
|
+
<kerning first="92" second="39" amount="-3"/>
|
|
273
|
+
<kerning first="92" second="48" amount="-1"/>
|
|
274
|
+
<kerning first="92" second="49" amount="-3"/>
|
|
275
|
+
<kerning first="92" second="51" amount="0"/>
|
|
276
|
+
<kerning first="92" second="52" amount="0"/>
|
|
277
|
+
<kerning first="92" second="53" amount="0"/>
|
|
278
|
+
<kerning first="92" second="54" amount="-1"/>
|
|
279
|
+
<kerning first="92" second="55" amount="-1"/>
|
|
280
|
+
<kerning first="92" second="56" amount="0"/>
|
|
281
|
+
<kerning first="92" second="57" amount="-2"/>
|
|
282
|
+
<kerning first="92" second="92" amount="-9"/>
|
|
283
|
+
<kerning first="123" second="40" amount="0"/>
|
|
284
|
+
<kerning first="123" second="48" amount="-1"/>
|
|
285
|
+
<kerning first="123" second="49" amount="-1"/>
|
|
286
|
+
<kerning first="123" second="50" amount="0"/>
|
|
287
|
+
<kerning first="123" second="52" amount="-1"/>
|
|
288
|
+
<kerning first="123" second="53" amount="-1"/>
|
|
289
|
+
<kerning first="123" second="54" amount="-2"/>
|
|
290
|
+
<kerning first="123" second="56" amount="-1"/>
|
|
291
|
+
<kerning first="123" second="57" amount="-1"/>
|
|
292
|
+
<kerning first="123" second="123" amount="-1"/>
|
|
293
|
+
<kerning first="125" second="41" amount="-1"/>
|
|
294
|
+
<kerning first="125" second="93" amount="-1"/>
|
|
295
|
+
<kerning first="125" second="125" amount="-1"/>
|
|
296
|
+
</kernings>
|
|
297
|
+
</font>
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// This file is necessary because esbuild has issues taking care of these imports
|
|
4
|
+
// at compile time... so we pre-build a version of this file with the resources
|
|
5
|
+
// inside as data URIs using the scripts/build-resources.js script. It can also
|
|
6
|
+
// be called as:
|
|
7
|
+
//
|
|
8
|
+
// npm run build-resources
|
|
9
|
+
|
|
10
|
+
import rubikMediumFont from './Rubik-Medium.fnt';
|
|
11
|
+
import rubikMediumTexture from './Rubik-Medium.png';
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
rubikMediumFont,
|
|
15
|
+
rubikMediumTexture
|
|
16
|
+
}
|