Files
Stream_PHX_A7/Gateways/FE/projects/.resources/3084e10d8af1190129599b789c8b7a29e8872142b0a306ca7a1a22befc4fb4c2

448 lines
13 KiB
Plaintext

{
"custom": {
"AlarmSeverity": -1
},
"params": {
"objectName": "H2",
"tagPath": "[Ignition_SATB1_IO1_default]ER1244/SATB1_ER1244_SPD"
},
"propConfig": {
"custom.AlarmSeverity": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/AlarmSummary/ActiveAlarms"
},
"transforms": [
{
"code": "\treturn alarm.summary.calcMaxPriority(self.view.params.tagPath)",
"type": "script"
}
],
"type": "tag"
},
"persistent": true
},
"params.objectName": {
"paramDirection": "input",
"persistent": true
},
"params.tagPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 65,
"width": 70
}
},
"root": {
"children": [
{
"meta": {
"name": "H2"
},
"position": {
"height": 44,
"width": 54,
"x": 1,
"y": 17
},
"propConfig": {
"props.style.borderColor": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"transforms": [
{
"fallback": null,
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": null
},
{
"input": 2,
"output": null
},
{
"input": 3,
"output": null
},
{
"input": 4,
"output": null
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.style.outlineColor": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"transforms": [
{
"fallback": null,
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "var(--coolpurple)"
},
{
"input": 2,
"output": "var(--goldenyellow)"
},
{
"input": 3,
"output": "var(--sunsetorange)"
},
{
"input": 4,
"output": "var(--alarmred)"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.style.outlineStyle": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"transforms": [
{
"code": "\tif value \u003e 0:\n\t\treturn \"solid\"\n\telse:\n\t\treturn \"none\"",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"style": {
"backgroundColor": "var(--state-running)",
"borderBottomLeftRadius": 4,
"borderBottomRightRadius": 4,
"borderTopLeftRadius": 4,
"borderTopRightRadius": 4,
"boxShadow": "var(--boxShadow2)",
"classes": "containers/HoverOver",
"color": "black",
"outlineWidth": "2",
"overflow": "visible"
},
"text": "H2 Sensor",
"textStyle": {
"fontFamily": "inherit",
"fontSize": 12,
"fontWeight": "bold",
"key": "value",
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "AlarmIcons"
},
"position": {
"height": 29,
"width": 28,
"x": 42.09,
"y": -1
},
"propConfig": {
"props.elements[0].visibility": {
"binding": {
"config": {
"expression": "if({view.custom.AlarmSeverity} \u003d 3, \"visible\", \"hidden\")"
},
"type": "expr"
}
},
"props.elements[1].visibility": {
"binding": {
"config": {
"expression": "if({view.custom.AlarmSeverity} \u003d 3, \"visible\", \"hidden\")"
},
"type": "expr"
}
},
"props.elements[2].visibility": {
"binding": {
"config": {
"expression": "if({view.custom.AlarmSeverity} \u003d 2, \"visible\", \"hidden\")"
},
"type": "expr"
}
},
"props.elements[3].visibility": {
"binding": {
"config": {
"expression": "if({view.custom.AlarmSeverity} \u003d 1, \"visible\", \"hidden\")"
},
"type": "expr"
}
},
"props.elements[4].visibility": {
"binding": {
"config": {
"expression": "if({view.custom.AlarmSeverity} \u003d 4, \"visible\", \"hidden\")"
},
"type": "expr"
}
},
"props.elements[5].visibility": {
"binding": {
"config": {
"expression": "if({view.custom.AlarmSeverity} \u003d 4, \"visible\", \"hidden\")"
},
"type": "expr"
}
}
},
"props": {
"elements": [
{
"d": "M7.858,0.648l6.489,6.489c0.199,0.199 0.199,0.522 0,0.721l-6.489,6.489c-0.199,0.199 -0.522,0.199 -0.721,0l-6.489,-6.489c-0.199,-0.199 -0.199,-0.522 -0,-0.721l6.489,-6.489c0.199,-0.199 0.522,-0.199 0.721,-0Z",
"fill": {
"paint": "#de7c33"
},
"name": "path",
"stroke": {
"paint": "#000",
"width": "0.48px"
},
"type": "path"
},
{
"elements": [
{
"elements": [
{
"d": "M7.163,8.96l-0.351,-4.735l1.371,0l-0.34,4.735l-0.68,-0Zm-0.318,1.81l0,-1.105l1.305,0l0,1.105l-1.305,0Z",
"fill": {
"paint": "#fff",
"rule": "nonzero"
},
"name": "path",
"type": "path"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
},
{
"elements": [
{
"d": "M6.855,1.849c0.134,-0.227 0.378,-0.367 0.643,-0.367c0.264,-0 0.508,0.14 0.642,0.367c1.411,2.401 4.768,8.113 6.195,10.541c0.136,0.231 0.137,0.516 0.005,0.748c-0.133,0.232 -0.38,0.375 -0.647,0.375l-12.39,0c-0.268,0 -0.515,-0.143 -0.647,-0.375c-0.133,-0.232 -0.131,-0.517 0.004,-0.748c1.427,-2.428 4.784,-8.14 6.195,-10.541Z",
"fill": {
"paint": "#f4b834"
},
"name": "path",
"stroke": {
"paint": "#000",
"width": "0.48px"
},
"type": "path"
},
{
"elements": [
{
"elements": [
{
"d": "M7.126,9.942l-0.389,-4.988l1.521,0l-0.377,4.988l-0.755,-0Zm-0.353,1.907l0,-1.164l1.449,0l-0,1.164l-1.449,-0Z",
"fill": {
"paint": "#fff",
"rule": "nonzero"
},
"name": "path",
"type": "path"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
},
{
"elements": [
{
"d": "M12.307,1.181l-0,12.633c-0,0.265 -0.216,0.481 -0.481,0.481l-8.657,-0c-0.265,-0 -0.48,-0.216 -0.48,-0.481l-0,-12.633c-0,-0.265 0.215,-0.48 0.48,-0.48l8.657,-0c0.265,-0 0.481,0.215 0.481,0.48Z",
"fill": {
"paint": "#7166b7"
},
"name": "path",
"stroke": {
"paint": "#000",
"width": "0.48px"
},
"type": "path"
},
{
"elements": [
{
"elements": [
{
"d": "M7.126,9.042l-0.389,-5.001l1.521,-0l-0.377,5.001l-0.755,0Zm-0.353,1.912l0,-1.167l1.449,0l-0,1.167l-1.449,0Z",
"fill": {
"paint": "#fff",
"rule": "nonzero"
},
"name": "path",
"type": "path"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
},
{
"cx": "7.498",
"cy": "7.498",
"fill": {
"paint": "#e22028"
},
"name": "circle",
"r": "7.198",
"stroke": {
"paint": "#000",
"width": "0.48px"
},
"type": "circle"
},
{
"elements": [
{
"elements": [
{
"d": "M5.712,9.232l-0.389,-5.617l1.521,-0l-0.377,5.617l-0.755,0Zm-0.353,2.148l0,-1.31l1.449,-0l-0,1.31l-1.449,0Z",
"fill": {
"paint": "#fff",
"rule": "nonzero"
},
"name": "path",
"type": "path"
}
],
"name": "group",
"type": "group"
},
{
"elements": [
{
"d": "M8.597,9.232l-0.389,-5.617l1.521,-0l-0.377,5.617l-0.755,0Zm-0.353,2.148l0,-1.31l1.449,-0l-0,1.31l-1.449,0Z",
"fill": {
"paint": "#fff",
"rule": "nonzero"
},
"name": "path",
"type": "path"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
}
],
"fill": {
"rule": "evenodd"
},
"stroke": {
"linecap": "round",
"linejoin": "round",
"miterlimit": "1.5"
},
"style": {
"clipRule": "evenodd"
},
"viewBox": "0 0 15 15"
},
"type": "ia.shapes.svg"
}
],
"events": {
"dom": {
"onClick": {
"config": {
"script": "\tpageId \u003d self.page.props.pageId\n\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\n\ttagPath \u003d self.view.params.tagPath\n\tobjectName \u003d self.view.params.objectName\n\tutils.nav.openEQPopup(objectName, tagPath)\t"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "root"
},
"propConfig": {
"custom.alarmSeverity": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/AlarmSummary/ActiveAlarms"
},
"transforms": [
{
"code": "\treturn alarm.summary.calcMaxPriority(self.view.params.tagPath)",
"type": "script"
}
],
"type": "tag"
}
}
},
"props": {
"style": {
"key": "value",
"overflow": "visible"
}
},
"type": "ia.container.coord"
}
}