BNA8/.resources/48d05e43a46c38e8254e166a7b00962f4c38da1326ebc3506008665dd6eccdac

277 lines
7.5 KiB
Plaintext

{
"custom": {},
"params": {
"ASdata": "value",
"Browser": "value",
"Color": null,
"DeviceType": "value",
"FolderPath": "value",
"Vendor": "value",
"Visibility": true,
"tagPath": "value"
},
"propConfig": {
"params.ASdata": {
"paramDirection": "input",
"persistent": true
},
"params.Browser": {
"paramDirection": "inout",
"persistent": true
},
"params.Color": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"Browser": "{view.params.Browser}",
"FolderPath": "{view.params.FolderPath}",
"tagPath": "{view.params.tagPath}"
},
"tagPath": "[{Browser}]{FolderPath}{tagPath}/HMI/Color"
},
"type": "tag"
},
"paramDirection": "inout",
"persistent": true
},
"params.DeviceType": {
"paramDirection": "input",
"persistent": true
},
"params.FolderPath": {
"paramDirection": "inout",
"persistent": true
},
"params.Vendor": {
"paramDirection": "input",
"persistent": true
},
"params.Visibility": {
"binding": {
"config": {
"expression": "if ({view.params.Color} \u003d 10, false, true)"
},
"type": "expr"
},
"paramDirection": "output",
"persistent": true
},
"params.tagPath": {
"paramDirection": "inout",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 25,
"width": 25
}
},
"root": {
"children": [
{
"meta": {
"name": "Encoder"
},
"position": {
"basis": "100%"
},
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"expression": "{session.custom.show.Encoders} || {view.params.Visibility}"
},
"type": "expr"
}
},
"props.elements[0].elements[0].fill.paint": {
"binding": {
"config": {
"path": "view.params.Color"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": 0,
"output": "#808080"
},
{
"input": 1,
"output": "#FF0000"
},
{
"input": 2,
"output": "#FF0000"
},
{
"input": 3,
"output": "#FF0000"
},
{
"input": 4,
"output": "#FF8C00"
},
{
"input": 5,
"output": "#D900D9"
},
{
"input": 6,
"output": "#0000FF"
},
{
"input": 7,
"output": "#FFFF00"
},
{
"input": 8,
"output": "#FFFF00"
},
{
"input": 9,
"output": "#FFFF00"
},
{
"input": 10,
"output": "#00D900"
},
{
"input": 11,
"output": "#87CEFA"
},
{
"input": 12,
"output": "#CCFFCC"
},
{
"input": 13,
"output": "#D3D3D3"
},
{
"input": 14,
"output": "#AC5F00"
},
{
"input": 100,
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.style.classes": {
"binding": {
"config": {
"expression": "if ({view.params.tagPath} \u003d {session.custom.Search},\r\n\"table/SearchTaghighlight\", \"table/highlight\")"
},
"type": "expr"
}
},
"props.style.transform": {
"binding": {
"config": {
"expression": "\"rotate(\" + {session.custom.RotateText} + \"deg)\""
},
"type": "expr"
}
}
},
"props": {
"elements": [
{
"elements": [
{
"cx": "42.11",
"cy": "42.11",
"fill": {},
"name": "circle",
"r": "41.61",
"type": "circle"
},
{
"name": "polygon",
"points": "81.31 56.33 55.65 56.33 55.65 29.33 28.47 29.33 28.47 56.33 2.81 56.33 2.81 55.33 27.47 55.33 27.47 28.33 56.65 28.33 56.65 55.33 81.31 55.33 81.31 56.33",
"type": "polygon"
}
],
"name": "group",
"type": "group"
}
],
"preserveAspectRatio": "none",
"style": {},
"viewBox": "0 0 84.22 84.22"
},
"type": "ia.shapes.svg"
}
],
"events": {
"dom": {
"onClick": {
"config": {
"draggable": false,
"id": "information",
"modal": false,
"overlayDismiss": false,
"resizable": false,
"showCloseIcon": false,
"type": "open",
"viewParams": {
"ASdata": "{view.params.ASdata}",
"Browser": "{view.params.Browser}",
"DeviceType": "{view.params.DeviceType}",
"FolderPath": "{view.params.FolderPath}",
"Vendor": "{view.params.Vendor}",
"tagPath": "{view.params.tagPath}"
},
"viewPath": "Windows/Information/Information",
"viewportBound": false
},
"scope": "C",
"type": "popup"
}
}
},
"meta": {
"name": "root",
"tooltip": {
"enabled": true,
"style": {
"backgroundColor": "#2B2B2BBF",
"color": "#FFFFFF",
"fontSize": 12,
"textAlign": "left",
"white-space": "pre"
}
}
},
"propConfig": {
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "replace({view.params.tagPath}, \"_\", \"-\")+\r\n\"\\n Status: \"+\r\ncase (tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color\"),\r\n 1 ,\"Faulted\",\r\n 10 ,\"OK\",\r\n \"not response\")"
},
"type": "expr"
}
}
},
"props": {
"direction": "column",
"justify": "center",
"style": {
"cursor": "pointer"
}
},
"type": "ia.container.flex"
}
}