247 lines
5.8 KiB
Plaintext
247 lines
5.8 KiB
Plaintext
{
|
|
"custom": {
|
|
"color": "#000",
|
|
"priority": 0,
|
|
"state": 0
|
|
},
|
|
"params": {
|
|
"tagProps": [
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value"
|
|
]
|
|
},
|
|
"propConfig": {
|
|
"custom.color": {
|
|
"persistent": true
|
|
},
|
|
"custom.priority": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.state"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": 0,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 1,
|
|
"output": 4
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": 3
|
|
},
|
|
{
|
|
"input": 3,
|
|
"output": 2
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": 1
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.state": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},0)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"params.tagProps": {
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 40,
|
|
"width": 40
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "MCM"
|
|
},
|
|
"position": {
|
|
"height": 1,
|
|
"width": 1
|
|
},
|
|
"propConfig": {
|
|
"props.elements[1].fill.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.color"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"elements": [
|
|
{
|
|
"id": "defs1",
|
|
"name": "defs1",
|
|
"type": "defs"
|
|
},
|
|
{
|
|
"fill": {},
|
|
"height": "47.417244",
|
|
"id": "beaconSquare",
|
|
"name": "beaconSquare",
|
|
"stroke": {
|
|
"paint": "#000000",
|
|
"width": "2.36887"
|
|
},
|
|
"type": "rect",
|
|
"width": "47.337795",
|
|
"x": "1.450278",
|
|
"y": "1.3708278"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"id": "tspan1",
|
|
"name": "tspan1",
|
|
"stroke": {
|
|
"width": "0.895573"
|
|
},
|
|
"text": "MCM",
|
|
"type": "tspan",
|
|
"x": "24.985008",
|
|
"y": "29.648235"
|
|
}
|
|
],
|
|
"fill": {
|
|
"paint": "#ffffff"
|
|
},
|
|
"fontSize": "16.1203px",
|
|
"id": "beaconLabel",
|
|
"name": "beaconLabel",
|
|
"stroke": {
|
|
"width": "0.895573"
|
|
},
|
|
"textAnchor": "middle",
|
|
"type": "text",
|
|
"x": "24.985008",
|
|
"y": "29.648235"
|
|
}
|
|
],
|
|
"viewBox": "0 0 50 50"
|
|
},
|
|
"type": "ia.shapes.svg"
|
|
}
|
|
],
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\t#create tags lists for the device\n\tprops \u003d self.view.params.tagProps\n\ttags_table_dataset \u003d autStand.devices.getAllTags(self, props[0])\n\tsystem.perspective.openDock(\u0027Docked-East-Device\u0027,params\u003d{\u0027tagProps\u0027:props, \"tags\":tags_table_dataset})"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "root",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"location": "top-left",
|
|
"style": {}
|
|
}
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.style.classes": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "{view.custom.priority}"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "Alarms-Styles/NoAlarm",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 1,
|
|
"output": "Alarms-Styles/Diagnostic"
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": "Alarms-Styles/Low"
|
|
},
|
|
{
|
|
"input": 3,
|
|
"output": "Alarms-Styles/Medium"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "Alarms-Styles/High"
|
|
}
|
|
],
|
|
"outputType": "style-list",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "\"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority} + \", State: \" + {view.custom.state}"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"meta.visible": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "session.custom.alarm_filter.show_dpm_mcm"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"mode": "percent",
|
|
"style": {
|
|
"cursor": "pointer",
|
|
"overflow": "hidden"
|
|
}
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |