Files
Stream_PHX_A7/Gateways/FE/projects/.resources/5ca01eaa0b13595c64a975ba76f2aca84b7974b41b280e5373590492f8af9c91

354 lines
9.4 KiB
Plaintext

{
"custom": {
"AlarmSeverity": 0,
"Mode": 1,
"TES_Color": "var(--state-running)"
},
"params": {
"objectName": "TES",
"tagPath": "[Ignition_Common_IO_Gtwy]MPR1140/SATB1_DH5_Thermal_System"
},
"propConfig": {
"custom.AlarmSeverity": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/AlarmSummary/ActiveAlarms"
},
"enabled": false,
"transforms": [
{
"code": "\treturn alarm.summary.calcMaxPriority(self.view.params.tagPath)",
"type": "script"
}
],
"type": "tag"
},
"persistent": true
},
"custom.Mode": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/Mode"
},
"enabled": false,
"type": "tag"
},
"persistent": true
},
"custom.TES_Color": {
"binding": {
"config": {
"expression": "if({view.custom.AlarmSeverity}\u003e0, 5, {view.custom.Mode})"
},
"transforms": [
{
"fallback": "purple",
"inputType": "scalar",
"mappings": [
{
"input": 0,
"output": "var(--state-standby)"
},
{
"input": 1,
"output": "var(--state-running)"
},
{
"input": 2,
"output": "var(--state-faulted)"
},
{
"input": 3,
"output": "var(--state-auto)"
},
{
"input": 5,
"output": "var(--state-faulted)"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "expr"
},
"persistent": true
},
"params.objectName": {
"paramDirection": "input",
"persistent": true
},
"params.tagPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 83,
"width": 65
}
},
"root": {
"children": [
{
"meta": {
"name": "TES"
},
"position": {
"height": 0.8434,
"width": 0.7692,
"x": 0.0308,
"y": 0.1204
},
"propConfig": {
"props.elements[0].elements[0].fill.paint": {
"binding": {
"config": {
"path": "view.custom.TES_Color"
},
"type": "property"
}
},
"props.elements[0].elements[1].fill.paint": {
"binding": {
"config": {
"path": "view.custom.TES_Color"
},
"type": "property"
}
},
"props.elements[0].elements[2].fill.paint": {
"binding": {
"config": {
"path": "view.custom.TES_Color"
},
"type": "property"
}
}
},
"props": {
"elements": [
{
"elements": [
{
"fill": {},
"height": "40.833",
"name": "rect",
"stroke": {
"paint": "#000",
"width": "0.75px"
},
"type": "rect",
"width": "37.5",
"x": "0.417",
"y": "6.25"
},
{
"d": "M37.911,5.978C37.673,2.896 29.365,0.417 19.167,0.417C8.968,0.417 0.66,2.896 0.422,5.978L37.911,5.978Z",
"fill": {},
"name": "path",
"stroke": {
"paint": "#000",
"width": "0.83px"
},
"type": "path"
},
{
"d": "M37.906,47.083C37.668,50.165 29.36,52.644 19.161,52.644C8.963,52.644 0.655,50.165 0.417,47.083L37.906,47.083Z",
"fill": {},
"name": "path",
"stroke": {
"paint": "#000",
"width": "0.83px"
},
"type": "path"
}
],
"id": "TES",
"name": "TES",
"type": "group"
}
],
"fill": {
"rule": "evenodd"
},
"stroke": {
"linecap": "round",
"linejoin": "round",
"miterlimit": "1.5"
},
"style": {
"clipRule": "evenodd"
},
"viewBox": "0 0 39 54"
},
"type": "ia.shapes.svg"
},
{
"events": {
"dom": {
"onClick": {
"config": {
"script": "\ttagPath \u003d self.view.params.tagPath\n\tobjectName \u003d self.view.params.objectName\n\tpayload\u003d{\n\t\t\u0027objectName\u0027: objectName,\n\t\t\u0027tagPath\u0027: tagPath,\n\t\t\u0027modal\u0027: False,\n\t\t\u0027resizable\u0027: True,\n\t\t\u0027draggable\u0027: True,\n\t\t\u0027position\u0027: {\n#\t\t\t\u0027left\u0027:\u00270\u0027,\n#\t\t\t\u0027top\u0027:\u00270\u0027,\n\t\t\t\u0027width\u0027: \u00271000px\u0027,\n\t\t\t\u0027height\u0027: \u0027800px\u0027\n\t\t}\n\t}\n\tutils.nav.eqPopupMsg(self, payload)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "AlarmBorder"
},
"position": {
"height": 0.8675,
"width": 0.8154,
"y": 0.1084
},
"propConfig": {
"props.style.outlineColor": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"transforms": [
{
"fallback": "none",
"inputType": "scalar",
"mappings": [
{
"input": -1,
"output": "white"
},
{
"input": 0,
"output": "white"
},
{
"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": [
{
"fallback": "none",
"inputType": "scalar",
"mappings": [
{
"input": -1,
"output": "none"
},
{
"input": 0,
"output": "none"
},
{
"input": 1,
"output": "solid"
},
{
"input": 2,
"output": "solid"
},
{
"input": 3,
"output": "solid"
},
{
"input": 4,
"output": "solid"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
}
},
"props": {
"style": {
"classes": "containers/HoverOver"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "EmbeddedView"
},
"position": {
"height": 0.241,
"width": 0.3077,
"x": 0.6615,
"y": -0.0482
},
"propConfig": {
"props.params.AlarmSeverity": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"type": "property"
}
}
},
"props": {
"path": "Library/Alarms/Icons",
"useDefaultViewHeight": true,
"useDefaultViewWidth": true
},
"type": "ia.display.view"
}
],
"meta": {
"name": "root"
},
"position": {
"x": 20,
"y": 0
},
"props": {
"mode": "percent",
"style": {
"overflow": "visible"
}
},
"type": "ia.container.coord"
}
}