@record-evolution/widget-scada 1.0.2
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/README.md +50 -0
- package/dist/scada_symbols/3-phase-voltage-relay-hp.svg +549 -0
- package/dist/scada_symbols/apartments-hp.svg +344 -0
- package/dist/scada_symbols/battery-hp.svg +473 -0
- package/dist/scada_symbols/bottom-flow-meter.svg +933 -0
- package/dist/scada_symbols/bottom-light-bulb-hp.svg +346 -0
- package/dist/scada_symbols/bottom-right-elbow-connector-hp.svg +233 -0
- package/dist/scada_symbols/bottom-right-elbow-pipe.svg +532 -0
- package/dist/scada_symbols/bottom-tee-connector-hp.svg +470 -0
- package/dist/scada_symbols/bottom-tee-pipe.svg +857 -0
- package/dist/scada_symbols/centrifugal-pump.svg +626 -0
- package/dist/scada_symbols/conical-tank.svg +1136 -0
- package/dist/scada_symbols/consumers-hp.svg +346 -0
- package/dist/scada_symbols/control-panel-hp.svg +332 -0
- package/dist/scada_symbols/crane-hp.svg +346 -0
- package/dist/scada_symbols/cross-connector-hp.svg +586 -0
- package/dist/scada_symbols/cross-pipe.svg +1051 -0
- package/dist/scada_symbols/curcuit-breaker-hp.svg +444 -0
- package/dist/scada_symbols/cylindrical-tank.svg +1332 -0
- package/dist/scada_symbols/drawwork-hp.svg +355 -0
- package/dist/scada_symbols/drill-hp.svg +354 -0
- package/dist/scada_symbols/drilling-line-hp.svg +361 -0
- package/dist/scada_symbols/drilling-rig-hp.svg +354 -0
- package/dist/scada_symbols/dynamic-horizontal-scale-hp.svg +605 -0
- package/dist/scada_symbols/dynamic-vertical-scale-hp.svg +598 -0
- package/dist/scada_symbols/electrical-distribution-board-hp.svg +332 -0
- package/dist/scada_symbols/electrical-engine-hp.svg +360 -0
- package/dist/scada_symbols/elevated-tank.svg +1564 -0
- package/dist/scada_symbols/energy-meter-hp.svg +488 -0
- package/dist/scada_symbols/extra-long-horizontal-pipe.svg +426 -0
- package/dist/scada_symbols/extra-long-vertical-pipe.svg +438 -0
- package/dist/scada_symbols/filter-hp.svg +287 -0
- package/dist/scada_symbols/four-rate-energy-meter-hp.svg +891 -0
- package/dist/scada_symbols/fuel-generator-hp.svg +359 -0
- package/dist/scada_symbols/gas-preventer-hp.svg +361 -0
- package/dist/scada_symbols/gas-wellhead-hp.svg +363 -0
- package/dist/scada_symbols/heat-exchanger-hp.svg +363 -0
- package/dist/scada_symbols/heat-pump-hp.svg +532 -0
- package/dist/scada_symbols/high-voltage-tower-hp.svg +297 -0
- package/dist/scada_symbols/hook-hp.svg +293 -0
- package/dist/scada_symbols/horizontal-ball-valve.svg +271 -0
- package/dist/scada_symbols/horizontal-broken-pipe.svg +97 -0
- package/dist/scada_symbols/horizontal-connector-hp.svg +268 -0
- package/dist/scada_symbols/horizontal-curcuit-breaker-hp.svg +439 -0
- package/dist/scada_symbols/horizontal-energy-system-controller-hp.svg +378 -0
- package/dist/scada_symbols/horizontal-inline-flow-meter.svg +913 -0
- package/dist/scada_symbols/horizontal-pipe.svg +422 -0
- package/dist/scada_symbols/horizontal-tank-hp.svg +524 -0
- package/dist/scada_symbols/horizontal-tank.svg +1343 -0
- package/dist/scada_symbols/horizontal-valve-hp.svg +392 -0
- package/dist/scada_symbols/horizontal-wheel-valve.svg +300 -0
- package/dist/scada_symbols/house-hp.svg +349 -0
- package/dist/scada_symbols/index.json +702 -0
- package/dist/scada_symbols/industrial-fuel-generator-hp.svg +358 -0
- package/dist/scada_symbols/inverter-hp.svg +578 -0
- package/dist/scada_symbols/large-conical-tank.svg +1146 -0
- package/dist/scada_symbols/large-cylindrical-tank.svg +1323 -0
- package/dist/scada_symbols/large-horizontal-separator-connector-hp.svg +342 -0
- package/dist/scada_symbols/large-horizontal-separator-hp.svg +350 -0
- package/dist/scada_symbols/large-inverter-hp.svg +578 -0
- package/dist/scada_symbols/large-stand-cylindrical-tank.svg +1384 -0
- package/dist/scada_symbols/large-stand-vertical-tank.svg +1386 -0
- package/dist/scada_symbols/large-vertical-separator-connector-hp.svg +350 -0
- package/dist/scada_symbols/large-vertical-separator-hp.svg +350 -0
- package/dist/scada_symbols/large-vertical-tank.svg +1325 -0
- package/dist/scada_symbols/leak-sensor.svg +158 -0
- package/dist/scada_symbols/left-analog-water-level-meter.svg +748 -0
- package/dist/scada_symbols/left-bottom-elbow-connector-hp.svg +233 -0
- package/dist/scada_symbols/left-bottom-elbow-pipe.svg +532 -0
- package/dist/scada_symbols/left-drain-pipe.svg +166 -0
- package/dist/scada_symbols/left-elbow-drain-pipe.svg +181 -0
- package/dist/scada_symbols/left-flow-meter.svg +911 -0
- package/dist/scada_symbols/left-heat-pump.svg +939 -0
- package/dist/scada_symbols/left-motor-pump.svg +541 -0
- package/dist/scada_symbols/left-tee-connector-hp.svg +470 -0
- package/dist/scada_symbols/left-tee-pipe.svg +869 -0
- package/dist/scada_symbols/left-top-elbow-connector-hp.svg +233 -0
- package/dist/scada_symbols/left-top-elbow-pipe.svg +532 -0
- package/dist/scada_symbols/long-bottom-filter.svg +88 -0
- package/dist/scada_symbols/long-horizontal-broken-pipe.svg +97 -0
- package/dist/scada_symbols/long-horizontal-connector-hp.svg +269 -0
- package/dist/scada_symbols/long-horizontal-pipe.svg +488 -0
- package/dist/scada_symbols/long-top-filter.svg +88 -0
- package/dist/scada_symbols/long-vertical-broken-pipe.svg +97 -0
- package/dist/scada_symbols/long-vertical-connector-hp.svg +267 -0
- package/dist/scada_symbols/long-vertical-pipe.svg +485 -0
- package/dist/scada_symbols/low-voltage-tower-hp.svg +278 -0
- package/dist/scada_symbols/low-voltage-transformer-tower-hp.svg +334 -0
- package/dist/scada_symbols/manufacture-hp.svg +344 -0
- package/dist/scada_symbols/meter.svg +751 -0
- package/dist/scada_symbols/oil-pump-hp.svg +357 -0
- package/dist/scada_symbols/platform-hp.svg +267 -0
- package/dist/scada_symbols/pool-hp.svg +523 -0
- package/dist/scada_symbols/pool.svg +998 -0
- package/dist/scada_symbols/power-socket-hp.svg +371 -0
- package/dist/scada_symbols/power-transformer-hp.svg +359 -0
- package/dist/scada_symbols/preventer-hp.svg +343 -0
- package/dist/scada_symbols/pump-hp.svg +368 -0
- package/dist/scada_symbols/right-analog-water-level-meter.svg +748 -0
- package/dist/scada_symbols/right-drain-pipe.svg +167 -0
- package/dist/scada_symbols/right-elbow-drain-pipe.svg +178 -0
- package/dist/scada_symbols/right-flow-meter.svg +911 -0
- package/dist/scada_symbols/right-heat-pump.svg +948 -0
- package/dist/scada_symbols/right-motor-pump.svg +541 -0
- package/dist/scada_symbols/right-tee-connector-hp.svg +470 -0
- package/dist/scada_symbols/right-tee-pipe.svg +857 -0
- package/dist/scada_symbols/rotor-hp.svg +346 -0
- package/dist/scada_symbols/sand-filter-hp.svg +652 -0
- package/dist/scada_symbols/sand-filter.svg +704 -0
- package/dist/scada_symbols/short-bottom-filter.svg +88 -0
- package/dist/scada_symbols/short-left-drain-pipe.svg +160 -0
- package/dist/scada_symbols/short-right-drain-pipe.svg +160 -0
- package/dist/scada_symbols/short-top-filter.svg +88 -0
- package/dist/scada_symbols/short-vertical-tank-hp.svg +522 -0
- package/dist/scada_symbols/simple-horizontal-scale-hp.svg +509 -0
- package/dist/scada_symbols/simple-vertical-scale-hp.svg +509 -0
- package/dist/scada_symbols/single-key-switch-hp.svg +373 -0
- package/dist/scada_symbols/small-cylindrical-tank.svg +1306 -0
- package/dist/scada_symbols/small-horizontal-separator-connector-hp.svg +342 -0
- package/dist/scada_symbols/small-horizontal-separator-hp.svg +342 -0
- package/dist/scada_symbols/small-left-meter.svg +725 -0
- package/dist/scada_symbols/small-left-motor-pump.svg +443 -0
- package/dist/scada_symbols/small-meter.svg +694 -0
- package/dist/scada_symbols/small-power-transformer-hp.svg +359 -0
- package/dist/scada_symbols/small-right-center.svg +725 -0
- package/dist/scada_symbols/small-right-motor-pump.svg +443 -0
- package/dist/scada_symbols/small-spherical-tank.svg +1362 -0
- package/dist/scada_symbols/small-vertical-separator-connector-hp.svg +342 -0
- package/dist/scada_symbols/small-vertical-separator-hp.svg +342 -0
- package/dist/scada_symbols/solar-panel-hp.svg +353 -0
- package/dist/scada_symbols/spherical-tank.svg +1392 -0
- package/dist/scada_symbols/stand-cylindrical-tank.svg +1393 -0
- package/dist/scada_symbols/stand-horizontal-tank.svg +1404 -0
- package/dist/scada_symbols/stand-solar-panel-hp.svg +357 -0
- package/dist/scada_symbols/stand-vertical-short-tank.svg +1366 -0
- package/dist/scada_symbols/stand-vertical-tank.svg +1386 -0
- package/dist/scada_symbols/three-rate-energy-meter-hp.svg +759 -0
- package/dist/scada_symbols/top-flow-meter.svg +927 -0
- package/dist/scada_symbols/top-light-bulb-hp.svg +346 -0
- package/dist/scada_symbols/top-right-elbow-connector-hp.svg +233 -0
- package/dist/scada_symbols/top-right-elbow-pipe.svg +532 -0
- package/dist/scada_symbols/top-tee-connector-hp.svg +470 -0
- package/dist/scada_symbols/top-tee-pipe.svg +857 -0
- package/dist/scada_symbols/turbine-hp.svg +377 -0
- package/dist/scada_symbols/two-key-switch-hp.svg +489 -0
- package/dist/scada_symbols/two-rate-energy-meter-hp.svg +627 -0
- package/dist/scada_symbols/vertical-ball-valve.svg +271 -0
- package/dist/scada_symbols/vertical-broken-pipe.svg +97 -0
- package/dist/scada_symbols/vertical-connector-hp.svg +269 -0
- package/dist/scada_symbols/vertical-energy-system-controller-hp.svg +378 -0
- package/dist/scada_symbols/vertical-inline-flow-meter.svg +913 -0
- package/dist/scada_symbols/vertical-pipe.svg +422 -0
- package/dist/scada_symbols/vertical-short-tank.svg +1305 -0
- package/dist/scada_symbols/vertical-tank-hp.svg +524 -0
- package/dist/scada_symbols/vertical-tank.svg +1326 -0
- package/dist/scada_symbols/vertical-valve-hp.svg +392 -0
- package/dist/scada_symbols/vertical-wheel-valve.svg +300 -0
- package/dist/scada_symbols/voltage-relay-hp.svg +440 -0
- package/dist/scada_symbols/voltage-stabilizer-hp.svg +584 -0
- package/dist/scada_symbols/waterstop.svg +276 -0
- package/dist/scada_symbols/wind-turbine-cluster-hp.svg +370 -0
- package/dist/scada_symbols/wind-turbine-hp.svg +360 -0
- package/dist/widget-scada.js +1331 -0
- package/dist/widget-scada.js.map +1 -0
- package/package.json +61 -0
- package/scada_symbols/3-phase-voltage-relay-hp.svg +549 -0
- package/scada_symbols/apartments-hp.svg +344 -0
- package/scada_symbols/battery-hp.svg +473 -0
- package/scada_symbols/bottom-flow-meter.svg +933 -0
- package/scada_symbols/bottom-light-bulb-hp.svg +346 -0
- package/scada_symbols/bottom-right-elbow-connector-hp.svg +233 -0
- package/scada_symbols/bottom-right-elbow-pipe.svg +532 -0
- package/scada_symbols/bottom-tee-connector-hp.svg +470 -0
- package/scada_symbols/bottom-tee-pipe.svg +857 -0
- package/scada_symbols/centrifugal-pump.svg +626 -0
- package/scada_symbols/conical-tank.svg +1136 -0
- package/scada_symbols/consumers-hp.svg +346 -0
- package/scada_symbols/control-panel-hp.svg +332 -0
- package/scada_symbols/crane-hp.svg +346 -0
- package/scada_symbols/cross-connector-hp.svg +586 -0
- package/scada_symbols/cross-pipe.svg +1051 -0
- package/scada_symbols/curcuit-breaker-hp.svg +444 -0
- package/scada_symbols/cylindrical-tank.svg +1332 -0
- package/scada_symbols/drawwork-hp.svg +355 -0
- package/scada_symbols/drill-hp.svg +354 -0
- package/scada_symbols/drilling-line-hp.svg +361 -0
- package/scada_symbols/drilling-rig-hp.svg +354 -0
- package/scada_symbols/dynamic-horizontal-scale-hp.svg +605 -0
- package/scada_symbols/dynamic-vertical-scale-hp.svg +598 -0
- package/scada_symbols/electrical-distribution-board-hp.svg +332 -0
- package/scada_symbols/electrical-engine-hp.svg +360 -0
- package/scada_symbols/elevated-tank.svg +1564 -0
- package/scada_symbols/energy-meter-hp.svg +488 -0
- package/scada_symbols/extra-long-horizontal-pipe.svg +426 -0
- package/scada_symbols/extra-long-vertical-pipe.svg +438 -0
- package/scada_symbols/filter-hp.svg +287 -0
- package/scada_symbols/four-rate-energy-meter-hp.svg +891 -0
- package/scada_symbols/fuel-generator-hp.svg +359 -0
- package/scada_symbols/gas-preventer-hp.svg +361 -0
- package/scada_symbols/gas-wellhead-hp.svg +363 -0
- package/scada_symbols/heat-exchanger-hp.svg +363 -0
- package/scada_symbols/heat-pump-hp.svg +532 -0
- package/scada_symbols/high-voltage-tower-hp.svg +297 -0
- package/scada_symbols/hook-hp.svg +293 -0
- package/scada_symbols/horizontal-ball-valve.svg +271 -0
- package/scada_symbols/horizontal-broken-pipe.svg +97 -0
- package/scada_symbols/horizontal-connector-hp.svg +268 -0
- package/scada_symbols/horizontal-curcuit-breaker-hp.svg +439 -0
- package/scada_symbols/horizontal-energy-system-controller-hp.svg +378 -0
- package/scada_symbols/horizontal-inline-flow-meter.svg +913 -0
- package/scada_symbols/horizontal-pipe.svg +422 -0
- package/scada_symbols/horizontal-tank-hp.svg +524 -0
- package/scada_symbols/horizontal-tank.svg +1343 -0
- package/scada_symbols/horizontal-valve-hp.svg +392 -0
- package/scada_symbols/horizontal-wheel-valve.svg +300 -0
- package/scada_symbols/house-hp.svg +349 -0
- package/scada_symbols/index.json +702 -0
- package/scada_symbols/industrial-fuel-generator-hp.svg +358 -0
- package/scada_symbols/inverter-hp.svg +578 -0
- package/scada_symbols/large-conical-tank.svg +1146 -0
- package/scada_symbols/large-cylindrical-tank.svg +1323 -0
- package/scada_symbols/large-horizontal-separator-connector-hp.svg +342 -0
- package/scada_symbols/large-horizontal-separator-hp.svg +350 -0
- package/scada_symbols/large-inverter-hp.svg +578 -0
- package/scada_symbols/large-stand-cylindrical-tank.svg +1384 -0
- package/scada_symbols/large-stand-vertical-tank.svg +1386 -0
- package/scada_symbols/large-vertical-separator-connector-hp.svg +350 -0
- package/scada_symbols/large-vertical-separator-hp.svg +350 -0
- package/scada_symbols/large-vertical-tank.svg +1325 -0
- package/scada_symbols/leak-sensor.svg +158 -0
- package/scada_symbols/left-analog-water-level-meter.svg +748 -0
- package/scada_symbols/left-bottom-elbow-connector-hp.svg +233 -0
- package/scada_symbols/left-bottom-elbow-pipe.svg +532 -0
- package/scada_symbols/left-drain-pipe.svg +166 -0
- package/scada_symbols/left-elbow-drain-pipe.svg +181 -0
- package/scada_symbols/left-flow-meter.svg +911 -0
- package/scada_symbols/left-heat-pump.svg +939 -0
- package/scada_symbols/left-motor-pump.svg +541 -0
- package/scada_symbols/left-tee-connector-hp.svg +470 -0
- package/scada_symbols/left-tee-pipe.svg +869 -0
- package/scada_symbols/left-top-elbow-connector-hp.svg +233 -0
- package/scada_symbols/left-top-elbow-pipe.svg +532 -0
- package/scada_symbols/long-bottom-filter.svg +88 -0
- package/scada_symbols/long-horizontal-broken-pipe.svg +97 -0
- package/scada_symbols/long-horizontal-connector-hp.svg +269 -0
- package/scada_symbols/long-horizontal-pipe.svg +488 -0
- package/scada_symbols/long-top-filter.svg +88 -0
- package/scada_symbols/long-vertical-broken-pipe.svg +97 -0
- package/scada_symbols/long-vertical-connector-hp.svg +267 -0
- package/scada_symbols/long-vertical-pipe.svg +485 -0
- package/scada_symbols/low-voltage-tower-hp.svg +278 -0
- package/scada_symbols/low-voltage-transformer-tower-hp.svg +334 -0
- package/scada_symbols/manufacture-hp.svg +344 -0
- package/scada_symbols/meter.svg +751 -0
- package/scada_symbols/oil-pump-hp.svg +357 -0
- package/scada_symbols/platform-hp.svg +267 -0
- package/scada_symbols/pool-hp.svg +523 -0
- package/scada_symbols/pool.svg +998 -0
- package/scada_symbols/power-socket-hp.svg +371 -0
- package/scada_symbols/power-transformer-hp.svg +359 -0
- package/scada_symbols/preventer-hp.svg +343 -0
- package/scada_symbols/pump-hp.svg +368 -0
- package/scada_symbols/right-analog-water-level-meter.svg +748 -0
- package/scada_symbols/right-drain-pipe.svg +167 -0
- package/scada_symbols/right-elbow-drain-pipe.svg +178 -0
- package/scada_symbols/right-flow-meter.svg +911 -0
- package/scada_symbols/right-heat-pump.svg +948 -0
- package/scada_symbols/right-motor-pump.svg +541 -0
- package/scada_symbols/right-tee-connector-hp.svg +470 -0
- package/scada_symbols/right-tee-pipe.svg +857 -0
- package/scada_symbols/rotor-hp.svg +346 -0
- package/scada_symbols/sand-filter-hp.svg +652 -0
- package/scada_symbols/sand-filter.svg +704 -0
- package/scada_symbols/short-bottom-filter.svg +88 -0
- package/scada_symbols/short-left-drain-pipe.svg +160 -0
- package/scada_symbols/short-right-drain-pipe.svg +160 -0
- package/scada_symbols/short-top-filter.svg +88 -0
- package/scada_symbols/short-vertical-tank-hp.svg +522 -0
- package/scada_symbols/simple-horizontal-scale-hp.svg +509 -0
- package/scada_symbols/simple-vertical-scale-hp.svg +509 -0
- package/scada_symbols/single-key-switch-hp.svg +373 -0
- package/scada_symbols/small-cylindrical-tank.svg +1306 -0
- package/scada_symbols/small-horizontal-separator-connector-hp.svg +342 -0
- package/scada_symbols/small-horizontal-separator-hp.svg +342 -0
- package/scada_symbols/small-left-meter.svg +725 -0
- package/scada_symbols/small-left-motor-pump.svg +443 -0
- package/scada_symbols/small-meter.svg +694 -0
- package/scada_symbols/small-power-transformer-hp.svg +359 -0
- package/scada_symbols/small-right-center.svg +725 -0
- package/scada_symbols/small-right-motor-pump.svg +443 -0
- package/scada_symbols/small-spherical-tank.svg +1362 -0
- package/scada_symbols/small-vertical-separator-connector-hp.svg +342 -0
- package/scada_symbols/small-vertical-separator-hp.svg +342 -0
- package/scada_symbols/solar-panel-hp.svg +353 -0
- package/scada_symbols/spherical-tank.svg +1392 -0
- package/scada_symbols/stand-cylindrical-tank.svg +1393 -0
- package/scada_symbols/stand-horizontal-tank.svg +1404 -0
- package/scada_symbols/stand-solar-panel-hp.svg +357 -0
- package/scada_symbols/stand-vertical-short-tank.svg +1366 -0
- package/scada_symbols/stand-vertical-tank.svg +1386 -0
- package/scada_symbols/three-rate-energy-meter-hp.svg +759 -0
- package/scada_symbols/top-flow-meter.svg +927 -0
- package/scada_symbols/top-light-bulb-hp.svg +346 -0
- package/scada_symbols/top-right-elbow-connector-hp.svg +233 -0
- package/scada_symbols/top-right-elbow-pipe.svg +532 -0
- package/scada_symbols/top-tee-connector-hp.svg +470 -0
- package/scada_symbols/top-tee-pipe.svg +857 -0
- package/scada_symbols/turbine-hp.svg +377 -0
- package/scada_symbols/two-key-switch-hp.svg +489 -0
- package/scada_symbols/two-rate-energy-meter-hp.svg +627 -0
- package/scada_symbols/vertical-ball-valve.svg +271 -0
- package/scada_symbols/vertical-broken-pipe.svg +97 -0
- package/scada_symbols/vertical-connector-hp.svg +269 -0
- package/scada_symbols/vertical-energy-system-controller-hp.svg +378 -0
- package/scada_symbols/vertical-inline-flow-meter.svg +913 -0
- package/scada_symbols/vertical-pipe.svg +422 -0
- package/scada_symbols/vertical-short-tank.svg +1305 -0
- package/scada_symbols/vertical-tank-hp.svg +524 -0
- package/scada_symbols/vertical-tank.svg +1326 -0
- package/scada_symbols/vertical-valve-hp.svg +392 -0
- package/scada_symbols/vertical-wheel-valve.svg +300 -0
- package/scada_symbols/voltage-relay-hp.svg +440 -0
- package/scada_symbols/voltage-stabilizer-hp.svg +584 -0
- package/scada_symbols/waterstop.svg +276 -0
- package/scada_symbols/wind-turbine-cluster-hp.svg +370 -0
- package/scada_symbols/wind-turbine-hp.svg +360 -0
- package/src/default-data.json +18 -0
- package/src/definition-schema.d.ts +1521 -0
- package/src/definition-schema.json +5228 -0
- package/src/scada-runtime.ts +1290 -0
- package/src/widget-scada.ts +269 -0
- package/thumbnail.png +0 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:tb="https://thingsboard.io/svg" width="200" height="200" fill="none" version="1.1" viewBox="0 0 200 200"><tb:metadata xmlns=""><![CDATA[{
|
|
2
|
+
"title": "Horizontal ball valve",
|
|
3
|
+
"description": "Horizontal ball valve with open/close animation and state colors.",
|
|
4
|
+
"searchTags": [
|
|
5
|
+
"valve",
|
|
6
|
+
"ball"
|
|
7
|
+
],
|
|
8
|
+
"widgetSizeX": 1,
|
|
9
|
+
"widgetSizeY": 1,
|
|
10
|
+
"tags": [
|
|
11
|
+
{
|
|
12
|
+
"tag": "background",
|
|
13
|
+
"stateRenderFunction": "var opened = ctx.values.opened;\nvar openAnimate = element.remember('openAnimate');\nvar color = opened ? ctx.properties.openedColor : ctx.properties.closedColor;\nif (!openAnimate) {\n element.attr({fill: color});\n} else {\n ctx.api.cssAnimate(element, 500).attr({fill: color});\n element.remember('openAnimate', false);\n}\n",
|
|
14
|
+
"actions": null
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"tag": "clickArea",
|
|
18
|
+
"stateRenderFunction": null,
|
|
19
|
+
"actions": {
|
|
20
|
+
"click": {
|
|
21
|
+
"actionFunction": " ctx.tags.wheel.forEach(e => {\n e.remember('openAnimate', true);\n });\n ctx.tags.background.forEach(e => {\n e.remember('openAnimate', true);\n });\n\n\nvar opened = ctx.values.opened;\nvar action = opened ? 'close' : 'open';\n\nctx.api.callAction(event, action, undefined, {\n next: () => {\n ctx.api.setValue('opened', !opened);\n }\n});"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"tag": "wheel",
|
|
27
|
+
"stateRenderFunction": "var opened = ctx.values.opened;\nvar openAnimate = element.remember('openAnimate');\nvar angle = opened ? ctx.properties.openedRotationAngle : ctx.properties.closedRotationAngle;\nif (!openAnimate) {\n element.transform({rotate: angle, originX: 100});\n} else {\n ctx.api.cssAnimate(element, 500).transform({rotate: angle, originX: 100});\n element.remember('openAnimate', false);\n}\n",
|
|
28
|
+
"actions": null
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"behavior": [
|
|
32
|
+
{
|
|
33
|
+
"id": "opened",
|
|
34
|
+
"name": "{i18n:scada.symbol.opened}",
|
|
35
|
+
"hint": "{i18n:scada.symbol.opened-hint}",
|
|
36
|
+
"group": null,
|
|
37
|
+
"type": "value",
|
|
38
|
+
"valueType": "BOOLEAN",
|
|
39
|
+
"trueLabel": null,
|
|
40
|
+
"falseLabel": null,
|
|
41
|
+
"stateLabel": "{i18n:scada.symbol.opened}",
|
|
42
|
+
"defaultGetValueSettings": {
|
|
43
|
+
"action": "GET_ATTRIBUTE",
|
|
44
|
+
"defaultValue": false,
|
|
45
|
+
"executeRpc": {
|
|
46
|
+
"method": "getState",
|
|
47
|
+
"requestTimeout": 5000,
|
|
48
|
+
"requestPersistent": false,
|
|
49
|
+
"persistentPollingInterval": 1000
|
|
50
|
+
},
|
|
51
|
+
"getAttribute": {
|
|
52
|
+
"scope": "SHARED_SCOPE",
|
|
53
|
+
"key": "open"
|
|
54
|
+
},
|
|
55
|
+
"getTimeSeries": {
|
|
56
|
+
"key": "state"
|
|
57
|
+
},
|
|
58
|
+
"dataToValue": {
|
|
59
|
+
"type": "NONE",
|
|
60
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;",
|
|
61
|
+
"compareToValue": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"defaultSetValueSettings": null,
|
|
65
|
+
"defaultWidgetActionSettings": null
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "open",
|
|
69
|
+
"name": "{i18n:scada.symbol.open}",
|
|
70
|
+
"hint": "{i18n:scada.symbol.open-hint}",
|
|
71
|
+
"group": null,
|
|
72
|
+
"type": "action",
|
|
73
|
+
"valueType": "BOOLEAN",
|
|
74
|
+
"trueLabel": null,
|
|
75
|
+
"falseLabel": null,
|
|
76
|
+
"stateLabel": null,
|
|
77
|
+
"defaultGetValueSettings": null,
|
|
78
|
+
"defaultSetValueSettings": {
|
|
79
|
+
"action": "SET_ATTRIBUTE",
|
|
80
|
+
"executeRpc": {
|
|
81
|
+
"method": "setState",
|
|
82
|
+
"requestTimeout": 5000,
|
|
83
|
+
"requestPersistent": false,
|
|
84
|
+
"persistentPollingInterval": 1000
|
|
85
|
+
},
|
|
86
|
+
"setAttribute": {
|
|
87
|
+
"scope": "SHARED_SCOPE",
|
|
88
|
+
"key": "open"
|
|
89
|
+
},
|
|
90
|
+
"putTimeSeries": {
|
|
91
|
+
"key": "state"
|
|
92
|
+
},
|
|
93
|
+
"valueToData": {
|
|
94
|
+
"type": "CONSTANT",
|
|
95
|
+
"constantValue": true,
|
|
96
|
+
"valueToDataFunction": "/* Convert input boolean value to RPC parameters or attribute/time-series value */\nreturn value;"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"defaultWidgetActionSettings": null
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "close",
|
|
103
|
+
"name": "{i18n:scada.symbol.close}",
|
|
104
|
+
"hint": "{i18n:scada.symbol.close-hint}",
|
|
105
|
+
"group": null,
|
|
106
|
+
"type": "action",
|
|
107
|
+
"valueType": "BOOLEAN",
|
|
108
|
+
"trueLabel": null,
|
|
109
|
+
"falseLabel": null,
|
|
110
|
+
"stateLabel": null,
|
|
111
|
+
"defaultGetValueSettings": null,
|
|
112
|
+
"defaultSetValueSettings": {
|
|
113
|
+
"action": "SET_ATTRIBUTE",
|
|
114
|
+
"executeRpc": {
|
|
115
|
+
"method": "setState",
|
|
116
|
+
"requestTimeout": 5000,
|
|
117
|
+
"requestPersistent": false,
|
|
118
|
+
"persistentPollingInterval": 1000
|
|
119
|
+
},
|
|
120
|
+
"setAttribute": {
|
|
121
|
+
"scope": "SHARED_SCOPE",
|
|
122
|
+
"key": "open"
|
|
123
|
+
},
|
|
124
|
+
"putTimeSeries": {
|
|
125
|
+
"key": "state"
|
|
126
|
+
},
|
|
127
|
+
"valueToData": {
|
|
128
|
+
"type": "CONSTANT",
|
|
129
|
+
"constantValue": false,
|
|
130
|
+
"valueToDataFunction": "/* Convert input boolean value to RPC parameters or attribute/time-series value */\nreturn value;"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"defaultWidgetActionSettings": null
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"properties": [
|
|
137
|
+
{
|
|
138
|
+
"id": "openedColor",
|
|
139
|
+
"name": "{i18n:scada.symbol.opened-color}",
|
|
140
|
+
"type": "color",
|
|
141
|
+
"default": "#1C943E",
|
|
142
|
+
"required": null,
|
|
143
|
+
"subLabel": null,
|
|
144
|
+
"divider": null,
|
|
145
|
+
"fieldSuffix": null,
|
|
146
|
+
"disableOnProperty": null,
|
|
147
|
+
"rowClass": "",
|
|
148
|
+
"fieldClass": "",
|
|
149
|
+
"min": null,
|
|
150
|
+
"max": null,
|
|
151
|
+
"step": null
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "closedColor",
|
|
155
|
+
"name": "{i18n:scada.symbol.closed-color}",
|
|
156
|
+
"type": "color",
|
|
157
|
+
"default": "#696969",
|
|
158
|
+
"required": null,
|
|
159
|
+
"subLabel": null,
|
|
160
|
+
"divider": null,
|
|
161
|
+
"fieldSuffix": null,
|
|
162
|
+
"disableOnProperty": null,
|
|
163
|
+
"rowClass": "",
|
|
164
|
+
"fieldClass": "",
|
|
165
|
+
"min": null,
|
|
166
|
+
"max": null,
|
|
167
|
+
"step": null
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"id": "openedRotationAngle",
|
|
171
|
+
"name": "{i18n:scada.symbol.opened-rotation-angle}",
|
|
172
|
+
"type": "number",
|
|
173
|
+
"default": 0,
|
|
174
|
+
"required": true,
|
|
175
|
+
"subLabel": null,
|
|
176
|
+
"divider": null,
|
|
177
|
+
"fieldSuffix": null,
|
|
178
|
+
"disableOnProperty": null,
|
|
179
|
+
"rowClass": "",
|
|
180
|
+
"fieldClass": "",
|
|
181
|
+
"min": -179,
|
|
182
|
+
"max": 179,
|
|
183
|
+
"step": null
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": "closedRotationAngle",
|
|
187
|
+
"name": "{i18n:scada.symbol.closed-rotation-angle}",
|
|
188
|
+
"type": "number",
|
|
189
|
+
"default": 90,
|
|
190
|
+
"required": true,
|
|
191
|
+
"subLabel": null,
|
|
192
|
+
"divider": null,
|
|
193
|
+
"fieldSuffix": null,
|
|
194
|
+
"disableOnProperty": null,
|
|
195
|
+
"rowClass": "",
|
|
196
|
+
"fieldClass": "",
|
|
197
|
+
"min": -179,
|
|
198
|
+
"max": 179,
|
|
199
|
+
"step": null
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
}]]></tb:metadata>
|
|
203
|
+
<defs>
|
|
204
|
+
<linearGradient id="paint0_linear_1595_99338" x1="58.72" x2="58.3" y1="46.5" y2="153.51" gradientTransform="translate(-1.1e-6)" gradientUnits="userSpaceOnUse">
|
|
205
|
+
<stop stop-color="#020202" stop-opacity=".35" offset="0"/>
|
|
206
|
+
<stop stop-color="#020202" stop-opacity=".12" offset=".18316"/>
|
|
207
|
+
<stop stop-color="#fff" stop-opacity=".08" offset=".35085"/>
|
|
208
|
+
<stop stop-color="#fff" stop-opacity=".25" offset=".49829"/>
|
|
209
|
+
<stop stop-color="#fff" stop-opacity=".08" offset=".64825"/>
|
|
210
|
+
<stop stop-color="#020202" stop-opacity=".12" offset=".82318"/>
|
|
211
|
+
<stop stop-color="#020202" stop-opacity=".35" offset="1"/>
|
|
212
|
+
</linearGradient>
|
|
213
|
+
<filter id="filter0_d_1595_99338" x="65" y="65" width="131" height="70" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse">
|
|
214
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
215
|
+
<feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
216
|
+
<feOffset/>
|
|
217
|
+
<feGaussianBlur stdDeviation="4"/>
|
|
218
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
219
|
+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
220
|
+
<feBlend in2="BackgroundImageFix" result="effect1_dropShadow_1595_99338"/>
|
|
221
|
+
<feBlend in="SourceGraphic" in2="effect1_dropShadow_1595_99338" result="shape"/>
|
|
222
|
+
</filter>
|
|
223
|
+
<filter id="filter1_d_1595_99338" x="100" y="76.174" width="100" height="47.652" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse">
|
|
224
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
225
|
+
<feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
226
|
+
<feOffset/>
|
|
227
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
228
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
229
|
+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
230
|
+
<feBlend in2="BackgroundImageFix" result="effect1_dropShadow_1595_99338"/>
|
|
231
|
+
<feBlend in="SourceGraphic" in2="effect1_dropShadow_1595_99338" result="shape"/>
|
|
232
|
+
</filter>
|
|
233
|
+
<radialGradient id="paint1_radial_1595_99338" cx="0" cy="0" r="1" gradientTransform="matrix(0 10.846 -89.342 0 180.83 100.52)" gradientUnits="userSpaceOnUse">
|
|
234
|
+
<stop stop-color="#fff" offset="0"/>
|
|
235
|
+
<stop stop-color="#9B9B9B" offset="1"/>
|
|
236
|
+
</radialGradient>
|
|
237
|
+
<filter id="filter2_ii_1595_99338" x="69.875" y="69.875" width="60.25" height="60.25" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse">
|
|
238
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
239
|
+
<feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
240
|
+
<feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
241
|
+
<feOffset dx="3.12497" dy="-3.12497"/>
|
|
242
|
+
<feGaussianBlur stdDeviation="3.12497"/>
|
|
243
|
+
<feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/>
|
|
244
|
+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>
|
|
245
|
+
<feBlend in2="shape" result="effect1_innerShadow_1595_99338"/>
|
|
246
|
+
<feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
247
|
+
<feOffset dx="-3.12497" dy="3.12497"/>
|
|
248
|
+
<feGaussianBlur stdDeviation="3.12497"/>
|
|
249
|
+
<feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/>
|
|
250
|
+
<feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"/>
|
|
251
|
+
<feBlend in2="effect1_innerShadow_1595_99338" result="effect2_innerShadow_1595_99338"/>
|
|
252
|
+
</filter>
|
|
253
|
+
<filter id="filter3_i_1595_99338" x="72" y="77" width="51" height="51" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse">
|
|
254
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
255
|
+
<feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
256
|
+
<feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
257
|
+
<feOffset dx="-5" dy="5"/>
|
|
258
|
+
<feGaussianBlur stdDeviation="4"/>
|
|
259
|
+
<feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/>
|
|
260
|
+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/>
|
|
261
|
+
<feBlend in2="shape" result="effect1_innerShadow_1595_99338"/>
|
|
262
|
+
</filter>
|
|
263
|
+
</defs><rect x="1.5" y="51.5" width="11" height="97" rx="5.5" fill="#d9d9d9" stroke="#727171" stroke-width="3"/><path d="m14 63.075s25.882-5.5691 43-8.8079c16.632-3.1469 26.182-3.767 43-3.767 16.818 0 26.368 0.6201 43 3.767 17.118 3.2388 43 8.8079 43 8.8079v73.833s-25.882 4.816-43 8.055c-16.632 3.147-26.182 4.374-43 4.52-16.807 0.147-26.377-0.639-43-3.767-17.177-3.231-43-8.808-43-8.808z" fill="#1c943e" tb:tag="background"/><path d="m14 63.075s25.882-5.5691 43-8.8079c16.632-3.1469 26.182-3.767 43-3.767 16.818 0 26.368 0.6201 43 3.767 17.118 3.2388 43 8.8079 43 8.8079v73.833s-25.882 4.816-43 8.055c-16.632 3.147-26.182 4.374-43 4.52-16.807 0.147-26.377-0.639-43-3.767-17.177-3.231-43-8.808-43-8.808z" fill="url(#paint0_linear_1595_99338)" style="fill:url(#paint0_linear_1595_99338)"/><path d="m181.38 63.621c1.321 0.281 2.384 0.5079 3.123 0.6661v71.375c-0.738 0.137-1.787 0.333-3.086 0.575-2.694 0.502-6.465 1.205-10.77 2.01-8.611 1.608-19.362 3.622-27.923 5.242-16.568 3.135-26.026 4.349-42.734 4.494-16.714 0.146-26.186-0.632-42.71-3.741-8.5733-1.613-19.311-3.812-27.912-5.61-4.299-0.898-8.0616-1.696-10.749-2.269-1.3186-0.281-2.3784-0.508-3.1159-0.666v-71.41c0.7391-0.1582 1.8016-0.3851 3.1235-0.6661 2.6925-0.5724 6.4608-1.3694 10.764-2.2675 8.6083-1.7967 19.347-3.9963 27.892-5.6129 16.521-3.1259 25.975-3.7409 42.721-3.7409 16.746 0 26.2 0.615 42.721 3.7409 8.545 1.6166 19.283 3.8162 27.892 5.6129 4.303 0.8981 8.071 1.6951 10.764 2.2675z" stroke="#000" stroke-opacity=".12" stroke-width="3"/><rect x="187.5" y="51.5" width="11" height="97" rx="5.5" fill="#d9d9d9" stroke="#727171" stroke-width="3"/><g tb:tag="wheel">
|
|
264
|
+
<path d="m100 80.174s21.238 7.876 45.5 8c14.198 0.0726 28.327-1.0525 38.64-2.1526 8.35-0.8908 15.86 5.581 15.86 13.979 0 8.3981-7.51 14.869-15.86 13.979-10.313-1.1-24.442-2.226-38.64-2.153-24.262 0.124-45.5 8-45.5 8z" fill="url(#paint1_radial_1595_99338)" style="fill:url(#paint1_radial_1595_99338);filter:url(#filter1_d_1595_99338)"/>
|
|
265
|
+
<path d="m100.5 119.12v-38.234c0.09 0.0315 0.19 0.0659 0.298 0.1029 0.632 0.217 1.561 0.5266 2.75 0.8983 2.38 0.7432 5.804 1.7348 9.988 2.7301 8.365 1.99 19.78 3.9978 31.961 4.06 14.224 0.0727 28.373-1.0542 38.696-2.1554 8.068-0.8607 15.307 5.3942 15.307 13.482 0 8.0871-7.239 14.342-15.307 13.481-10.323-1.101-24.472-2.228-38.696-2.155-12.181 0.062-23.596 2.07-31.961 4.06-4.184 0.995-7.608 1.987-9.988 2.73-1.189 0.372-2.118 0.681-2.75 0.898-0.108 0.037-0.208 0.072-0.298 0.103z" stroke="#000" stroke-opacity=".12" style="filter:url(#filter1_d_1595_99338)"/>
|
|
266
|
+
</g><g filter="url(#filter2_ii_1595_99338)">
|
|
267
|
+
<circle cx="100" cy="100" r="27" fill="#d9d9d9"/>
|
|
268
|
+
</g><path d="m123 100c0 12.703-10.297 23-23 23-12.702 0-23-10.297-23-23 0-12.702 10.298-23 23-23 12.703 0 23 10.298 23 23z" fill="#000" fill-opacity=".05" style="filter:url(#filter0_d_1595_99338)"/><g filter="url(#filter3_i_1595_99338)">
|
|
269
|
+
<path d="m123 100c0 12.703-10.297 23-23 23-12.702 0-23-10.297-23-23 0-12.702 10.298-23 23-23 12.703 0 23 10.298 23 23z" fill="#1c943e" tb:tag="background"/>
|
|
270
|
+
</g><path d="m122 100c0 12.15-9.85 22-22 22-12.15 0-22-9.85-22-22 0-12.15 9.8497-22 22-22 12.15 0 22 9.8497 22 22z" stroke="#fff" stroke-width="2"/><path d="m97.283 90.614c0-0.647-0.6112-1.1214-1.2155-0.8901-4.133 1.5825-7.0677 5.5867-7.0677 10.276 0 6.0751 4.9249 11 11 11 6.075 0 11-4.925 11-11 0-4.5642-2.78-8.4791-6.739-10.144-0.609-0.2563-1.243 0.2209-1.243 0.882 0 0.4223 0.268 0.7938 0.655 0.9649 3.18 1.4098 5.398 4.5944 5.398 8.2973 0 5.0101-4.061 9.0711-9.071 9.0711-5.01 0-9.0714-4.061-9.0714-9.0711 0-3.8068 2.3447-7.0658 5.6688-8.4117 0.4019-0.1628 0.6858-0.541 0.6858-0.9746z" clip-rule="evenodd" fill="#fff" fill-rule="evenodd"/><path d="m99.514 87.637c0-0.3519 0.2852-0.6372 0.6373-0.6372 0.352 0 0.637 0.2853 0.637 0.6372v10.401c0 0.3519-0.285 0.6372-0.637 0.6372-0.3521 0-0.6373-0.2853-0.6373-0.6372z" fill="#fff"/><rect y="50" width="200" height="100" fill="#000" fill-opacity="0" stroke-width="0" tb:tag="clickArea"/>
|
|
271
|
+
</svg>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:tb="https://thingsboard.io/svg" width="200" height="200" fill="none" version="1.1" viewBox="0 0 200 200"><tb:metadata xmlns=""><![CDATA[{
|
|
2
|
+
"title": "Horizontal broken pipe",
|
|
3
|
+
"description": "Horizontal broken pipe.",
|
|
4
|
+
"searchTags": [
|
|
5
|
+
"pipe",
|
|
6
|
+
"horizontal pipe",
|
|
7
|
+
"broken pipe"
|
|
8
|
+
],
|
|
9
|
+
"widgetSizeX": 1,
|
|
10
|
+
"widgetSizeY": 1,
|
|
11
|
+
"tags": [
|
|
12
|
+
{
|
|
13
|
+
"tag": "clickArea",
|
|
14
|
+
"stateRenderFunction": null,
|
|
15
|
+
"actions": {
|
|
16
|
+
"click": {
|
|
17
|
+
"actionFunction": "ctx.api.callAction(event, 'click');"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"tag": "pipe-background",
|
|
23
|
+
"stateRenderFunction": "var color = ctx.properties.pipeColor;\nelement.attr({fill: color});",
|
|
24
|
+
"actions": null
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"behavior": [
|
|
28
|
+
{
|
|
29
|
+
"id": "click",
|
|
30
|
+
"name": "{i18n:scada.symbol.on-click}",
|
|
31
|
+
"hint": "{i18n:scada.symbol.on-click-hint}",
|
|
32
|
+
"group": null,
|
|
33
|
+
"type": "widgetAction",
|
|
34
|
+
"valueType": "BOOLEAN",
|
|
35
|
+
"trueLabel": null,
|
|
36
|
+
"falseLabel": null,
|
|
37
|
+
"stateLabel": null,
|
|
38
|
+
"defaultGetValueSettings": null,
|
|
39
|
+
"defaultSetValueSettings": null,
|
|
40
|
+
"defaultWidgetActionSettings": {
|
|
41
|
+
"type": "doNothing",
|
|
42
|
+
"targetDashboardStateId": null,
|
|
43
|
+
"openRightLayout": false,
|
|
44
|
+
"setEntityId": false,
|
|
45
|
+
"stateEntityParamName": null
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"properties": [
|
|
50
|
+
{
|
|
51
|
+
"id": "pipeColor",
|
|
52
|
+
"name": "{i18n:scada.symbol.pipe-color}",
|
|
53
|
+
"type": "color",
|
|
54
|
+
"default": "#FFFFFF",
|
|
55
|
+
"required": null,
|
|
56
|
+
"subLabel": null,
|
|
57
|
+
"divider": null,
|
|
58
|
+
"fieldSuffix": null,
|
|
59
|
+
"disableOnProperty": null,
|
|
60
|
+
"rowClass": "",
|
|
61
|
+
"fieldClass": "",
|
|
62
|
+
"min": null,
|
|
63
|
+
"max": null,
|
|
64
|
+
"step": null
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}]]></tb:metadata>
|
|
68
|
+
<g tb:tag="clickArea">
|
|
69
|
+
<path d="m14 64s53.5 0.2293 60.5 0 17-6.5 17-6.5l-14.5 21.5 14.5 6.5-10.5 9 14.5 11-18.5 6.5 10 6-2.5 11.5 7 14s-10-7.5-17-7.5h-60.5v-72z" fill="#fff" tb:tag="pipe-background"/>
|
|
70
|
+
<path d="m14 64s53.5 0.2293 60.5 0 17-6.5 17-6.5l-14.5 21.5 14.5 6.5-10.5 9 14.5 11-18.5 6.5 10 6-2.5 11.5 7 14s-10-7.5-17-7.5h-60.5v-72z" fill="url(#paint0_linear_2474_252376)"/>
|
|
71
|
+
<path d="m86.266 62.02c0.1879-0.0889 0.3731-0.1777 0.5555-0.2661l-12.062 17.886 13.968 6.2614-8.7036 7.4602-1.4118 1.2101 13.759 10.438-15.869 5.576-3.0127 1.058 2.7382 1.643 9.0774 5.447-2.2715 10.448-0.1123 0.517 0.2365 0.473 4.5114 9.023c-0.4206-0.249-0.8606-0.502-1.3163-0.755-3.3898-1.883-7.9357-3.939-11.854-3.939h-59v-68.994l0.8066 0.0033c1.4767 0.0058 3.5942 0.0139 6.1569 0.0228 5.1255 0.0179 12.032 0.0394 19.158 0.0538 14.23 0.0286 29.393 0.0289 32.927-0.0868 3.8302-0.1255 8.3197-1.8722 11.717-3.4792z" stroke="#000" stroke-opacity=".12" stroke-width="3"/>
|
|
72
|
+
<path d="m105.5 56.5s13.5 7.395 18.5 7.5 62 0 62 0v72s-54.5-0.086-62 0-18.5 4.5-18.5 4.5l6-13.5-15-14 16.5-5-7.5-6 6-13-18-13 19.5-4.5-7.5-15z" fill="#fff" tb:tag="pipe-background"/>
|
|
73
|
+
<path d="m105.5 56.5s13.5 7.395 18.5 7.5 62 0 62 0v72s-54.5-0.086-62 0-18.5 4.5-18.5 4.5l6-13.5-15-14 16.5-5-7.5-6 6-13-18-13 19.5-4.5-7.5-15z" fill="url(#paint1_linear_2474_252376)"/>
|
|
74
|
+
<path d="m184.5 65.503v68.995l-0.854-2e-3c-1.505-2e-3 -3.663-5e-3 -6.277-8e-3 -5.227-7e-3 -12.274-0.015-19.555-0.02-14.556-0.011-30.069-0.011-33.831 0.032-3.973 0.046-8.768 1.225-12.479 2.346-1.18 0.357-2.264 0.712-3.197 1.031l4.564-10.268 0.434-0.976-0.782-0.73-13.096-12.223 14.008-4.244 2.727-0.827-2.225-1.78-6.583-5.267 5.508-11.933 0.518-1.1215-1.002-0.7231-15.321-11.065 16.28-3.757 1.857-0.4284-0.852-1.704-5.435-10.87c1.009 0.5039 2.144 1.0566 3.335 1.611 2.02 0.9404 4.222 1.8953 6.25 2.6248 1.981 0.7123 3.962 1.2726 5.476 1.3044 2.522 0.0529 18.049 0.0528 32.908 0.0397 7.438-0.0066 14.72-0.0164 20.142-0.0246 2.711-0.0041 4.957-0.0078 6.526-0.0105l0.956-0.0017z" stroke="#000" stroke-opacity=".12" stroke-width="3"/>
|
|
75
|
+
<rect x="187.5" y="51.5" width="11" height="97" rx="5.5" fill="#D9D9D9" stroke="#727171" stroke-width="3"/>
|
|
76
|
+
<rect x="1.5" y="51.5" width="11" height="97" rx="5.5" fill="#D9D9D9" stroke="#727171" stroke-width="3"/>
|
|
77
|
+
</g><defs>
|
|
78
|
+
<linearGradient id="paint0_linear_2474_252376" x1="32.98" x2="32.532" y1="64" y2="136" gradientUnits="userSpaceOnUse">
|
|
79
|
+
<stop stop-color="#727171" offset="0"/>
|
|
80
|
+
<stop stop-color="#727171" stop-opacity=".35" offset=".26388"/>
|
|
81
|
+
<stop stop-color="#727171" stop-opacity=".1" offset=".41759"/>
|
|
82
|
+
<stop stop-color="#fff" stop-opacity="0" offset=".49829"/>
|
|
83
|
+
<stop stop-color="#727171" stop-opacity=".1" offset=".58094"/>
|
|
84
|
+
<stop stop-color="#727171" stop-opacity=".35" offset=".71855"/>
|
|
85
|
+
<stop stop-color="#727171" offset="1"/>
|
|
86
|
+
</linearGradient>
|
|
87
|
+
<linearGradient id="paint1_linear_2474_252376" x1="129.76" x2="129.33" y1="64" y2="136" gradientUnits="userSpaceOnUse">
|
|
88
|
+
<stop stop-color="#727171" offset="0"/>
|
|
89
|
+
<stop stop-color="#727171" stop-opacity=".35" offset=".26388"/>
|
|
90
|
+
<stop stop-color="#727171" stop-opacity=".1" offset=".41759"/>
|
|
91
|
+
<stop stop-color="#fff" stop-opacity="0" offset=".49829"/>
|
|
92
|
+
<stop stop-color="#727171" stop-opacity=".1" offset=".58094"/>
|
|
93
|
+
<stop stop-color="#727171" stop-opacity=".35" offset=".71855"/>
|
|
94
|
+
<stop stop-color="#727171" offset="1"/>
|
|
95
|
+
</linearGradient>
|
|
96
|
+
</defs>
|
|
97
|
+
</svg>
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:tb="https://thingsboard.io/svg" width="200" height="200" fill="none" version="1.1" viewBox="0 0 200 200"><tb:metadata xmlns=""><![CDATA[{
|
|
2
|
+
"title": "HP Horizontal connector",
|
|
3
|
+
"description": "Horizontal connector with an optional directional arrow to visually indicate flow.",
|
|
4
|
+
"widgetSizeX": 1,
|
|
5
|
+
"widgetSizeY": 1,
|
|
6
|
+
"stateRenderFunction": "const {\n flowAnimation,\n arrowDirection: flowDirection,\n flowAnimationSpeed\n} = ctx.values;\nconst {\n flowAnimationWidth: lineWidth,\n flowAnimationColor: lineColor,\n flowStyleDash: dashWidth,\n flowStyleGap: dashGap,\n flowDashCap: dashCap\n} = ctx.properties;\nconst line = ctx.tags.line[0].attr('d');\nconst lineReversed = 'M 200,100 H 0';\nconst animation = ctx.tags.animationGroup[0];\nconst duration = 1 / flowAnimationSpeed;\n\nlet animateFlow = ctx.api.connectorAnimation(animation);\n\nif (flowAnimation) {\n if (!animateFlow) {\n animateFlow = ctx.api.connectorAnimate(animation, line, lineReversed).flowAppearance(lineWidth, lineColor, dashCap, dashWidth, dashGap).duration(duration).direction(flowDirection).play();\n } else {\n animateFlow.duration(duration).direction(flowDirection).play();\n }\n} else {\n if (animateFlow) {\n animateFlow.finish();\n }\n}\n\n",
|
|
7
|
+
"tags": [
|
|
8
|
+
{
|
|
9
|
+
"tag": "arrow",
|
|
10
|
+
"stateRenderFunction": "var arrow = ctx.values.arrow;\nif (arrow) {\n element.show();\n element.stroke(ctx.properties.lineColor).fill(ctx.properties.lineColor);\n var arrowDirection = ctx.values.arrowDirection;\n var direticon = element.remember('direticon');\n var angle = arrowDirection ? 0 : 180;\n if (!direticon) {\n element.transform({rotate: angle});\n } else {\n ctx.api.transform({rotate: angle, originY: 100});\n element.remember('direticon', false);\n }\n} else {\n element.hide();\n}",
|
|
11
|
+
"actions": null
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"tag": "line",
|
|
15
|
+
"stateRenderFunction": "element.stroke(ctx.properties.lineColor);\nelement.attr({'stroke-width': ctx.properties.mainLineSize});",
|
|
16
|
+
"actions": null
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"behavior": [
|
|
20
|
+
{
|
|
21
|
+
"id": "arrow",
|
|
22
|
+
"name": "{i18n:scada.symbol.arrow-presence}",
|
|
23
|
+
"hint": "{i18n:scada.symbol.arrow-presence-hint}",
|
|
24
|
+
"group": null,
|
|
25
|
+
"type": "value",
|
|
26
|
+
"valueType": "BOOLEAN",
|
|
27
|
+
"trueLabel": "{i18n:scada.symbol.present}",
|
|
28
|
+
"falseLabel": "{i18n:scada.symbol.absent}",
|
|
29
|
+
"stateLabel": "{i18n:scada.symbol.arrow-present}",
|
|
30
|
+
"defaultGetValueSettings": {
|
|
31
|
+
"action": "DO_NOTHING",
|
|
32
|
+
"defaultValue": true,
|
|
33
|
+
"executeRpc": {
|
|
34
|
+
"method": "getState",
|
|
35
|
+
"requestTimeout": 5000,
|
|
36
|
+
"requestPersistent": false,
|
|
37
|
+
"persistentPollingInterval": 1000
|
|
38
|
+
},
|
|
39
|
+
"getAttribute": {
|
|
40
|
+
"scope": null,
|
|
41
|
+
"key": "state"
|
|
42
|
+
},
|
|
43
|
+
"getTimeSeries": {
|
|
44
|
+
"key": "state"
|
|
45
|
+
},
|
|
46
|
+
"dataToValue": {
|
|
47
|
+
"type": "NONE",
|
|
48
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;",
|
|
49
|
+
"compareToValue": true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"defaultSetValueSettings": null,
|
|
53
|
+
"defaultWidgetActionSettings": null
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "flowAnimation",
|
|
57
|
+
"name": "{i18n:scada.symbol.flow-animation}",
|
|
58
|
+
"hint": "{i18n:scada.symbol.flow-animation-hint}",
|
|
59
|
+
"group": null,
|
|
60
|
+
"type": "value",
|
|
61
|
+
"valueType": "BOOLEAN",
|
|
62
|
+
"trueLabel": "{i18n:scada.symbol.present}",
|
|
63
|
+
"falseLabel": "{i18n:scada.symbol.absent}",
|
|
64
|
+
"stateLabel": "{i18n:scada.symbol.flow-present}",
|
|
65
|
+
"defaultGetValueSettings": {
|
|
66
|
+
"action": "DO_NOTHING",
|
|
67
|
+
"defaultValue": false,
|
|
68
|
+
"executeRpc": {
|
|
69
|
+
"method": "getState",
|
|
70
|
+
"requestTimeout": 5000,
|
|
71
|
+
"requestPersistent": false,
|
|
72
|
+
"persistentPollingInterval": 1000
|
|
73
|
+
},
|
|
74
|
+
"getAttribute": {
|
|
75
|
+
"key": "state",
|
|
76
|
+
"scope": null
|
|
77
|
+
},
|
|
78
|
+
"getTimeSeries": {
|
|
79
|
+
"key": "state"
|
|
80
|
+
},
|
|
81
|
+
"getAlarmStatus": {
|
|
82
|
+
"severityList": null,
|
|
83
|
+
"typeList": null
|
|
84
|
+
},
|
|
85
|
+
"dataToValue": {
|
|
86
|
+
"type": "NONE",
|
|
87
|
+
"compareToValue": true,
|
|
88
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"defaultSetValueSettings": null,
|
|
92
|
+
"defaultWidgetActionSettings": null
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "arrowDirection",
|
|
96
|
+
"name": "{i18n:scada.symbol.arrow-direction}",
|
|
97
|
+
"hint": "{i18n:scada.symbol.arrow-direction-hint}",
|
|
98
|
+
"group": null,
|
|
99
|
+
"type": "value",
|
|
100
|
+
"valueType": "BOOLEAN",
|
|
101
|
+
"trueLabel": "{i18n:scada.symbol.forward}",
|
|
102
|
+
"falseLabel": "{i18n:scada.symbol.reverse}",
|
|
103
|
+
"stateLabel": "{i18n:scada.symbol.forward}",
|
|
104
|
+
"defaultGetValueSettings": {
|
|
105
|
+
"action": "DO_NOTHING",
|
|
106
|
+
"defaultValue": true,
|
|
107
|
+
"executeRpc": {
|
|
108
|
+
"method": "getState",
|
|
109
|
+
"requestTimeout": 5000,
|
|
110
|
+
"requestPersistent": false,
|
|
111
|
+
"persistentPollingInterval": 1000
|
|
112
|
+
},
|
|
113
|
+
"getAttribute": {
|
|
114
|
+
"scope": null,
|
|
115
|
+
"key": "state"
|
|
116
|
+
},
|
|
117
|
+
"getTimeSeries": {
|
|
118
|
+
"key": "state"
|
|
119
|
+
},
|
|
120
|
+
"dataToValue": {
|
|
121
|
+
"type": "NONE",
|
|
122
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;",
|
|
123
|
+
"compareToValue": true
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"defaultSetValueSettings": null,
|
|
127
|
+
"defaultWidgetActionSettings": null
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "flowAnimationSpeed",
|
|
131
|
+
"name": "{i18n:scada.symbol.flow-animation-speed}",
|
|
132
|
+
"hint": "{i18n:scada.symbol.flow-animation-speed-hint}",
|
|
133
|
+
"group": null,
|
|
134
|
+
"type": "value",
|
|
135
|
+
"valueType": "DOUBLE",
|
|
136
|
+
"trueLabel": null,
|
|
137
|
+
"falseLabel": null,
|
|
138
|
+
"stateLabel": null,
|
|
139
|
+
"defaultGetValueSettings": {
|
|
140
|
+
"action": "DO_NOTHING",
|
|
141
|
+
"defaultValue": 1,
|
|
142
|
+
"executeRpc": {
|
|
143
|
+
"method": "getState",
|
|
144
|
+
"requestTimeout": 5000,
|
|
145
|
+
"requestPersistent": false,
|
|
146
|
+
"persistentPollingInterval": 1000
|
|
147
|
+
},
|
|
148
|
+
"getAttribute": {
|
|
149
|
+
"scope": null,
|
|
150
|
+
"key": "state"
|
|
151
|
+
},
|
|
152
|
+
"getTimeSeries": {
|
|
153
|
+
"key": "state"
|
|
154
|
+
},
|
|
155
|
+
"getAlarmStatus": {
|
|
156
|
+
"severityList": null,
|
|
157
|
+
"typeList": null
|
|
158
|
+
},
|
|
159
|
+
"dataToValue": {
|
|
160
|
+
"type": "NONE",
|
|
161
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"defaultSetValueSettings": null,
|
|
165
|
+
"defaultWidgetActionSettings": null
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"properties": [
|
|
169
|
+
{
|
|
170
|
+
"id": "mainLineSize",
|
|
171
|
+
"name": "{i18n:scada.symbol.line}",
|
|
172
|
+
"type": "number",
|
|
173
|
+
"default": 6,
|
|
174
|
+
"required": true,
|
|
175
|
+
"divider": false,
|
|
176
|
+
"fieldSuffix": "px",
|
|
177
|
+
"min": 0,
|
|
178
|
+
"max": 99,
|
|
179
|
+
"step": 1,
|
|
180
|
+
"disabled": false,
|
|
181
|
+
"visible": true
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"id": "lineColor",
|
|
185
|
+
"name": "{i18n:scada.symbol.line}",
|
|
186
|
+
"type": "color",
|
|
187
|
+
"default": "#1A1A1A",
|
|
188
|
+
"disabled": false,
|
|
189
|
+
"visible": true
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"id": "flowAnimationWidth",
|
|
193
|
+
"name": "{i18n:scada.symbol.flow-line}",
|
|
194
|
+
"group": "{i18n:scada.symbol.flow}",
|
|
195
|
+
"type": "number",
|
|
196
|
+
"default": 4,
|
|
197
|
+
"fieldSuffix": "px",
|
|
198
|
+
"min": 1,
|
|
199
|
+
"step": 1,
|
|
200
|
+
"disabled": false,
|
|
201
|
+
"visible": true
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "flowAnimationColor",
|
|
205
|
+
"name": "{i18n:scada.symbol.flow-line}",
|
|
206
|
+
"group": "{i18n:scada.symbol.flow}",
|
|
207
|
+
"type": "color",
|
|
208
|
+
"default": "#C8DFF7",
|
|
209
|
+
"disabled": false,
|
|
210
|
+
"visible": true
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"id": "flowStyleDash",
|
|
214
|
+
"name": "{i18n:scada.symbol.flow-line-style}",
|
|
215
|
+
"hint": "{i18n:scada.symbol.flow-style-hint}",
|
|
216
|
+
"group": "{i18n:scada.symbol.flow}",
|
|
217
|
+
"type": "number",
|
|
218
|
+
"default": 10,
|
|
219
|
+
"required": true,
|
|
220
|
+
"subLabel": "{i18n:scada.symbol.dash}",
|
|
221
|
+
"divider": false,
|
|
222
|
+
"fieldSuffix": "px",
|
|
223
|
+
"min": 0,
|
|
224
|
+
"step": 1,
|
|
225
|
+
"disabled": false,
|
|
226
|
+
"visible": true
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "flowStyleGap",
|
|
230
|
+
"name": "{i18n:scada.symbol.flow-line-style}",
|
|
231
|
+
"hint": "{i18n:scada.symbol.flow-style-hint}",
|
|
232
|
+
"group": "{i18n:scada.symbol.flow}",
|
|
233
|
+
"type": "number",
|
|
234
|
+
"default": 10,
|
|
235
|
+
"subLabel": "{i18n:scada.symbol.gap}",
|
|
236
|
+
"fieldSuffix": "px",
|
|
237
|
+
"min": 0,
|
|
238
|
+
"step": 1,
|
|
239
|
+
"disabled": false,
|
|
240
|
+
"visible": true
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"id": "flowDashCap",
|
|
244
|
+
"name": "{i18n:scada.symbol.flow-dash-cap}",
|
|
245
|
+
"group": "{i18n:scada.symbol.flow}",
|
|
246
|
+
"type": "select",
|
|
247
|
+
"default": "butt",
|
|
248
|
+
"items": [
|
|
249
|
+
{
|
|
250
|
+
"value": "butt",
|
|
251
|
+
"label": "{i18n:scada.symbol.dash-cap-butt}"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"value": "round",
|
|
255
|
+
"label": "{i18n:scada.symbol.dash-cap-round}"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"value": "square",
|
|
259
|
+
"label": "{i18n:scada.symbol.dash-cap-square}"
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"disabled": false,
|
|
263
|
+
"visible": true
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
}]]></tb:metadata>
|
|
267
|
+
<path d="M0 100H200" stroke="#1A1A1A" stroke-width="6" tb:tag="line"/><path d="M129 100L71 129V71L129 100Z" fill="#1A1A1A" tb:tag="arrow"/><g tb:tag="animationGroup"/>
|
|
268
|
+
</svg>
|