{ "custom": { "state": 0, "string": "Clear" }, "params": { "tagProps": [ "value", "value", "value", "value", "value", "value", "value", "value", "value", "value" ] }, "propConfig": { "custom.state": { "binding": { "config": { "fallbackDelay": 1, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" }, "transforms": [ { "expression": "coalesce({value},{view.params.forceFaultStatus},0)", "type": "expression" }, { "fallback": 0, "inputType": "scalar", "mappings": [ { "input": 1, "output": 1 }, { "input": 2, "output": 2 }, { "input": 3, "output": 3 }, { "input": 4, "output": 4 }, { "input": 5, "output": 5 }, { "input": 6, "output": 6 }, { "input": 7, "output": 7 } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "custom.string": { "binding": { "config": { "path": "view.custom.state" }, "transforms": [ { "fallback": "Clear", "inputType": "scalar", "mappings": [ { "input": 1, "output": "Clear" }, { "input": 2, "output": "Blocked" }, { "input": 3, "output": "Disabled" }, { "input": 4, "output": "Jammed" } ], "outputType": "scalar", "type": "map" } ], "type": "property" }, "persistent": true }, "params.tagProps": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 25, "width": 100 } }, "root": { "children": [ { "meta": { "name": "arrow_icon" }, "position": { "height": 1, "width": 1 }, "propConfig": { "props.elements[1].fill.paint": { "binding": { "config": { "path": "view.custom.state" }, "transforms": [ { "fallback": "#00FF00", "inputType": "scalar", "mappings": [ { "input": 0, "output": "#00FF00" }, { "input": 2, "output": "#000000" }, { "input": 3, "output": "#800080" }, { "input": 4, "output": "#FF0000" } ], "outputType": "color", "type": "map" } ], "type": "property" } }, "props.elements[3].fill.paint": { "binding": { "config": { "path": "view.custom.state" }, "transforms": [ { "fallback": "#00FF00", "inputType": "scalar", "mappings": [ { "input": 0, "output": "#00FF00" }, { "input": 2, "output": "#000000" }, { "input": 3, "output": "#800080" }, { "input": 4, "output": "#FF0000" } ], "outputType": "color", "type": "map" } ], "type": "property" } } }, "props": { "elements": [ { "id": "defs1", "name": "defs1", "type": "defs" }, { "d": "M 21.343364,12.531563 2.1710548,22.117718 V 2.9454084 Z", "fill": {}, "id": "path1", "name": "path1", "stroke": { "paint": "#000000", "width": "1.91723" }, "type": "path" }, { "id": "line1", "name": "line1", "stroke": { "dasharray": "2, 2", "paint": "#000000", "width": "3.06818" }, "type": "line", "x1": "22.528276", "x2": "96.180107", "y1": "12.531563", "y2": "12.531563" }, { "fill": {}, "height": "19.17231", "id": "rect1", "name": "rect1", "stroke": { "paint": "#000000", "width": "1.91723" }, "type": "rect", "width": "5.7516928", "x": "92.519203", "y": "3.1996493" } ], "preserveAspectRatio": "none", "viewBox": "0 0 100 25" }, "type": "ia.shapes.svg" } ], "events": { "dom": { "onClick": { "config": { "script": "\tsystem.perspective.openDock(\u0027Docked-East-PE\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})" }, "scope": "G", "type": "script" } } }, "meta": { "name": "root", "tooltip": { "enabled": true } }, "propConfig": { "meta.tooltip.text": { "binding": { "config": { "expression": "\"Source Id: \" + {view.params.tagProps[0]} + \", Status: \" + {view.custom.string}\n" }, "type": "expr" } }, "meta.visible": { "binding": { "config": { "path": "session.custom.alarm_filter.show_photoeyes" }, "type": "property" } } }, "props": { "mode": "percent", "style": { "cursor": "pointer", "userSelect": "none" } }, "type": "ia.container.coord" } }