{ "custom": { "color": "value", "priority": "value", "string": "Unknown" }, "params": { "tagProps": [ "value", "value", "value", "value", "value", "value", "value", "value", "value", "value" ] }, "propConfig": { "custom.color": { "persistent": true }, "custom.priority": { "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": "coalesce({value},0)", "type": "expression" } ], "type": "tag" } }, "custom.string": { "binding": { "config": { "path": "view.custom.state" }, "transforms": [ { "fallback": "Unknown", "inputType": "scalar", "mappings": [ { "input": 1, "output": "OK" }, { "input": 2, "output": "Faulted" } ], "outputType": "scalar", "type": "map" } ], "type": "property" }, "persistent": true }, "params.tagProps": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 26, "width": 26 } }, "root": { "children": [ { "meta": { "name": "VFD" }, "position": { "height": 1, "width": 1 }, "propConfig": { "props.elements[1].fill.paint": { "binding": { "config": { "path": "view.custom.state" }, "transforms": [ { "fallback": "#C2C2C2", "inputType": "scalar", "mappings": [ { "input": 1, "output": "url(#splitGreenGrey)" }, { "input": 2, "output": "url(#splitRedGrey)" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } } }, "props": { "elements": [ { "elements": [ { "elements": [ { "offset": "0%", "stop-color": "#C2C2C2", "type": "stop" }, { "offset": "49.5%", "stop-color": "#C2C2C2", "type": "stop" }, { "offset": "50.5%", "stop-color": "#00FF00", "type": "stop" }, { "offset": "100%", "stop-color": "#00FF00", "type": "stop" } ], "gradientUnits": "userSpaceOnUse", "id": "splitGreenGrey", "type": "linearGradient", "x1": "0", "x2": "24", "y1": "0", "y2": "24" }, { "elements": [ { "offset": "0%", "stop-color": "#C2C2C2", "type": "stop" }, { "offset": "49.5%", "stop-color": "#C2C2C2", "type": "stop" }, { "offset": "50.5%", "stop-color": "#FF0000", "type": "stop" }, { "offset": "100%", "stop-color": "#FF0000", "type": "stop" } ], "gradientUnits": "userSpaceOnUse", "id": "splitRedGrey", "type": "linearGradient", "x1": "0", "x2": "24", "y1": "0", "y2": "24" } ], "type": "defs" }, { "cx": 12, "cy": "12", "fill": {}, "rx": "10", "ry": "10", "stroke": { "paint": "#000000", "width": "2" }, "type": "ellipse" }, { "d": "M 6,18 L 18,6", "fill": {}, "stroke": { "linecap": "round", "paint": "#000000", "width": "2" }, "type": "path" } ], "viewBox": "0 0 24 24" }, "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-VFD\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps, \"tags\":tags_table_dataset})" }, "scope": "G", "type": "script" } } }, "meta": { "name": "VFD", "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_VFD" }, "type": "property" } } }, "props": { "mode": "percent", "style": { "cursor": "pointer" } }, "type": "ia.container.coord" } }