diff -r 2e84a2782295 -r 0ff608310312 svghmi/analyse_widget.xslt
--- a/svghmi/analyse_widget.xslt Wed Jan 19 08:53:49 2022 +0100
+++ b/svghmi/analyse_widget.xslt Wed Jan 19 08:56:16 2022 +0100
@@ -29,7 +29,7 @@
-
+
@@ -49,8 +49,8 @@
-
-
+
+
@@ -221,6 +221,71 @@
Boolean variable
+
+
+ frequency = 5;
+
+ display = "inactive";
+
+ state = "init";
+
+ dispatch(value) {
+
+
+ }
+
+ onmouseup(evt) {
+
+ svg_root.removeEventListener("pointerup", this.bound_onmouseup, true);
+
+
+
+
+ }
+
+ onmousedown(evt) {
+
+ svg_root.addEventListener("pointerup", this.bound_onmouseup, true);
+
+
+
+
+ }
+
+
+ animate(){
+
+ if (this.active_elt && this.inactive_elt) {
+
+
+ if(this.display == "
+
+ ")
+
+ this.
+
+ _elt.style.display = "";
+
+ else
+
+ this.
+
+ _elt.style.display = "none";
+
+
+ }
+
+ }
+
+ init() {
+
+ this.bound_onmouseup = this.onmouseup.bind(this);
+
+ this.element.addEventListener("pointerdown", this.onmousedown.bind(this));
+
+ }
+
+