{ "custom": { "color": "#C2C2C2", "isHighlited": false, "overlayColor": "#ffffff", "priority": "No Active Alarms", "state": "Offline" }, "params": { "demoColor": -1, "highlight": "", "tagProps": [ "System/MCM01/PE/TPE/PS3_1_TPE1", "value", "value", "value", "value", "value", "value", "value", "value", "value" ] }, "propConfig": { "custom.color": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color" }, "transforms": [ { "expression": "if(\r\n {view.params.demoColor} \u003e\u003d 0,\r\n {view.params.demoColor},\r\n coalesce({value}, 0)\r\n)\r\n", "type": "expression" }, { "fallback": "#000000", "inputType": "scalar", "mappings": [ { "input": 0, "output": "#C2C2C2" }, { "input": 1, "output": "#FF0000" }, { "input": 2, "output": "#FFA500" }, { "input": 3, "output": "#0008FF" }, { "input": 4, "output": "#00FF00" }, { "input": 5, "output": "#FFF700" }, { "input": 6, "output": "#87CEEB" }, { "input": 7, "output": "#90EE90" }, { "input": 8, "output": "#964B00" }, { "input": 9, "output": "#FFFFFF" }, { "input": 10, "output": "#000000" }, { "input": 11, "output": "#8B0000" }, { "input": 12, "output": "#808080" }, { "input": 13, "output": "#8B8000" }, { "input": 14, "output": "#006400" }, { "input": 15, "output": "#FFFFC5" }, { "input": 16, "output": "#00008B" }, { "input": 17, "output": "#FF7276" }, { "input": 18, "output": "#556B2F" }, { "input": 19, "output": "#B43434" }, { "input": 20, "output": "#4682B4" }, { "input": 21, "output": "#FFD700" } ], "outputType": "color", "type": "map" } ], "type": "tag" }, "persistent": true }, "custom.isHighlited": { "binding": { "config": { "expression": "{view.params.highlight} !\u003d \"\"" }, "type": "expr" }, "persistent": true }, "custom.overlayColor": { "binding": { "config": { "path": "view.params.highlight" }, "transforms": [ { "fallback": "#ffffff", "inputType": "scalar", "mappings": [ { "input": "Diagnostic", "output": "rgb(88, 158, 249)" }, { "input": "Low", "output": "rgb(255, 255, 0)" }, { "input": "Medium", "output": "rgb(247, 160, 96)" }, { "input": "High", "output": "rgb(245, 95, 89)" } ], "outputType": "scalar", "type": "map" } ], "type": "property" }, "persistent": true }, "custom.priority": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority" }, "transforms": [ { "expression": "coalesce({value},0)", "type": "expression" }, { "fallback": null, "inputType": "scalar", "mappings": [ { "input": 0, "output": "No Active Alarms" }, { "input": 1, "output": "High" }, { "input": 2, "output": "Medium" }, { "input": 3, "output": "Low" }, { "input": 4, "output": "Diagnostic" } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "custom.state": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State" }, "transforms": [ { "expression": "if(\r\n {view.params.demoColor} \u003e\u003d 0,\r\n {view.params.demoColor},\r\n coalesce({value}, -1)\r\n)\r\n", "type": "expression" }, { "fallback": "Offline", "inputType": "scalar", "mappings": [ { "input": 27, "output": "CLEAR" }, { "input": 0, "output": "BLOCKED" }, { "input": 17, "output": "JAMMED" } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "params.demoColor": { "paramDirection": "input", "persistent": true }, "params.highlight": { "paramDirection": "input", "persistent": true }, "params.tagProps": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 25, "width": 55 } }, "root": { "children": [ { "meta": { "name": "arrow_icon" }, "position": { "height": 1, "width": 1 }, "propConfig": { "props.elements[0].stroke.paint": { "binding": { "config": { "path": "view.custom.overlayColor" }, "type": "property" } }, "props.elements[0].style.animation": { "binding": { "config": { "expression": "if ({view.custom.isHighlited}, \"2.5s linear infinite both pulse\", \"\")" }, "type": "expr" } }, "props.elements[1].stroke.paint": { "binding": { "config": { "path": "view.custom.overlayColor" }, "type": "property" } }, "props.elements[1].style.animation": { "binding": { "config": { "expression": "if ({view.custom.isHighlited}, \"2.5s linear infinite both pulse\", \"\")" }, "type": "expr" } }, "props.elements[2].stroke.paint": { "binding": { "config": { "path": "view.custom.overlayColor" }, "type": "property" } }, "props.elements[2].style.animation": { "binding": { "config": { "expression": "if ({view.custom.isHighlited}, \"2.5s linear infinite both pulse\", \"\")" }, "type": "expr" } }, "props.elements[3].fill.paint": { "binding": { "config": { "path": "view.custom.color" }, "type": "property" } }, "props.elements[5].fill.paint": { "binding": { "config": { "path": "view.custom.color" }, "type": "property" } } }, "props": { "elements": [ { "d": "m 59.750623,0.2892927 h 2.751934 V 24.843001 H 59.750623 Z M 69.895996,0.1057407 H 72.17918 V 24.843001 H 69.895996 Z M 60.623409,23.109307 h 10.771722 v 2.772911 H 60.623409 Z m 0.37895,-23.5617843 h 9.819444 v 2.8900141 h -9.819444 z", "fill": { "paint": "#589ef9" }, "id": "glow_rect", "name": "glow_rect", "stroke": { "width": 2 }, "style": { "opacity": 0, "transition": "opacity 2.5s linear" }, "type": "path" }, { "d": "m -1.2129288,26.568508 0.100729,-29.7301413 M 0.55192196,26.621269 27.06045,13.160606 M 0.0746482,-1.8229853 26.662724,11.47986", "fill": { "url": "url(#linearGradient26)" }, "id": "glow_triangle", "name": "glow_triangle", "stroke": { "width": 4.68064 }, "style": { "opacity": 0, "transition": "opacity 2.5s linear" }, "type": "path" }, { "fill": { "opacity": "1", "url": "url(#linearGradient9)" }, "id": "glow_line", "name": "glow_line", "stroke": { "width": "5.92368" }, "style": { "classes": "", "opacity": 0, "transition": "opacity 2.5s linear" }, "type": "line", "x1": "23.512833", "x2": "61.474541", "y1": "12.531563", "y2": "12.531563" }, { "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" }, "style": { "classes": "", "opacity": 1, "zIndex": 1 }, "type": "path" }, { "id": "line1", "name": "line1", "stroke": { "dasharray": "2, 2", "paint": "#000000", "width": "2.25291" }, "type": "line", "x1": "22.528276", "x2": "62.238979", "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": "62.519203", "y": "3.1996493" } ], "style": { "overflow": "visible" }, "viewBox": "0 0 70 25" }, "type": "ia.shapes.svg" } ], "events": { "dom": { "onClick": { "config": { "script": "\t#create tags lists for the device\n\tprops \u003d self.view.params.tagProps\n\ttags_table_dataset \u003d autStand.devices.getAllTags(self, props[0])\n\tsystem.perspective.openDock(\u0027Docked-East-Device\u0027,params\u003d{\u0027tagProps\u0027:props, \"tags\":tags_table_dataset, \"name\":\"\"} )" }, "scope": "G", "type": "script" }, "onMouseEnter": { "config": { "draggable": false, "id": "LZ5nPg42{view.params.tagProps[0]}", "modal": false, "overlayDismiss": false, "position": { "relativeLocation": "top-right" }, "positionType": "relative", "resizable": false, "showCloseIcon": false, "type": "open", "viewParams": { "text": "{/root.meta.tooltip.text}" }, "viewPath": "autStand/Custom_Views/Tooltip", "viewportBound": false }, "scope": "C", "type": "popup" }, "onMouseLeave": { "config": { "draggable": true, "id": "LZ5nPg42{view.params.tagProps[0]}", "modal": false, "overlayDismiss": false, "resizable": true, "showCloseIcon": true, "type": "close", "viewPath": "autStand/Custom_Views/Tooltip", "viewportBound": false }, "scope": "C", "type": "popup" } } }, "meta": { "name": "root", "tooltip": { "enabled": true } }, "propConfig": { "meta.tooltip.text": { "binding": { "config": { "expression": "if(\n {view.custom.state} !\u003d \"Offline\",\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority} + \", State: \" + {view.custom.state},\n \"Device Disconnected\"\n)\n" }, "type": "expr" } }, "meta.visible": { "binding": { "config": { "path": "session.custom.alarm_filter.show_photoeyes" }, "type": "property" } } }, "props": { "mode": "percent", "style": { "cursor": "pointer", "overflow": "visible", "userSelect": "none" } }, "type": "ia.container.coord" } }