--- a/svghmi/widget_input.ysl2 Fri Feb 19 10:03:00 2021 +0100
+++ b/svghmi/widget_input.ysl2 Fri Feb 19 10:04:17 2021 +0100
@@ -45,7 +45,14 @@
+ when "count(arg) = 1" { + | this.last_display = vsprintf("«arg[1]/@value»", value); | this.last_display = value;
| this.request_animate();
@@ -60,6 +67,9 @@
| this.edit_elt.onclick = () => edit_value("«path/@value»", "«path/@type»", this, this.last_val);
+ | this.value_elt.style.pointerEvents = "none"; foreach "$hmi_element/*[regexp:test(@inkscape:label,'^[=+\-].+')]" {
--- a/tests/svghmi_real/svghmi_0@svghmi/svghmi.svg Fri Feb 19 10:03:00 2021 +0100
+++ b/tests/svghmi_real/svghmi_0@svghmi/svghmi.svg Fri Feb 19 10:04:17 2021 +0100
@@ -60,11 +60,11 @@
- inkscape:cx="544.00649"
- inkscape:cy="385.16049"
+ inkscape:cx="106.50649" + inkscape:cy="372.66049" inkscape:window-width="1600"
inkscape:window-height="836"
+ inkscape:window-x="1600" inkscape:window-maximized="0"
@@ -380,7 +380,7 @@
sodipodi:insensitive="true" />
- inkscape:label="HMI:Input@/VAR0"
+ inkscape:label="HMI:Input:%.4f@/VAR0" transform="translate(220,-220)">
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:#ff0000;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;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"