equal
deleted
inserted
replaced
1 // widget_circularbar.ysl2 |
1 // widget_circularbar.ysl2 |
2 |
2 |
3 template "widget[@type='CircularBar']", mode="widget_class"{ |
3 widget_class("CircularBar") { |
4 || |
4 || |
5 class CircularBarWidget extends Widget{ |
|
6 frequency = 10; |
5 frequency = 10; |
7 range = undefined; |
6 range = undefined; |
8 |
7 |
9 dispatch(value) { |
8 dispatch(value) { |
10 this.display_val = value; |
9 this.display_val = value; |
47 |
46 |
48 this.range = [min, max, start, end]; |
47 this.range = [min, max, start, end]; |
49 this.center = [cx, cy]; |
48 this.center = [cx, cy]; |
50 this.proportions = [rx, ry]; |
49 this.proportions = [rx, ry]; |
51 } |
50 } |
52 } |
|
53 || |
51 || |
54 } |
52 } |
55 |
53 |
56 template "widget[@type='CircularBar']", mode="widget_defs" { |
54 widget_defs("CircularBar") { |
57 param "hmi_element"; |
55 param "hmi_element"; |
58 labels("path"); |
56 labels("path"); |
59 optional_labels("value min max"); |
57 optional_labels("value min max"); |
60 } |
58 } |