@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
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# \<widget-SCADA>
|
|
2
|
+
|
|
3
|
+
This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i @record-evolution/widget-scada
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<script type="module">
|
|
15
|
+
import '@record-evolution/widget-scada/widget-scada.js'
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<widget-scada-0.0.1></widget-scada-0.0.1>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Expected data format
|
|
22
|
+
|
|
23
|
+
Please take a look at the src/default-data.json to see what data is expected to make the widget show content.
|
|
24
|
+
|
|
25
|
+
The following format represents the available data :
|
|
26
|
+
|
|
27
|
+
```js
|
|
28
|
+
data: {
|
|
29
|
+
settings: {
|
|
30
|
+
title: string,
|
|
31
|
+
subTitle: string,
|
|
32
|
+
minGauge: number,
|
|
33
|
+
maxGauge: number,
|
|
34
|
+
style: {
|
|
35
|
+
needleColor: string,
|
|
36
|
+
sections: number,
|
|
37
|
+
backgroundColor: string[]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
gaugeValue: Number
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Local Demo
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm start
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
To run a local development server that serves the basic demo located in `demo/index.html`
|
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:tb="https://thingsboard.io/svg" width="400" height="400" fill="none" version="1.1" viewBox="0 0 400 400"><tb:metadata xmlns=""><![CDATA[{
|
|
2
|
+
"title": "HP 3 phase voltage relay",
|
|
3
|
+
"description": "Three phase voltage relay with various states and indications.",
|
|
4
|
+
"searchTags": [
|
|
5
|
+
"energy",
|
|
6
|
+
"power",
|
|
7
|
+
"protection"
|
|
8
|
+
],
|
|
9
|
+
"widgetSizeX": 2,
|
|
10
|
+
"widgetSizeY": 2,
|
|
11
|
+
"tags": [
|
|
12
|
+
{
|
|
13
|
+
"tag": "background",
|
|
14
|
+
"stateRenderFunction": "var color = ctx.properties.stoppedColor;\nif (ctx.values.running) {\n color = ctx.properties.runningColor;\n}\nelement.attr({fill: color});",
|
|
15
|
+
"actions": null
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"tag": "clickArea",
|
|
19
|
+
"stateRenderFunction": null,
|
|
20
|
+
"actions": {
|
|
21
|
+
"click": {
|
|
22
|
+
"actionFunction": "ctx.api.callAction(event, 'click');"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"tag": "critical",
|
|
28
|
+
"stateRenderFunction": "element.attr({fill: ctx.properties.criticalColor});\nif (ctx.values.critical) {\n element.show();\n} else {\n element.hide();\n}\n\nvar elementCriticalAnimation = element.remember('criticalAnimation');\nvar criticalAnimation = ctx.values.critical && ctx.values.criticalAnimation;\n\nif (elementCriticalAnimation !== criticalAnimation) {\n element.remember('criticalAnimation', criticalAnimation);\n if (criticalAnimation) {\n ctx.api.cssAnimate(element, 500).attr({opacity: 0.15}).loop(0, true);\n } else {\n ctx.api.resetCssAnimation(element);\n }\n}\n\n",
|
|
29
|
+
"actions": {
|
|
30
|
+
"click": {
|
|
31
|
+
"actionFunction": "ctx.api.callAction(event, 'criticalClick');"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"tag": "firstPhaseIndicator",
|
|
37
|
+
"stateRenderFunction": "if (ctx.values.running) {\n element.stroke(ctx.properties.phaseIndicatorColor);\n if (!ctx.values.firstPhaseVoltage) {\n element.fill('#fff');\n } else {\n element.fill(ctx.properties.phaseIndicatorColor);\n }\n} else {\n element.stroke('#000');\n element.fill(ctx.properties.stoppedColor);\n}",
|
|
38
|
+
"actions": null
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"tag": "firstPhaseValue",
|
|
42
|
+
"stateRenderFunction": "if (ctx.values.running) {\n element.show();\n ctx.api.font(element, ctx.properties.currentVoltageFont, ctx.properties.currentVoltageColor);\n ctx.api.text(element, ctx.api.formatValue(ctx.values.firstPhaseVoltage, {units: ctx.properties.units, decimals: 0, ignoreUnitSymbol: true}));\n} else {\n element.hide();\n}",
|
|
43
|
+
"actions": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"tag": "secondPhaseIndicator",
|
|
47
|
+
"stateRenderFunction": "if (ctx.values.running) {\n element.stroke(ctx.properties.phaseIndicatorColor);\n if (!ctx.values.secondPhaseVoltage) {\n element.fill('#fff');\n } else {\n element.fill(ctx.properties.phaseIndicatorColor);\n }\n} else {\n element.stroke('#000');\n element.fill(ctx.properties.stoppedColor);\n}",
|
|
48
|
+
"actions": null
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"tag": "secondPhaseValue",
|
|
52
|
+
"stateRenderFunction": "if (ctx.values.running) {\n element.show();\n ctx.api.font(element, ctx.properties.currentVoltageFont, ctx.properties.currentVoltageColor);\n ctx.api.text(element, ctx.api.formatValue(ctx.values.secondPhaseVoltage, {units: ctx.properties.units, decimals: 0, ignoreUnitSymbol: true}));\n} else {\n element.hide();\n}",
|
|
53
|
+
"actions": null
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"tag": "thirdPhaseIndicator",
|
|
57
|
+
"stateRenderFunction": "if (ctx.values.running) {\n element.stroke(ctx.properties.phaseIndicatorColor);\n if (!ctx.values.thirdPhaseVoltage) {\n element.fill('#fff');\n } else {\n element.fill(ctx.properties.phaseIndicatorColor);\n }\n} else {\n element.stroke('#000');\n element.fill(ctx.properties.stoppedColor);\n}",
|
|
58
|
+
"actions": null
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"tag": "thirdPhaseValue",
|
|
62
|
+
"stateRenderFunction": "if (ctx.values.running) {\n element.show();\n ctx.api.font(element, ctx.properties.currentVoltageFont, ctx.properties.currentVoltageColor);\n ctx.api.text(element, ctx.api.formatValue(ctx.values.thirdPhaseVoltage, {units: ctx.properties.units, decimals: 0, ignoreUnitSymbol: true}));\n} else {\n element.hide();\n}",
|
|
63
|
+
"actions": null
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"tag": "units",
|
|
67
|
+
"stateRenderFunction": "if (ctx.properties.showUnits) {\n element.show();\n ctx.api.font(element, ctx.properties.unitsFont, ctx.properties.unitsColor);\n ctx.api.text(element, ctx.api.unitSymbol(ctx.properties.units));\n} else {\n element.hide();\n}",
|
|
68
|
+
"actions": null
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"tag": "value-box",
|
|
72
|
+
"stateRenderFunction": "var color = ctx.properties.stoppedColor;\nif (ctx.values.running) {\n color = ctx.properties.valueBoxBackground;\n}\nelement.attr({fill: color});",
|
|
73
|
+
"actions": null
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"tag": "warning",
|
|
77
|
+
"stateRenderFunction": "element.attr({fill: ctx.properties.warningColor});\nvar warning = ctx.values.warning && !(ctx.values.warning && ctx.values.critical)\nif (warning) {\n element.show();\n} else {\n element.hide();\n}\n\nvar elementCriticalAnimation = element.remember('criticalAnimation');\nvar criticalAnimation = warning && ctx.values.criticalAnimation;\n\nif (elementCriticalAnimation !== criticalAnimation) {\n element.remember('criticalAnimation', criticalAnimation);\n if (criticalAnimation) {\n ctx.api.cssAnimate(element, 500).attr({opacity: 0.15}).loop(0, true);\n } else {\n ctx.api.resetCssAnimation(element);\n }\n}\n",
|
|
78
|
+
"actions": {
|
|
79
|
+
"click": {
|
|
80
|
+
"actionFunction": "ctx.api.callAction(event, 'warningClick');"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"behavior": [
|
|
86
|
+
{
|
|
87
|
+
"id": "running",
|
|
88
|
+
"name": "{i18n:scada.symbol.running}",
|
|
89
|
+
"hint": "{i18n:scada.symbol.running-hint}",
|
|
90
|
+
"group": null,
|
|
91
|
+
"type": "value",
|
|
92
|
+
"valueType": "BOOLEAN",
|
|
93
|
+
"trueLabel": null,
|
|
94
|
+
"falseLabel": null,
|
|
95
|
+
"stateLabel": "{i18n:scada.symbol.running}",
|
|
96
|
+
"defaultGetValueSettings": {
|
|
97
|
+
"action": "GET_ATTRIBUTE",
|
|
98
|
+
"defaultValue": false,
|
|
99
|
+
"executeRpc": {
|
|
100
|
+
"method": "getState",
|
|
101
|
+
"requestTimeout": 5000,
|
|
102
|
+
"requestPersistent": false,
|
|
103
|
+
"persistentPollingInterval": 1000
|
|
104
|
+
},
|
|
105
|
+
"getAttribute": {
|
|
106
|
+
"scope": "SHARED_SCOPE",
|
|
107
|
+
"key": "running"
|
|
108
|
+
},
|
|
109
|
+
"getTimeSeries": {
|
|
110
|
+
"key": "state"
|
|
111
|
+
},
|
|
112
|
+
"getAlarmStatus": {
|
|
113
|
+
"severityList": null,
|
|
114
|
+
"typeList": null
|
|
115
|
+
},
|
|
116
|
+
"dataToValue": {
|
|
117
|
+
"type": "NONE",
|
|
118
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;",
|
|
119
|
+
"compareToValue": true
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"defaultSetValueSettings": null,
|
|
123
|
+
"defaultWidgetActionSettings": null
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "firstPhaseVoltage",
|
|
127
|
+
"name": "{i18n:scada.symbol.first-phase-voltage}",
|
|
128
|
+
"hint": "{i18n:scada.symbol.phase-voltage-hint}",
|
|
129
|
+
"group": null,
|
|
130
|
+
"type": "value",
|
|
131
|
+
"valueType": "DOUBLE",
|
|
132
|
+
"trueLabel": null,
|
|
133
|
+
"falseLabel": null,
|
|
134
|
+
"stateLabel": null,
|
|
135
|
+
"defaultGetValueSettings": {
|
|
136
|
+
"action": "GET_TIME_SERIES",
|
|
137
|
+
"defaultValue": null,
|
|
138
|
+
"executeRpc": {
|
|
139
|
+
"method": "getState",
|
|
140
|
+
"requestTimeout": 5000,
|
|
141
|
+
"requestPersistent": false,
|
|
142
|
+
"persistentPollingInterval": 1000
|
|
143
|
+
},
|
|
144
|
+
"getAttribute": {
|
|
145
|
+
"scope": null,
|
|
146
|
+
"key": "state"
|
|
147
|
+
},
|
|
148
|
+
"getTimeSeries": {
|
|
149
|
+
"key": "firstPhaseVoltage"
|
|
150
|
+
},
|
|
151
|
+
"getAlarmStatus": {
|
|
152
|
+
"severityList": null,
|
|
153
|
+
"typeList": null
|
|
154
|
+
},
|
|
155
|
+
"dataToValue": {
|
|
156
|
+
"type": "NONE",
|
|
157
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"defaultSetValueSettings": null,
|
|
161
|
+
"defaultWidgetActionSettings": null
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "secondPhaseVoltage",
|
|
165
|
+
"name": "{i18n:scada.symbol.second-phase-voltage}",
|
|
166
|
+
"hint": "{i18n:scada.symbol.phase-voltage-hint}",
|
|
167
|
+
"group": null,
|
|
168
|
+
"type": "value",
|
|
169
|
+
"valueType": "DOUBLE",
|
|
170
|
+
"trueLabel": null,
|
|
171
|
+
"falseLabel": null,
|
|
172
|
+
"stateLabel": null,
|
|
173
|
+
"defaultGetValueSettings": {
|
|
174
|
+
"action": "GET_TIME_SERIES",
|
|
175
|
+
"defaultValue": null,
|
|
176
|
+
"executeRpc": {
|
|
177
|
+
"method": "getState",
|
|
178
|
+
"requestTimeout": 5000,
|
|
179
|
+
"requestPersistent": false,
|
|
180
|
+
"persistentPollingInterval": 1000
|
|
181
|
+
},
|
|
182
|
+
"getAttribute": {
|
|
183
|
+
"scope": null,
|
|
184
|
+
"key": "state"
|
|
185
|
+
},
|
|
186
|
+
"getTimeSeries": {
|
|
187
|
+
"key": "secondPhaseVoltage"
|
|
188
|
+
},
|
|
189
|
+
"getAlarmStatus": {
|
|
190
|
+
"severityList": null,
|
|
191
|
+
"typeList": null
|
|
192
|
+
},
|
|
193
|
+
"dataToValue": {
|
|
194
|
+
"type": "NONE",
|
|
195
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"defaultSetValueSettings": null,
|
|
199
|
+
"defaultWidgetActionSettings": null
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": "thirdPhaseVoltage",
|
|
203
|
+
"name": "{i18n:scada.symbol.third-phase-voltage}",
|
|
204
|
+
"hint": "{i18n:scada.symbol.phase-voltage-hint}",
|
|
205
|
+
"group": null,
|
|
206
|
+
"type": "value",
|
|
207
|
+
"valueType": "DOUBLE",
|
|
208
|
+
"trueLabel": null,
|
|
209
|
+
"falseLabel": null,
|
|
210
|
+
"stateLabel": null,
|
|
211
|
+
"defaultGetValueSettings": {
|
|
212
|
+
"action": "GET_TIME_SERIES",
|
|
213
|
+
"defaultValue": null,
|
|
214
|
+
"executeRpc": {
|
|
215
|
+
"method": "getState",
|
|
216
|
+
"requestTimeout": 5000,
|
|
217
|
+
"requestPersistent": false,
|
|
218
|
+
"persistentPollingInterval": 1000
|
|
219
|
+
},
|
|
220
|
+
"getAttribute": {
|
|
221
|
+
"scope": null,
|
|
222
|
+
"key": "state"
|
|
223
|
+
},
|
|
224
|
+
"getTimeSeries": {
|
|
225
|
+
"key": "thirdPhaseVoltage"
|
|
226
|
+
},
|
|
227
|
+
"getAlarmStatus": {
|
|
228
|
+
"severityList": null,
|
|
229
|
+
"typeList": null
|
|
230
|
+
},
|
|
231
|
+
"dataToValue": {
|
|
232
|
+
"type": "NONE",
|
|
233
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"defaultSetValueSettings": null,
|
|
237
|
+
"defaultWidgetActionSettings": null
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"id": "warning",
|
|
241
|
+
"name": "{i18n:scada.symbol.warning}",
|
|
242
|
+
"hint": "{i18n:scada.symbol.warning-state-hint}",
|
|
243
|
+
"group": "{i18n:scada.symbol.warning-state}",
|
|
244
|
+
"type": "value",
|
|
245
|
+
"valueType": "BOOLEAN",
|
|
246
|
+
"trueLabel": null,
|
|
247
|
+
"falseLabel": null,
|
|
248
|
+
"stateLabel": "{i18n:scada.symbol.warning}",
|
|
249
|
+
"defaultGetValueSettings": {
|
|
250
|
+
"action": "GET_ALARM_STATUS",
|
|
251
|
+
"defaultValue": false,
|
|
252
|
+
"executeRpc": {
|
|
253
|
+
"method": "getState",
|
|
254
|
+
"requestTimeout": 5000,
|
|
255
|
+
"requestPersistent": false,
|
|
256
|
+
"persistentPollingInterval": 1000
|
|
257
|
+
},
|
|
258
|
+
"getAttribute": {
|
|
259
|
+
"scope": null,
|
|
260
|
+
"key": "state"
|
|
261
|
+
},
|
|
262
|
+
"getTimeSeries": {
|
|
263
|
+
"key": "state"
|
|
264
|
+
},
|
|
265
|
+
"getAlarmStatus": {
|
|
266
|
+
"severityList": [
|
|
267
|
+
"MAJOR",
|
|
268
|
+
"MINOR",
|
|
269
|
+
"WARNING",
|
|
270
|
+
"INDETERMINATE"
|
|
271
|
+
],
|
|
272
|
+
"typeList": null
|
|
273
|
+
},
|
|
274
|
+
"dataToValue": {
|
|
275
|
+
"type": "NONE",
|
|
276
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;",
|
|
277
|
+
"compareToValue": true
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"defaultSetValueSettings": null,
|
|
281
|
+
"defaultWidgetActionSettings": null
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"id": "warningClick",
|
|
285
|
+
"name": "{i18n:scada.symbol.warning-click}",
|
|
286
|
+
"hint": "{i18n:scada.symbol.on-click-hint}",
|
|
287
|
+
"group": "{i18n:scada.symbol.warning-state}",
|
|
288
|
+
"type": "widgetAction",
|
|
289
|
+
"valueType": "BOOLEAN",
|
|
290
|
+
"trueLabel": null,
|
|
291
|
+
"falseLabel": null,
|
|
292
|
+
"stateLabel": null,
|
|
293
|
+
"defaultGetValueSettings": null,
|
|
294
|
+
"defaultSetValueSettings": null,
|
|
295
|
+
"defaultWidgetActionSettings": {
|
|
296
|
+
"type": "doNothing",
|
|
297
|
+
"targetDashboardStateId": null,
|
|
298
|
+
"openRightLayout": false,
|
|
299
|
+
"setEntityId": false,
|
|
300
|
+
"stateEntityParamName": null
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": "critical",
|
|
305
|
+
"name": "{i18n:scada.symbol.critical}",
|
|
306
|
+
"hint": "{i18n:scada.symbol.critical-state-hint}",
|
|
307
|
+
"group": "{i18n:scada.symbol.critical-state}",
|
|
308
|
+
"type": "value",
|
|
309
|
+
"valueType": "BOOLEAN",
|
|
310
|
+
"trueLabel": null,
|
|
311
|
+
"falseLabel": null,
|
|
312
|
+
"stateLabel": "{i18n:scada.symbol.critical}",
|
|
313
|
+
"defaultGetValueSettings": {
|
|
314
|
+
"action": "GET_ALARM_STATUS",
|
|
315
|
+
"defaultValue": false,
|
|
316
|
+
"executeRpc": {
|
|
317
|
+
"method": "getState",
|
|
318
|
+
"requestTimeout": 5000,
|
|
319
|
+
"requestPersistent": false,
|
|
320
|
+
"persistentPollingInterval": 1000
|
|
321
|
+
},
|
|
322
|
+
"getAttribute": {
|
|
323
|
+
"scope": null,
|
|
324
|
+
"key": "state"
|
|
325
|
+
},
|
|
326
|
+
"getTimeSeries": {
|
|
327
|
+
"key": "state"
|
|
328
|
+
},
|
|
329
|
+
"getAlarmStatus": {
|
|
330
|
+
"severityList": [
|
|
331
|
+
"CRITICAL"
|
|
332
|
+
],
|
|
333
|
+
"typeList": null
|
|
334
|
+
},
|
|
335
|
+
"dataToValue": {
|
|
336
|
+
"type": "NONE",
|
|
337
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;",
|
|
338
|
+
"compareToValue": true
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"defaultSetValueSettings": null,
|
|
342
|
+
"defaultWidgetActionSettings": null
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"id": "criticalClick",
|
|
346
|
+
"name": "{i18n:scada.symbol.critical-click}",
|
|
347
|
+
"hint": "{i18n:scada.symbol.on-click-hint}",
|
|
348
|
+
"group": "{i18n:scada.symbol.critical-state}",
|
|
349
|
+
"type": "widgetAction",
|
|
350
|
+
"valueType": "BOOLEAN",
|
|
351
|
+
"trueLabel": null,
|
|
352
|
+
"falseLabel": null,
|
|
353
|
+
"stateLabel": null,
|
|
354
|
+
"defaultGetValueSettings": null,
|
|
355
|
+
"defaultSetValueSettings": null,
|
|
356
|
+
"defaultWidgetActionSettings": {
|
|
357
|
+
"type": "doNothing",
|
|
358
|
+
"targetDashboardStateId": null,
|
|
359
|
+
"openRightLayout": false,
|
|
360
|
+
"setEntityId": false,
|
|
361
|
+
"stateEntityParamName": null
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": "criticalAnimation",
|
|
366
|
+
"name": "{i18n:scada.symbol.warning-critical-state-animation}",
|
|
367
|
+
"hint": "{i18n:scada.symbol.warning-critical-state-animation-hint}",
|
|
368
|
+
"group": null,
|
|
369
|
+
"type": "value",
|
|
370
|
+
"valueType": "BOOLEAN",
|
|
371
|
+
"trueLabel": null,
|
|
372
|
+
"falseLabel": null,
|
|
373
|
+
"stateLabel": "{i18n:scada.symbol.animation}",
|
|
374
|
+
"defaultGetValueSettings": {
|
|
375
|
+
"action": "DO_NOTHING",
|
|
376
|
+
"defaultValue": false,
|
|
377
|
+
"executeRpc": {
|
|
378
|
+
"method": "getState",
|
|
379
|
+
"requestTimeout": 5000,
|
|
380
|
+
"requestPersistent": false,
|
|
381
|
+
"persistentPollingInterval": 1000
|
|
382
|
+
},
|
|
383
|
+
"getAttribute": {
|
|
384
|
+
"key": "state",
|
|
385
|
+
"scope": null
|
|
386
|
+
},
|
|
387
|
+
"getTimeSeries": {
|
|
388
|
+
"key": "state"
|
|
389
|
+
},
|
|
390
|
+
"dataToValue": {
|
|
391
|
+
"type": "NONE",
|
|
392
|
+
"compareToValue": true,
|
|
393
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"defaultSetValueSettings": null,
|
|
397
|
+
"defaultWidgetActionSettings": null
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"id": "click",
|
|
401
|
+
"name": "{i18n:scada.symbol.on-click}",
|
|
402
|
+
"hint": "{i18n:scada.symbol.on-click-hint}",
|
|
403
|
+
"group": null,
|
|
404
|
+
"type": "widgetAction",
|
|
405
|
+
"valueType": "BOOLEAN",
|
|
406
|
+
"trueLabel": null,
|
|
407
|
+
"falseLabel": null,
|
|
408
|
+
"stateLabel": null,
|
|
409
|
+
"defaultGetValueSettings": null,
|
|
410
|
+
"defaultSetValueSettings": null,
|
|
411
|
+
"defaultWidgetActionSettings": {
|
|
412
|
+
"type": "doNothing",
|
|
413
|
+
"targetDashboardStateId": null,
|
|
414
|
+
"openRightLayout": false,
|
|
415
|
+
"setEntityId": false,
|
|
416
|
+
"stateEntityParamName": null
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
"properties": [
|
|
421
|
+
{
|
|
422
|
+
"id": "runningColor",
|
|
423
|
+
"name": "{i18n:scada.symbol.colors}",
|
|
424
|
+
"type": "color",
|
|
425
|
+
"default": "#FFFFFF",
|
|
426
|
+
"subLabel": "{i18n:scada.symbol.running}",
|
|
427
|
+
"divider": true,
|
|
428
|
+
"disabled": false,
|
|
429
|
+
"visible": true
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"id": "stoppedColor",
|
|
433
|
+
"name": "{i18n:scada.symbol.colors}",
|
|
434
|
+
"type": "color",
|
|
435
|
+
"default": "#666666",
|
|
436
|
+
"subLabel": "{i18n:scada.symbol.stopped}",
|
|
437
|
+
"disabled": false,
|
|
438
|
+
"visible": true
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"id": "valueBoxBackground",
|
|
442
|
+
"name": "{i18n:scada.symbol.value-box-background}",
|
|
443
|
+
"type": "color",
|
|
444
|
+
"default": "#DEDEDE",
|
|
445
|
+
"disabled": false,
|
|
446
|
+
"visible": true
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"id": "phaseIndicatorColor",
|
|
450
|
+
"name": "{i18n:scada.symbol.phase-indicator-color}",
|
|
451
|
+
"type": "color",
|
|
452
|
+
"default": "#198038",
|
|
453
|
+
"disabled": false,
|
|
454
|
+
"visible": true
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"id": "currentVoltageFont",
|
|
458
|
+
"name": "{i18n:scada.symbol.current-voltage-color}",
|
|
459
|
+
"type": "font",
|
|
460
|
+
"default": {
|
|
461
|
+
"size": 32,
|
|
462
|
+
"sizeUnit": "px",
|
|
463
|
+
"family": "Roboto",
|
|
464
|
+
"weight": "400",
|
|
465
|
+
"style": "normal"
|
|
466
|
+
},
|
|
467
|
+
"disabled": false,
|
|
468
|
+
"visible": true
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"id": "currentVoltageColor",
|
|
472
|
+
"name": "{i18n:scada.symbol.current-voltage-color}",
|
|
473
|
+
"type": "color",
|
|
474
|
+
"default": "#002878",
|
|
475
|
+
"disabled": false,
|
|
476
|
+
"visible": true
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"id": "showUnits",
|
|
480
|
+
"name": "{i18n:scada.symbol.units}",
|
|
481
|
+
"type": "switch",
|
|
482
|
+
"default": true,
|
|
483
|
+
"disabled": false,
|
|
484
|
+
"visible": true
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"id": "units",
|
|
488
|
+
"name": "{i18n:scada.symbol.units}",
|
|
489
|
+
"type": "units",
|
|
490
|
+
"default": "V",
|
|
491
|
+
"supportsUnitConversion": true,
|
|
492
|
+
"disabled": false,
|
|
493
|
+
"visible": true
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"id": "unitsFont",
|
|
497
|
+
"name": "{i18n:scada.symbol.units}",
|
|
498
|
+
"type": "font",
|
|
499
|
+
"default": {
|
|
500
|
+
"size": 24,
|
|
501
|
+
"sizeUnit": "px",
|
|
502
|
+
"family": "Roboto",
|
|
503
|
+
"weight": "500",
|
|
504
|
+
"style": "normal"
|
|
505
|
+
},
|
|
506
|
+
"disabled": false,
|
|
507
|
+
"visible": true
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"id": "unitsColor",
|
|
511
|
+
"name": "{i18n:scada.symbol.units}",
|
|
512
|
+
"type": "color",
|
|
513
|
+
"default": "#000",
|
|
514
|
+
"disabled": false,
|
|
515
|
+
"visible": true
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"id": "warningColor",
|
|
519
|
+
"name": "{i18n:scada.symbol.alarm-colors}",
|
|
520
|
+
"type": "color",
|
|
521
|
+
"default": "#FAA405",
|
|
522
|
+
"subLabel": "{i18n:scada.symbol.warning}",
|
|
523
|
+
"divider": true,
|
|
524
|
+
"disabled": false,
|
|
525
|
+
"visible": true
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"id": "criticalColor",
|
|
529
|
+
"name": "{i18n:scada.symbol.alarm-colors}",
|
|
530
|
+
"type": "color",
|
|
531
|
+
"default": "#D12730",
|
|
532
|
+
"subLabel": "{i18n:scada.symbol.critical}",
|
|
533
|
+
"disabled": false,
|
|
534
|
+
"visible": true
|
|
535
|
+
}
|
|
536
|
+
]
|
|
537
|
+
}]]></tb:metadata>
|
|
538
|
+
<rect width="400" height="400" fill="#fff" tb:tag="background"/><rect x="1" y="1" width="398" height="398" stroke="#000" stroke-opacity=".87" stroke-width="2"/><circle cx="200" cy="50" r="19" stroke="#000" stroke-opacity=".87" stroke-width="2"/><circle cx="112" cy="50" r="19" stroke="#000" stroke-opacity=".87" stroke-width="2"/><circle cx="288" cy="50" r="19" stroke="#000" stroke-opacity=".87" stroke-width="2"/><circle cx="200" cy="350" r="19" stroke="#000" stroke-opacity=".87" stroke-width="2"/><circle cx="112" cy="350" r="19" stroke="#000" stroke-opacity=".87" stroke-width="2"/><circle cx="288" cy="350" r="19" stroke="#000" stroke-opacity=".87" stroke-width="2"/><rect x="150" y="180" width="100" height="80" rx="2" fill="#DEDEDE" tb:tag="value-box"/><rect x="151" y="181" width="98" height="78" rx="1" stroke="#000" stroke-opacity=".87" stroke-width="2"/><rect x="270" y="180" width="100" height="80" rx="2" fill="#DEDEDE" tb:tag="value-box"/><rect x="271" y="181" width="98" height="78" rx="1" stroke="#000" stroke-opacity=".87" stroke-width="2"/><rect x="30" y="180" width="100" height="80" rx="2" fill="#DEDEDE" tb:tag="value-box"/><rect x="31" y="181" width="98" height="78" rx="1" stroke="#000" stroke-opacity=".87" stroke-width="2"/><text x="201.6431" y="233.64844" fill="#002878" font-family="Roboto, sans-serif" font-size="32px" font-weight="400" text-anchor="middle" tb:tag="secondPhaseValue" xml:space="preserve"><tspan dominant-baseline="start">220</tspan></text><text x="321.46201" y="233.29332" fill="#002878" font-family="Roboto, sans-serif" font-size="32px" font-weight="400" text-anchor="middle" tb:tag="thirdPhaseValue" xml:space="preserve"><tspan dominant-baseline="start">220</tspan></text><text x="81.372673" y="233.21404" fill="#002878" font-family="Roboto, sans-serif" font-size="32px" font-weight="400" text-anchor="middle" tb:tag="firstPhaseValue" xml:space="preserve"><tspan dominant-baseline="start">220</tspan></text><circle cx="80" cy="146" r="10" fill="#198038" stroke="#198038" stroke-width=".5" tb:tag="firstPhaseIndicator"/><path d="m79.446 125.67v2.332h-8.5664v-2.332h8.5664zm-7.7461-14.73v17.062h-2.9414v-17.062h2.9414zm17.635-0.059v17.121h-2.8242v-13.77l-4.1836 1.418v-2.332l6.668-2.437h0.3398z" fill="#000" fill-opacity=".87"/><circle cx="199" cy="146" r="10" fill="#198038" stroke="#198038" stroke-width=".5" tb:tag="secondPhaseIndicator"/><path d="m198.45 125.67v2.332h-8.566v-2.332h8.566zm-7.746-14.73v17.062h-2.941v-17.062h2.941zm21.362 14.812v2.25h-11.438v-1.934l5.555-6.058c0.609-0.688 1.09-1.281 1.441-1.781 0.352-0.5 0.598-0.95 0.739-1.348 0.148-0.406 0.222-0.801 0.222-1.184 0-0.539-0.101-1.011-0.304-1.418-0.196-0.414-0.485-0.738-0.868-0.972-0.382-0.243-0.847-0.364-1.394-0.364-0.633 0-1.164 0.137-1.594 0.411-0.43 0.273-0.754 0.652-0.972 1.136-0.219 0.477-0.329 1.024-0.329 1.641h-2.824c0-0.992 0.227-1.899 0.68-2.719 0.453-0.828 1.109-1.484 1.969-1.969 0.859-0.492 1.894-0.738 3.105-0.738 1.141 0 2.109 0.192 2.906 0.574 0.797 0.383 1.403 0.926 1.817 1.629 0.422 0.703 0.633 1.535 0.633 2.496 0 0.532-0.086 1.059-0.258 1.582-0.172 0.524-0.418 1.047-0.739 1.571-0.312 0.515-0.683 1.035-1.113 1.558-0.43 0.516-0.902 1.039-1.418 1.571l-3.691 4.066h7.875z" fill="#000" fill-opacity=".87"/><circle cx="320" cy="146" r="10" fill="#198038" stroke="#198038" stroke-width=".5" tb:tag="thirdPhaseIndicator"/><path d="m319.45 125.67v2.332h-8.566v-2.332h8.566zm-7.746-14.73v17.062h-2.941v-17.062h2.941zm13.241 7.253h1.687c0.656 0 1.199-0.113 1.629-0.339 0.438-0.227 0.762-0.54 0.973-0.938s0.316-0.855 0.316-1.371c0-0.539-0.097-1-0.293-1.383-0.187-0.39-0.476-0.691-0.867-0.902-0.383-0.211-0.871-0.317-1.465-0.317-0.5 0-0.953 0.102-1.359 0.305-0.399 0.195-0.715 0.477-0.949 0.844-0.235 0.359-0.352 0.789-0.352 1.289h-2.836c0-0.906 0.238-1.711 0.715-2.414 0.476-0.703 1.125-1.254 1.945-1.653 0.828-0.406 1.758-0.609 2.789-0.609 1.102 0 2.063 0.184 2.883 0.551 0.828 0.359 1.473 0.898 1.934 1.617s0.691 1.609 0.691 2.672c0 0.484-0.113 0.977-0.34 1.477-0.226 0.5-0.562 0.957-1.008 1.371-0.445 0.406-1 0.738-1.664 0.996-0.664 0.25-1.433 0.375-2.308 0.375h-2.121v-1.571zm0 2.204v-1.547h2.121c1 0 1.851 0.117 2.554 0.351 0.711 0.235 1.29 0.559 1.735 0.973 0.445 0.406 0.769 0.871 0.973 1.394 0.21 0.524 0.316 1.079 0.316 1.664 0 0.797-0.145 1.508-0.434 2.133-0.281 0.617-0.683 1.141-1.207 1.571-0.523 0.429-1.136 0.754-1.84 0.972-0.695 0.219-1.453 0.328-2.273 0.328-0.734 0-1.437-0.101-2.109-0.304s-1.274-0.504-1.805-0.903c-0.531-0.406-0.953-0.91-1.266-1.511-0.304-0.61-0.457-1.313-0.457-2.11h2.825c0 0.508 0.117 0.957 0.351 1.348 0.242 0.383 0.578 0.684 1.008 0.902 0.437 0.219 0.937 0.328 1.5 0.328 0.594 0 1.105-0.105 1.535-0.316s0.758-0.523 0.984-0.938c0.235-0.414 0.352-0.914 0.352-1.5 0-0.664-0.129-1.203-0.387-1.617s-0.625-0.718-1.101-0.914c-0.477-0.203-1.039-0.304-1.688-0.304h-1.687z" fill="#000" fill-opacity=".87"/><text x="199.75247" y="299.65625" fill="#000000" font-family="Roboto, sans-serif" font-size="28px" font-weight="400" text-anchor="middle" tb:tag="units" xml:space="preserve"><tspan dominant-baseline="start">v</tspan></text><path d="m134.53 0s-134.53 0-134.53 67v328.36c0 2.6512 3.5818 4.6404 8 4.6404h384c4.418 0 8-1.9892 8-4.6404v-328.36c0-67-132.14-67-132.14-67h-67.858zm134.14 81.2c-2.5774 0-4.6666 1.2536-4.6666 2.8v300.4c0 1.5464 2.0894 2.8 4.6666 2.8h29.332c2.5774 0 4.6666-1.2536 4.6666-2.8v-300.4c0-1.5464-2.0894-2.8-4.6666-2.8z" fill="#000" fill-opacity="0" tb:tag="clickArea"/><g fill="#d12730" style="display: none;" tb:tag="critical">
|
|
539
|
+
<rect width="84" height="84" rx="4" fill="#fff" style=""/>
|
|
540
|
+
<rect width="84" height="84" rx="4" style=""/>
|
|
541
|
+
<rect x="2" y="2" width="80" height="80" rx="2" stroke="#000" stroke-opacity=".87" stroke-width="4" style=""/>
|
|
542
|
+
<path d="m44.559 27.562-0.4688 20.059h-4.0234l-0.4883-20.059zm-5.1172 26.211c0-0.7161 0.2344-1.3151 0.7031-1.7968 0.4818-0.4948 1.1459-0.7422 1.9922-0.7422 0.8334 0 1.4909 0.2474 1.9727 0.7422 0.4817 0.4817 0.7226 1.0807 0.7226 1.7968 0 0.6901-0.2409 1.2826-0.7226 1.7774-0.4818 0.4818-1.1393 0.7226-1.9727 0.7226-0.8463 0-1.5104-0.2408-1.9922-0.7226-0.4687-0.4948-0.7031-1.0873-0.7031-1.7774z" fill="#000" fill-opacity=".87" style=""/>
|
|
543
|
+
</g><g fill="#faa405" style="display: none;" tb:tag="warning">
|
|
544
|
+
<path d="m35.955 2.2112c1.4741-2.9482 5.6813-2.9482 7.1554 0l35.528 71.056c1.3298 2.6596-0.6042 5.7889-3.5777 5.7889h-71.056c-2.9735 0-4.9075-3.1292-3.5777-5.7889z" fill="#fff" style=""/>
|
|
545
|
+
<path d="m35.955 2.2112c1.4741-2.9482 5.6813-2.9482 7.1554 0l35.528 71.056c1.3298 2.6596-0.6042 5.7889-3.5777 5.7889h-71.056c-2.9735 0-4.9075-3.1292-3.5777-5.7889z" style=""/>
|
|
546
|
+
<path d="m37.72 3.1061c0.7371-1.4741 2.8407-1.4741 3.5778-1e-5l35.528 71.056c0.6649 1.3298-0.3021 2.8944-1.7888 2.8944h-71.056c-1.4868 0-2.4538-1.5646-1.7889-2.8944z" stroke="#000" stroke-opacity=".87" stroke-width="4" style=""/>
|
|
547
|
+
<path d="m42.092 32.618-0.4688 20.059h-4.0234l-0.4883-20.059zm-5.1172 26.211c0-0.7161 0.2344-1.3151 0.7031-1.7968 0.4818-0.4948 1.1459-0.7422 1.9922-0.7422 0.8334 0 1.4909 0.2474 1.9727 0.7422 0.4817 0.4817 0.7226 1.0807 0.7226 1.7968 0 0.6901-0.2409 1.2826-0.7226 1.7774-0.4818 0.4818-1.1393 0.7226-1.9727 0.7226-0.8463 0-1.5104-0.2408-1.9922-0.7226-0.4687-0.4948-0.7031-1.0873-0.7031-1.7774z" fill="#000" fill-opacity=".87" style=""/>
|
|
548
|
+
</g>
|
|
549
|
+
</svg>
|