195 lines
5.2 KiB
Plaintext
195 lines
5.2 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"alwaysShowAll": false,
|
|
"mirror": false,
|
|
"tagPath": "[default]MCP02/CH_20130/CH_20130"
|
|
},
|
|
"propConfig": {
|
|
"params.alwaysShowAll": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.mirror": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 81,
|
|
"width": 50
|
|
},
|
|
"loading": {
|
|
"mode": "blocking"
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "CH"
|
|
},
|
|
"position": {
|
|
"height": 30,
|
|
"rotate": {
|
|
"angle": "180deg"
|
|
},
|
|
"width": "100%",
|
|
"y": 4
|
|
},
|
|
"propConfig": {
|
|
"props.status": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/CH/Graphics"
|
|
},
|
|
"overlayOptOut": true,
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"config": {
|
|
"showLabel": false,
|
|
"type": "chute"
|
|
}
|
|
},
|
|
"type": "dex.display.conveyor"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "CH_Jam_PE"
|
|
},
|
|
"position": {
|
|
"height": 10,
|
|
"rotate": {
|
|
"anchor": "0 0",
|
|
"angle": "270deg"
|
|
},
|
|
"width": 43,
|
|
"x": 2,
|
|
"y": 43
|
|
},
|
|
"propConfig": {
|
|
"props.status": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/CH_Jam_PE/Graphics"
|
|
},
|
|
"overlayOptOut": true,
|
|
"transforms": [
|
|
{
|
|
"expression": "if({view.params.alwaysShowAll},\r\n\tjsonSet({value}, \"showAlways\", {view.params.alwaysShowAll}),\r\n\t{value}\r\n)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"type": "dex.display.photoeye"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "BCN1_AMB"
|
|
},
|
|
"position": {
|
|
"height": 16,
|
|
"width": 16,
|
|
"x": 18,
|
|
"y": 65
|
|
},
|
|
"propConfig": {
|
|
"props.status": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/BCN1/AMB/Graphics"
|
|
},
|
|
"overlayOptOut": true,
|
|
"transforms": [
|
|
{
|
|
"expression": "if({view.params.alwaysShowAll},\r\n\tjsonSet({value}, \"showAlways\", {view.params.alwaysShowAll}),\r\n\t{value}\r\n)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.transform": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "parent.props.style.transform"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"type": "dex.display.beacon"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"propConfig": {
|
|
"props.style.transform": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.mirror"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": null,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": true,
|
|
"output": "scale(1, -1)"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"overflow": "hidden"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"customMethods": [
|
|
{
|
|
"name": "openPopup",
|
|
"params": [],
|
|
"script": "\tif self.view.params.isClickable:\n\t\tid \u003d \"SpiralChute|\" + self.view.params.tagPath\n\t\ttitle \u003d utils.prettyName(self.view.params.tagPath.split(\"/\")[-1])\n\t\tparams \u003d { \n\t\t\t\"deviceType\": \"spiralchute\",\n\t\t\t\"props\": { \n\t\t\t\t\"config\": {\n\t\t\t\t\t\"alwaysShowAll\": self.view.params.alwaysShowAll,\n\t\t\t\t\t\"isClickable\": self.view.params.isClickable,\n\t\t\t\t\t\"mirror\": self.view.params.mirror\n\t\t\t\t},\n\t\t\t\t\"status\": {\n\t\t\t\t\t\"tagPath\": self.view.params.tagPath\n\t\t\t\t}\n\t\t \t},\n\t\t \t\"tabs\": [\"Controls\", \"Alarm History\", \"Devices\"]\t\t\n\t\t}\n\t\tsystem.perspective.openPopup(id, \"Popups/DeviceWrapper\", params, title, resizable \u003d True)"
|
|
}
|
|
],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": []
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |