1
0
Fork 0

Fixed Test switch and canvas issues

Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
merspieler 2019-11-16 00:43:02 +00:00
parent a9ccef12ea
commit 489b5e1789
2 changed files with 112 additions and 152 deletions

View file

@ -421,22 +421,34 @@ var refuelClass = {
#}
});
# TODO make it spring loaded
me._Test_hi_lvl_hb.addEventListener("click", func() {
me._Test_hi_lvl_hb.addEventListener("mousedown", func() {
me._Test_hi_lvl.show();
me._Test_off.hide();
me._Test_lts.hide();
test.setValue(1);
});
# TODO make it spring loaded
me._Test_lts_hb.addEventListener("click", func() {
me._Test_hi_lvl_hb.addEventListener("mouseup", func() {
me._Test_hi_lvl.hide();
me._Test_off.show();
me._Test_lts.hide();
test.setValue(0.5);
});
me._Test_lts_hb.addEventListener("mousedown", func() {
me._Test_hi_lvl.hide();
me._Test_off.hide();
me._Test_lts.show();
test.setValue(0);
});
me._Test_lts_hb.addEventListener("mouseup", func() {
me._Test_hi_lvl.hide();
me._Test_off.show();
me._Test_lts.hide();
test.setValue(0.5);
});
me._Power_on_hb.addEventListener("click", func() {
me._Power_on.show();
me._Power_norm.hide();

View file

@ -5,7 +5,6 @@
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="424"
@ -29,18 +28,6 @@
</metadata>
<defs
id="defs373">
<linearGradient
inkscape:collect="always"
id="010204">
<stop
style="stop-color:#010204;stop-opacity:1"
offset="0"
id="stop1553" />
<stop
style="stop-color:#3c3636;stop-opacity:1"
offset="1"
id="stop1555" />
</linearGradient>
<inkscape:path-effect
effect="spiro"
id="path-effect1541"
@ -149,16 +136,6 @@
effect="spiro"
id="path-effect1428-6-7"
is_visible="true" />
<linearGradient
inkscape:collect="always"
xlink:href="#010204"
id="linearGradient1559"
x1="62.4375"
y1="351.89062"
x2="87.46875"
y2="351.89062"
gradientUnits="userSpaceOnUse"
spreadMethod="reflect" />
</defs>
<sodipodi:namedview
pagecolor="#000000"
@ -170,15 +147,15 @@
inkscape:pageopacity="1"
inkscape:pageshadow="2"
inkscape:window-width="1366"
inkscape:window-height="705"
inkscape:window-height="750"
id="namedview371"
showgrid="true"
inkscape:zoom="2.6700352"
inkscape:cx="216.5399"
inkscape:cy="435.96269"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:zoom="15.104"
inkscape:cx="114.4985"
inkscape:cy="263.52599"
inkscape:window-x="0"
inkscape:window-y="18"
inkscape:window-maximized="0"
inkscape:current-layer="svg2"
units="px">
<inkscape:grid
@ -825,58 +802,6 @@
inkscape:original-d="m 285.5625,409.00002 -172.6875,0.5625 -15.000001,15.75"
sodipodi:nodetypes="ccc"
transform="matrix(0.36505273,0,0,0.36505273,0,0.17404451)" />
<path
style="opacity:1;fill:#373334;fill-opacity:1;stroke:#000000;stroke-width:0.82136863;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="HI-LVL-L"
sodipodi:type="arc"
sodipodi:cx="62.919491"
sodipodi:cy="132.76439"
sodipodi:rx="11.325509"
sodipodi:ry="11.422309"
sodipodi:start="0"
sodipodi:end="6.2824537"
d="M 74.245,132.76439 A 11.325509,11.422309 0 0 1 62.921562,144.1867 11.325509,11.422309 0 0 1 51.593983,132.76857 11.325509,11.422309 0 0 1 62.913276,121.34208 11.325509,11.422309 0 0 1 74.244997,132.75603"
sodipodi:open="true"
inkscape:label="#path1279" />
<path
style="opacity:1;fill:#373334;fill-opacity:1;stroke:#000000;stroke-width:0.82136875;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="HI-LVL-C"
sodipodi:type="arc"
sodipodi:cx="151.6794"
sodipodi:cy="132.49059"
sodipodi:rx="11.32551"
sodipodi:ry="11.422309"
sodipodi:start="0"
sodipodi:end="6.2824537"
d="m 163.00491,132.49059 a 11.32551,11.422309 0 0 1 -11.32344,11.4223 11.32551,11.422309 0 0 1 -11.32758,-11.41813 11.32551,11.422309 0 0 1 11.31929,-11.42648 11.32551,11.422309 0 0 1 11.33172,11.41395"
sodipodi:open="true"
inkscape:label="#path1279" />
<path
style="opacity:1;fill:#373334;fill-opacity:1;stroke:#000000;stroke-width:0.82136875;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="HI-LVL-R"
sodipodi:type="arc"
sodipodi:cx="241.48238"
sodipodi:cy="132.77945"
sodipodi:rx="11.32551"
sodipodi:ry="11.422309"
sodipodi:start="0"
sodipodi:end="6.2824537"
d="m 252.80789,132.77945 a 11.32551,11.422309 0 0 1 -11.32344,11.42231 11.32551,11.422309 0 0 1 -11.32758,-11.41813 11.32551,11.422309 0 0 1 11.31929,-11.42649 11.32551,11.422309 0 0 1 11.33172,11.41395"
sodipodi:open="true"
inkscape:label="#path1279" />
<path
style="opacity:1;fill:#373334;fill-opacity:1;stroke:#000000;stroke-width:1.24292004;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Valve-defuel"
sodipodi:type="arc"
sodipodi:cx="153.222"
sodipodi:cy="256.27121"
sodipodi:rx="17.138103"
sodipodi:ry="17.284584"
sodipodi:start="0"
sodipodi:end="6.2824537"
d="m 170.3601,256.27121 a 17.138103,17.284584 0 0 1 -17.13497,17.28458 17.138103,17.284584 0 0 1 -17.14123,-17.27826 17.138103,17.284584 0 0 1 17.1287,-17.2909 17.138103,17.284584 0 0 1 17.1475,17.27193"
sodipodi:open="true"
inkscape:label="#path1279" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:23.68944931px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#6eb500;fill-opacity:1;stroke:none;stroke-width:0.59223622;"
@ -978,19 +903,6 @@
x="177.05753"
y="251.68625"
inkscape:label="#rect4698" />
<path
style="opacity:1;fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.75;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Test-off"
sodipodi:type="arc"
sodipodi:cx="193.60663"
sodipodi:cy="250.90213"
sodipodi:rx="3.4802914"
sodipodi:ry="3.7454562"
sodipodi:start="0"
sodipodi:end="6.2824523"
sodipodi:open="true"
d="m 197.08692,250.90213 a 3.4802914,3.7454562 0 0 1 -3.47965,3.74546 3.4802914,3.7454562 0 0 1 -3.48093,-3.74409 3.4802914,3.7454562 0 0 1 3.47838,-3.74683 3.4802914,3.7454562 0 0 1 3.4822,3.74271"
inkscape:label="#path1430" />
<path
transform="matrix(1,0,0,-1,0,516.57192)"
style="fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.75px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -1021,19 +933,6 @@
inkscape:original-d="m 251.25,258.20927 -1.875,11.0625 c -0.20214,1.19261 2.81194,3.98086 3.68468,3.91573 0.80493,-0.0601 3.78504,-2.5482 3.36265,-4.40154 l -2.45927,-10.5 z"
sodipodi:nodetypes="cssscc"
inkscape:label="#path1426" />
<path
style="opacity:1;fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.75;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Valve-L-norm"
sodipodi:type="arc"
sodipodi:cx="79.044136"
sodipodi:cy="178.05663"
sodipodi:rx="3.4802914"
sodipodi:ry="3.7454562"
sodipodi:start="0"
sodipodi:end="6.2824523"
sodipodi:open="true"
d="m 82.524427,178.05663 a 3.4802914,3.7454562 0 0 1 -3.479653,3.74545 3.4802914,3.7454562 0 0 1 -3.480929,-3.74408 3.4802914,3.7454562 0 0 1 3.478378,-3.74683 3.4802914,3.7454562 0 0 1 3.482203,3.74271"
inkscape:label="#path1430" />
<path
transform="translate(-173.81664,-79.613773)"
style="fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.75px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -1054,19 +953,6 @@
inkscape:original-d="m 251.25,258.20927 -1.875,11.0625 c -0.20214,1.19261 2.81194,3.98086 3.68468,3.91573 0.80493,-0.0601 3.78504,-2.5482 3.36265,-4.40154 l -2.45927,-10.5 z"
sodipodi:nodetypes="cssscc"
inkscape:label="#path1426" />
<path
style="opacity:1;fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.75;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Valve-C-norm"
sodipodi:type="arc"
sodipodi:cx="173.54413"
sodipodi:cy="178.43163"
sodipodi:rx="3.4802914"
sodipodi:ry="3.7454562"
sodipodi:start="0"
sodipodi:end="6.2824523"
sodipodi:open="true"
d="m 177.02442,178.43163 a 3.4802914,3.7454562 0 0 1 -3.47965,3.74545 3.4802914,3.7454562 0 0 1 -3.48093,-3.74408 3.4802914,3.7454562 0 0 1 3.47838,-3.74683 3.4802914,3.7454562 0 0 1 3.4822,3.74271"
inkscape:label="#path1430" />
<path
transform="translate(-79.31664,-79.238773)"
style="fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.75px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -1095,19 +981,6 @@
x="242.13321"
y="172.82574"
inkscape:label="#rect4698" />
<path
style="opacity:1;fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.75;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Valve-R-norm"
sodipodi:type="arc"
sodipodi:cx="266.16913"
sodipodi:cy="177.30663"
sodipodi:rx="3.4802914"
sodipodi:ry="3.7454562"
sodipodi:start="0"
sodipodi:end="6.2824523"
sodipodi:open="true"
d="m 269.64942,177.30663 a 3.4802914,3.7454562 0 0 1 -3.47965,3.74545 3.4802914,3.7454562 0 0 1 -3.48093,-3.74408 3.4802914,3.7454562 0 0 1 3.47838,-3.74683 3.4802914,3.7454562 0 0 1 3.4822,3.74271"
inkscape:label="#path1430" />
<rect
style="opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:0.82125002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Valve-R-shut-hb"
@ -1146,19 +1019,6 @@
inkscape:original-d="m 251.25,258.20927 -1.875,11.0625 c -0.20214,1.19261 2.81194,3.98086 3.68468,3.91573 0.80493,-0.0601 3.78504,-2.5482 3.36265,-4.40154 l -2.45927,-10.5 z"
sodipodi:nodetypes="cssscc"
inkscape:label="#path1426" />
<path
style="opacity:1;fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.75;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Mode-off"
sodipodi:type="arc"
sodipodi:cx="94.019707"
sodipodi:cy="245.93163"
sodipodi:rx="3.4802914"
sodipodi:ry="3.7454562"
sodipodi:start="0"
sodipodi:end="6.2824523"
sodipodi:open="true"
d="m 97.499998,245.93163 a 3.4802914,3.7454562 0 0 1 -3.479654,3.74545 3.4802914,3.7454562 0 0 1 -3.480928,-3.74408 3.4802914,3.7454562 0 0 1 3.478377,-3.74683 3.4802914,3.7454562 0 0 1 3.482204,3.74271"
inkscape:label="#path1430" />
<rect
style="opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:1.15569425;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Mode-defuel-hb"
@ -1253,7 +1113,7 @@
y="356.25"
style="stroke-width:0.28703952">END</tspan></text>
<rect
style="opacity:1;fill:url(#linearGradient1559);fill-opacity:1;stroke:none;stroke-width:0.82125002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
style="opacity:1;fill:#010204;fill-opacity:1;stroke:none;stroke-width:0.82125002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect1551"
width="48.375"
height="24.09375"
@ -1277,4 +1137,92 @@
y="-363.75"
inkscape:label="#rect4698"
transform="scale(-1)" />
<rect
style="opacity:1;fill:#373334;fill-opacity:1;stroke:#000000;stroke-width:0.78921348;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="HI-LVL-L"
width="22.62558"
height="22.916512"
x="51.575745"
y="121.25262"
ry="11.31279"
inkscape:label="#rect996" />
<rect
style="opacity:1;fill:#373334;fill-opacity:1;stroke:#000000;stroke-width:0.78921354;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="HI-LVL-C"
width="22.62558"
height="22.916512"
x="140.23648"
y="120.82458"
ry="11.31279"
inkscape:label="#rect996" />
<rect
style="opacity:1;fill:#373334;fill-opacity:1;stroke:#000000;stroke-width:0.78921354;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="HI-LVL-R"
width="22.62558"
height="22.916512"
x="230.21263"
y="121.42046"
ry="11.31279"
inkscape:label="#rect996" />
<rect
style="opacity:1;fill:#373334;fill-opacity:1;stroke:#000000;stroke-width:1.20580566;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Valve-defuel"
width="34.568657"
height="35.013161"
x="135.87721"
y="238.73685"
ry="17.284328"
inkscape:label="#rect996" />
<rect
style="opacity:1;fill:#2e2f36;fill-opacity:1;stroke:none;stroke-width:0.82125002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect996"
width="5.164196"
height="23.707636"
x="84.216103"
y="340.04236" />
<rect
style="opacity:1;fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.72319549;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Mode-off"
width="6.9224825"
height="7.1075411"
x="90.508118"
y="242.52531"
ry="3.3118117"
inkscape:label="#rect994" />
<rect
style="opacity:1;fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.72319549;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Test-off"
width="6.9224825"
height="7.1075411"
x="190.04709"
y="247.25726"
ry="3.3118117"
inkscape:label="#rect994" />
<rect
style="opacity:1;fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.72319549;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Valve-C-norm"
width="6.9224825"
height="7.1075411"
x="170.07751"
y="174.90889"
ry="3.3118117"
inkscape:label="#rect994" />
<rect
style="opacity:1;fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.72319549;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Valve-R-norm"
width="6.9224825"
height="7.1075411"
x="262.44763"
y="174.30803"
ry="3.3118117"
inkscape:label="#rect994" />
<rect
style="opacity:1;fill:#bebbb6;fill-opacity:1;stroke:#000000;stroke-width:0.72319549;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="Valve-L-norm"
width="6.9224825"
height="7.1075411"
x="75.342384"
y="174.75"
ry="3.3118117"
inkscape:label="#rect994" />
</svg>

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 59 KiB