Change MCM
This commit is contained in:
parent
835b0ad79d
commit
99e55d3c4c
@ -423,37 +423,25 @@
|
|||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"defaultSize": {
|
"defaultSize": {
|
||||||
"height": 46,
|
"height": 65,
|
||||||
"width": 68
|
"width": 100
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "MCM"
|
"name": "Control cabinet"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"height": 1,
|
"height": 1,
|
||||||
"width": 1
|
"width": 1
|
||||||
},
|
},
|
||||||
"propConfig": {
|
"propConfig": {
|
||||||
"props.elements[0].fill.paint": {
|
"props.elements[0].elements[1].fill.paint": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#000000\",\r\n {view.custom.color}\r\n)\r\n"
|
"expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#808080\",\r\n {view.custom.color}\r\n)\r\n"
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
},
|
|
||||||
"onChange": {
|
|
||||||
"enabled": false,
|
|
||||||
"script": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.elements[1].style.fill": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#FFFFFF\",\r\n \"#000000\"\r\n)\r\n"
|
|
||||||
},
|
},
|
||||||
"type": "expr"
|
"type": "expr"
|
||||||
}
|
}
|
||||||
@ -462,28 +450,50 @@
|
|||||||
"props": {
|
"props": {
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"d": "M 1 0 H 60 V 40 H 1 Z",
|
"elements": [
|
||||||
"fill": {},
|
{
|
||||||
"name": "path",
|
"elements": [
|
||||||
"stroke": {
|
{
|
||||||
"paint": "#4c4c4c",
|
"name": "polygon",
|
||||||
"width": 4
|
"points": "2.04 0.5 124.5 0.5 124.5 64.18 2.04 0.5",
|
||||||
},
|
"type": "polygon"
|
||||||
"type": "path"
|
},
|
||||||
},
|
{
|
||||||
{
|
"d": "M124,1V63.35L4.09,1H124m1-1H0L125,65V0Z",
|
||||||
"style": {
|
"name": "path",
|
||||||
"classes": "",
|
"type": "path"
|
||||||
"fontWeight": "bold"
|
}
|
||||||
},
|
],
|
||||||
"text": "MCM",
|
"fill": {
|
||||||
"type": "text",
|
"paint": "#000000"
|
||||||
"x": 11,
|
},
|
||||||
"y": 26
|
"name": "group",
|
||||||
|
"type": "group"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"name": "polygon",
|
||||||
|
"points": "0.5 64.5 0.5 0.82 122.95 64.5 0.5 64.5",
|
||||||
|
"type": "polygon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"d": "M1,1.65,120.91,64H1V1.65M0,0V65H125L0,0Z",
|
||||||
|
"name": "path",
|
||||||
|
"type": "path"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fill": {},
|
||||||
|
"name": "group",
|
||||||
|
"type": "group"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "group",
|
||||||
|
"type": "group"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"preserveAspectRatio": "none",
|
"preserveAspectRatio": "none",
|
||||||
"viewBox": "-0.5 -0.5 62 41"
|
"viewBox": "0 0 125 65"
|
||||||
},
|
},
|
||||||
"type": "ia.shapes.svg"
|
"type": "ia.shapes.svg"
|
||||||
}
|
}
|
||||||
@ -556,18 +566,9 @@
|
|||||||
},
|
},
|
||||||
"type": "expr"
|
"type": "expr"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"meta.visible": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "session.custom.alarm_filter.show_gateways"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"aspectRatio": "68:47",
|
|
||||||
"mode": "percent",
|
"mode": "percent",
|
||||||
"style": {
|
"style": {
|
||||||
"cursor": "pointer",
|
"cursor": "pointer",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user