diff -r fdc12f7d27c8 -r 700b39cb4525 svghmi/analyse_widget.xslt --- a/svghmi/analyse_widget.xslt Sun Jan 16 17:00:58 2022 +0100 +++ b/svghmi/analyse_widget.xslt Wed Feb 02 20:27:17 2022 +0100 @@ -18,14 +18,26 @@ - + + + + + + + + + + + + + - + @@ -37,6 +49,11 @@ + + + + + @@ -204,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)); + + } + +