Browse Source
Merge pull request #11759 from ArtemDzhereleiko/AD/scada/analog-meter/icon-position
Fixed position for icon SCADA analog meters
pull/11761/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
application/src/main/data/json/system/scada_symbols/left-analog-water-level-meter.svg
-
application/src/main/data/json/system/scada_symbols/right-analog-water-level-meter.svg
|
|
|
@ -37,7 +37,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"tag": "icon", |
|
|
|
"stateRenderFunction": "var showIcon = ctx.properties.showIcon;\nif (showIcon) {\n element.show();\n var icon = ctx.properties.icon;\n var iconSize = ctx.properties.iconSize;\n var iconColor = ctx.properties.iconColor;\n ctx.api.icon(element, icon, iconSize, iconColor, true);\n} else {\n element.hide()\n}", |
|
|
|
"stateRenderFunction": "var showIcon = ctx.properties.showIcon;\nvar showLabel = ctx.properties.label;\nif (showIcon) {\n element.show();\n var icon = ctx.properties.icon;\n var iconSize = ctx.properties.iconSize;\n var iconColor = ctx.properties.iconColor;\n ctx.api.icon(element, icon, iconSize, iconColor, true);\n if (!showLabel) {\n element.transform({translateX: 83,translateY: 137});\n }\n} else {\n element.hide()\n}\n", |
|
|
|
"actions": null |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
Width:
|
Height:
|
Size: 56 KiB
Width:
|
Height:
|
Size: 56 KiB
|
|
|
|
@ -37,7 +37,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"tag": "icon", |
|
|
|
"stateRenderFunction": "var showIcon = ctx.properties.showIcon;\nif (showIcon) {\n element.show();\n var icon = ctx.properties.icon;\n var iconSize = ctx.properties.iconSize;\n var iconColor = ctx.properties.iconColor;\n ctx.api.icon(element, icon, iconSize, iconColor, true);\n} else {\n element.hide()\n}", |
|
|
|
"stateRenderFunction": "var showIcon = ctx.properties.showIcon;\nvar showLabel = ctx.properties.label;\nif (showIcon) {\n element.show();\n var icon = ctx.properties.icon;\n var iconSize = ctx.properties.iconSize;\n var iconColor = ctx.properties.iconColor;\n ctx.api.icon(element, icon, iconSize, iconColor, true);\n if (!showLabel) {\n element.transform({translateX: 119, translateY: 137});\n }\n} else {\n element.hide()\n}", |
|
|
|
"actions": null |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
Width:
|
Height:
|
Size: 56 KiB
Width:
|
Height:
|
Size: 56 KiB
|