svghmi/widget_circularbar.ysl2
branchsvghmi
changeset 3232 7bdb766c2a4d
parent 3105 8819c8b66a42
child 3241 fe945f1f48b7
--- a/svghmi/widget_circularbar.ysl2	Thu Apr 15 09:15:23 2021 +0200
+++ b/svghmi/widget_circularbar.ysl2	Sun May 02 23:01:08 2021 +0200
@@ -1,8 +1,7 @@
 // widget_circularbar.ysl2
 
-template "widget[@type='CircularBar']", mode="widget_class"{
+widget_class("CircularBar") {
     ||
-    class CircularBarWidget extends Widget{
         frequency = 10;
         range = undefined;
 
@@ -49,11 +48,10 @@
             this.center = [cx, cy];
             this.proportions = [rx, ry];
         }
-    }
     ||
 }
 
-template "widget[@type='CircularBar']", mode="widget_defs" {
+widget_defs("CircularBar") {
     param "hmi_element";
     labels("path");
     optional_labels("value min max");