|
|
|
@ -12,7 +12,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"tag": "line", |
|
|
|
"stateRenderFunction": "element.stroke(ctx.properties.lineColor);\nif (ctx.properties.mainLine) {\n element.attr({'stroke-width': ctx.properties.mainLineSize});\n} else {\n element.attr({'stroke-width': ctx.properties.secondaryLineSize});\n}", |
|
|
|
"stateRenderFunction": "element.stroke(ctx.properties.lineColor);\nelement.attr({'stroke-width': ctx.properties.lineSize});", |
|
|
|
"actions": null |
|
|
|
} |
|
|
|
], |
|
|
|
@ -53,18 +53,18 @@ |
|
|
|
"defaultWidgetActionSettings": null |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": "arrowDirection", |
|
|
|
"name": "{i18n:scada.symbol.arrow-direction}", |
|
|
|
"hint": "{i18n:scada.symbol.arrow-direction-hint}", |
|
|
|
"id": "flowAnimation", |
|
|
|
"name": "{i18n:scada.symbol.flow-animation}", |
|
|
|
"hint": "{i18n:scada.symbol.flow-animation-hint}", |
|
|
|
"group": null, |
|
|
|
"type": "value", |
|
|
|
"valueType": "BOOLEAN", |
|
|
|
"trueLabel": "{i18n:scada.symbol.forward}", |
|
|
|
"falseLabel": "{i18n:scada.symbol.reverse}", |
|
|
|
"stateLabel": "{i18n:scada.symbol.forward}", |
|
|
|
"trueLabel": "{i18n:scada.symbol.present}", |
|
|
|
"falseLabel": "{i18n:scada.symbol.absent}", |
|
|
|
"stateLabel": "{i18n:scada.symbol.flow-present}", |
|
|
|
"defaultGetValueSettings": { |
|
|
|
"action": "DO_NOTHING", |
|
|
|
"defaultValue": true, |
|
|
|
"defaultValue": false, |
|
|
|
"executeRpc": { |
|
|
|
"method": "getState", |
|
|
|
"requestTimeout": 5000, |
|
|
|
@ -72,34 +72,38 @@ |
|
|
|
"persistentPollingInterval": 1000 |
|
|
|
}, |
|
|
|
"getAttribute": { |
|
|
|
"scope": null, |
|
|
|
"key": "state" |
|
|
|
"key": "state", |
|
|
|
"scope": null |
|
|
|
}, |
|
|
|
"getTimeSeries": { |
|
|
|
"key": "state" |
|
|
|
}, |
|
|
|
"getAlarmStatus": { |
|
|
|
"severityList": null, |
|
|
|
"typeList": null |
|
|
|
}, |
|
|
|
"dataToValue": { |
|
|
|
"type": "NONE", |
|
|
|
"dataToValueFunction": "/* Should return boolean value */\nreturn data;", |
|
|
|
"compareToValue": true |
|
|
|
"compareToValue": true, |
|
|
|
"dataToValueFunction": "/* Should return boolean value */\nreturn data;" |
|
|
|
} |
|
|
|
}, |
|
|
|
"defaultSetValueSettings": null, |
|
|
|
"defaultWidgetActionSettings": null |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": "flowAnimation", |
|
|
|
"name": "{i18n:scada.symbol.flow-animation}", |
|
|
|
"hint": "{i18n:scada.symbol.flow-animation-hint}", |
|
|
|
"id": "arrowDirection", |
|
|
|
"name": "{i18n:scada.symbol.arrow-direction}", |
|
|
|
"hint": "{i18n:scada.symbol.arrow-direction-hint}", |
|
|
|
"group": null, |
|
|
|
"type": "value", |
|
|
|
"valueType": "BOOLEAN", |
|
|
|
"trueLabel": "{i18n:scada.symbol.present}", |
|
|
|
"falseLabel": "{i18n:scada.symbol.absent}", |
|
|
|
"stateLabel": "{i18n:scada.symbol.flow-present}", |
|
|
|
"trueLabel": "{i18n:scada.symbol.forward}", |
|
|
|
"falseLabel": "{i18n:scada.symbol.reverse}", |
|
|
|
"stateLabel": "{i18n:scada.symbol.forward}", |
|
|
|
"defaultGetValueSettings": { |
|
|
|
"action": "DO_NOTHING", |
|
|
|
"defaultValue": false, |
|
|
|
"defaultValue": true, |
|
|
|
"executeRpc": { |
|
|
|
"method": "getState", |
|
|
|
"requestTimeout": 5000, |
|
|
|
@ -107,20 +111,16 @@ |
|
|
|
"persistentPollingInterval": 1000 |
|
|
|
}, |
|
|
|
"getAttribute": { |
|
|
|
"key": "state", |
|
|
|
"scope": null |
|
|
|
"scope": null, |
|
|
|
"key": "state" |
|
|
|
}, |
|
|
|
"getTimeSeries": { |
|
|
|
"key": "state" |
|
|
|
}, |
|
|
|
"getAlarmStatus": { |
|
|
|
"severityList": null, |
|
|
|
"typeList": null |
|
|
|
}, |
|
|
|
"dataToValue": { |
|
|
|
"type": "NONE", |
|
|
|
"compareToValue": true, |
|
|
|
"dataToValueFunction": "/* Should return boolean value */\nreturn data;" |
|
|
|
"dataToValueFunction": "/* Should return boolean value */\nreturn data;", |
|
|
|
"compareToValue": true |
|
|
|
} |
|
|
|
}, |
|
|
|
"defaultSetValueSettings": null, |
|
|
|
@ -167,48 +167,22 @@ |
|
|
|
], |
|
|
|
"properties": [ |
|
|
|
{ |
|
|
|
"id": "mainLine", |
|
|
|
"name": "{i18n:scada.symbol.main-line}", |
|
|
|
"type": "switch", |
|
|
|
"default": true, |
|
|
|
"disabled": false, |
|
|
|
"visible": true |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": "mainLineSize", |
|
|
|
"name": "{i18n:scada.symbol.main-line}", |
|
|
|
"id": "lineSize", |
|
|
|
"name": "{i18n:scada.symbol.line}", |
|
|
|
"type": "number", |
|
|
|
"default": 6, |
|
|
|
"required": true, |
|
|
|
"subLabel": "Main", |
|
|
|
"divider": true, |
|
|
|
"divider": false, |
|
|
|
"fieldSuffix": "px", |
|
|
|
"condition": "return model.mainLine;", |
|
|
|
"min": 0, |
|
|
|
"max": 99, |
|
|
|
"step": 1, |
|
|
|
"disabled": false, |
|
|
|
"visible": true |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": "secondaryLineSize", |
|
|
|
"name": "{i18n:scada.symbol.main-line}", |
|
|
|
"type": "number", |
|
|
|
"default": 2, |
|
|
|
"required": true, |
|
|
|
"subLabel": "Secondary", |
|
|
|
"divider": true, |
|
|
|
"fieldSuffix": "px", |
|
|
|
"condition": "return !model.mainLine;", |
|
|
|
"min": 0, |
|
|
|
"max": 99, |
|
|
|
"step": 1, |
|
|
|
"disabled": false, |
|
|
|
"visible": false |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": "lineColor", |
|
|
|
"name": "{i18n:scada.symbol.main-line}", |
|
|
|
"name": "{i18n:scada.symbol.line}", |
|
|
|
"type": "color", |
|
|
|
"default": "#1A1A1A", |
|
|
|
"disabled": false, |
|
|
|
@ -216,11 +190,10 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": "flowAnimationWidth", |
|
|
|
"name": "{i18n:scada.symbol.flow}", |
|
|
|
"group": "{i18n:scada.symbol.animation}", |
|
|
|
"name": "{i18n:scada.symbol.flow-line}", |
|
|
|
"group": "{i18n:scada.symbol.flow}", |
|
|
|
"type": "number", |
|
|
|
"default": 4, |
|
|
|
"subLabel": "Width", |
|
|
|
"fieldSuffix": "px", |
|
|
|
"min": 1, |
|
|
|
"step": 1, |
|
|
|
@ -229,8 +202,8 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": "flowAnimationColor", |
|
|
|
"name": "{i18n:scada.symbol.flow}", |
|
|
|
"group": "{i18n:scada.symbol.animation}", |
|
|
|
"name": "{i18n:scada.symbol.flow-line}", |
|
|
|
"group": "{i18n:scada.symbol.flow}", |
|
|
|
"type": "color", |
|
|
|
"default": "#C8DFF7", |
|
|
|
"disabled": false, |
|
|
|
@ -238,14 +211,14 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": "flowStyleDash", |
|
|
|
"name": "{i18n:scada.symbol.flow-style}", |
|
|
|
"name": "{i18n:scada.symbol.flow-line-style}", |
|
|
|
"hint": "{i18n:scada.symbol.flow-style-hint}", |
|
|
|
"group": "{i18n:scada.symbol.animation}", |
|
|
|
"group": "{i18n:scada.symbol.flow}", |
|
|
|
"type": "number", |
|
|
|
"default": 10, |
|
|
|
"required": true, |
|
|
|
"subLabel": "{i18n:scada.symbol.dash}", |
|
|
|
"divider": true, |
|
|
|
"divider": false, |
|
|
|
"fieldSuffix": "px", |
|
|
|
"min": 0, |
|
|
|
"step": 1, |
|
|
|
@ -254,14 +227,14 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": "flowStyleGap", |
|
|
|
"name": "{i18n:scada.symbol.flow-style}", |
|
|
|
"name": "{i18n:scada.symbol.flow-line-style}", |
|
|
|
"hint": "{i18n:scada.symbol.flow-style-hint}", |
|
|
|
"group": "{i18n:scada.symbol.animation}", |
|
|
|
"group": "{i18n:scada.symbol.flow}", |
|
|
|
"type": "number", |
|
|
|
"default": 10, |
|
|
|
"subLabel": "{i18n:scada.symbol.gap}", |
|
|
|
"fieldSuffix": "px", |
|
|
|
"min": 1, |
|
|
|
"min": 0, |
|
|
|
"step": 1, |
|
|
|
"disabled": false, |
|
|
|
"visible": true |
|
|
|
@ -269,7 +242,7 @@ |
|
|
|
{ |
|
|
|
"id": "flowDashCap", |
|
|
|
"name": "{i18n:scada.symbol.flow-dash-cap}", |
|
|
|
"group": "{i18n:scada.symbol.animation}", |
|
|
|
"group": "{i18n:scada.symbol.flow}", |
|
|
|
"type": "select", |
|
|
|
"default": "butt", |
|
|
|
"items": [ |
|
|
|
|