--- a/svghmi/svghmi.js Wed Jan 19 08:56:16 2022 +0100
+++ b/svghmi/svghmi.js Wed Jan 19 11:41:04 2022 +0100
@@ -26,6 +26,8 @@
+ if(widget.forced_frequency !== undefined) + widget.frequency = widget.forced_frequency; --- a/svghmi/widget_button.ysl2 Wed Jan 19 08:56:16 2022 +0100
+++ b/svghmi/widget_button.ysl2 Wed Jan 19 11:41:04 2022 +0100
@@ -163,7 +163,6 @@
function "generated_button_class" {
@@ -202,6 +201,7 @@
const "fsm","exsl:node-set($_button_fsm)";
call "generated_button_class" with "fsm", "$fsm";
@@ -211,6 +211,7 @@
widget_class("PushButton"){
const "fsm","exsl:node-set($_push_button_fsm)";
call "generated_button_class" with "fsm", "$fsm";
--- a/svghmi/widgets_common.ysl2 Wed Jan 19 08:56:16 2022 +0100
+++ b/svghmi/widgets_common.ysl2 Wed Jan 19 11:41:04 2022 +0100
@@ -174,7 +174,6 @@
constructor(elt_id, freq, args, indexes, minmaxes, members){
this.element_id = elt_id;
this.element = id(elt_id);
- if(freq !== undefined) this.frequency = freq;
this.minmaxes = minmaxes;
@@ -183,6 +182,7 @@
this.inhibit = indexes.map(() => undefined);
this.pending = indexes.map(() => undefined);
this.bound_unhinibit = this.unhinibit.bind(this);
+ this.forced_frequency = freq; --- a/tests/svghmi/svghmi_0@svghmi/svghmi.svg Wed Jan 19 08:56:16 2022 +0100
+++ b/tests/svghmi/svghmi_0@svghmi/svghmi.svg Wed Jan 19 11:41:04 2022 +0100
@@ -128,11 +128,11 @@
inkscape:current-layer="hmi0"
- inkscape:zoom="0.40092402"
- inkscape:cx="-239.69441"
- inkscape:cy="-2504.0401"
- inkscape:window-width="3840"
- inkscape:window-height="2096"
+ inkscape:zoom="0.20046201" + inkscape:cx="1401.1703" + inkscape:cy="-1495.7332" + inkscape:window-width="1600" + inkscape:window-height="836" inkscape:window-maximized="1"
@@ -7612,7 +7612,7 @@
transform="matrix(0.57180538,0,0,0.57180538,1234.9549,1536.0365)"
- inkscape:label="HMI:PushButton@/SELECTION"
+ inkscape:label="HMI:PushButton|50@/SELECTION" style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#e6e6e6;fill-opacity:1;fill-rule:nonzero;stroke:#ff6600;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"