beremiz

SVGHMI: Add an exslt function to collect used widget types, in order to only include necessary JS definitions in furure changes.
// widget_button.ysl2
template "widget[@type='Button']", mode="widget_defs" {
param "hmi_element";
| frequency: 5,
| init: function() {
| this.element.addEventListener(
| "mousedown",
| evt => {
| change_hmi_value(this.indexes[0], "=1");
| });
| this.element.addEventListener(
| "mouseup",
| evt => {
| change_hmi_value(this.indexes[0], "=0");
| });
| },
}