Files
Stream_PHX_A7/Gateways/FE/projects/.resources/1e160e431e310606c19be12c1f6cbb922635388cc93225325a08e8703b18d5d8

100 lines
2.5 KiB
Plaintext

{
"custom": {},
"params": {
"inPath": "[Ignition_Common_IO_Gtwy]Cables/DS_1A_1B",
"outPath": "[Ignition_Common_IO_Gtwy]Yard/SATB1_YARD_DS-1A3"
},
"propConfig": {
"params.inPath": {
"paramDirection": "input",
"persistent": true
},
"params.outPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 43
}
},
"root": {
"children": [
{
"custom": {
"colorHandler": {}
},
"meta": {
"name": "Label"
},
"position": {
"basis": "76.7%"
},
"propConfig": {
"custom.colorHandler.cable": {
"binding": {
"config": {
"struct": {
"in1": "{view.custom.In1}",
"in2": "{view.custom.In2}"
},
"waitOnAll": true
},
"transforms": [
{
"code": "\tif value[\u0027in1\u0027]\u003e0:\n\t\treturn \u0027var(--elec-on)\u0027\n\tif value[\u0027in2\u0027]\u003c0:\n\t\treturn \u0027var(--elec-on)\u0027\n\telse:\n\t\treturn \u0027var(--elec-off)\u0027",
"type": "script"
}
],
"type": "expr-struct"
}
},
"props.style.borderLeftColor": {
"binding": {
"config": {
"path": "this.custom.colorHandler.cable"
},
"type": "property"
}
},
"props.style.borderRightColor": {
"binding": {
"config": {
"path": "this.custom.colorHandler.cable"
},
"type": "property"
}
},
"props.style.borderTopColor": {
"binding": {
"config": {
"path": "this.custom.colorHandler.cable"
},
"type": "property"
}
}
},
"props": {
"style": {
"borderBottomWidth": 2,
"borderLeftStyle": "none",
"borderLeftWidth": 2,
"borderRightStyle": "none",
"borderRightWidth": 2,
"borderTopStyle": "solid",
"borderTopWidth": 2
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "root"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
}
}