93 lines
2.1 KiB
Plaintext
93 lines
2.1 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"AlarmSeverity": 1
|
|
},
|
|
"propConfig": {
|
|
"params.AlarmSeverity": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 300,
|
|
"width": 150
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "AlarmBorder Vertical"
|
|
},
|
|
"position": {
|
|
"basis": "300px"
|
|
},
|
|
"propConfig": {
|
|
"position.display": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({view.params.AlarmSeverity}\u003e0,True, False)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.elements[0].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "concat(\u0027var(\u0027,\r\ncase(\r\n\t{view.params.AlarmSeverity},\r\n\t1, \"--coolpurple\",\r\n\t2, \"--goldenyellow\",\r\n\t3, \"--sunsetorange\",\r\n\t4, \"--alarmred\",\r\n\t\"white\"\r\n)\r\n,\u0027)\u0027)\r\n\t"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"elements": [
|
|
{
|
|
"fill": {
|
|
"opacity": "0",
|
|
"paint": "#ebebeb"
|
|
},
|
|
"height": "725",
|
|
"id": "Box",
|
|
"name": "Box",
|
|
"stroke": {
|
|
"width": "10px"
|
|
},
|
|
"type": "rect",
|
|
"width": 350,
|
|
"x": 2.083,
|
|
"y": 2.083
|
|
}
|
|
],
|
|
"fill": {
|
|
"rule": "evenodd"
|
|
},
|
|
"preserveAspectRatio": "none",
|
|
"stroke": {
|
|
"linecap": "square",
|
|
"linejoin": "round",
|
|
"miterlimit": "1.5"
|
|
},
|
|
"style": {
|
|
"clipRule": "evenodd"
|
|
},
|
|
"viewBox": "0 0 355 730"
|
|
},
|
|
"type": "ia.shapes.svg"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"justify": "center",
|
|
"style": {
|
|
"overflow": "visible"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |