openHASP icon indicating copy to clipboard operation
openHASP copied to clipboard

Weird arc behaviour

Open Elix-g opened this issue 1 year ago • 0 comments

Perform all steps below and tick them with [x]

  • [X] Check the related part of the Documentation
  • [X] Update openHASP to the latest version
  • [X] Reproduce the issue and describe all steps

Describe the bug

I'm currently playing around with arc and its style properties. There are properties to define start and end angle of the arc background and the arc indicator. Setting them to identical values or omitting start_angle10 and end_angle10 results in some nice arc as expected. Setting different values, to make the indicator smaller than the background, does not work as expected. Hardware is WirelessTag WT32 SC01 Plus running openHASP 0.7.0-rc10, 180 degree display rotation

To Reproduce

following values lead to identical arcs:

{"id":51, "obj":"arc", "x":10, "y":140, "h":150, "w":150, "max":70,  "start_angle":90, "end_angle":315, "bg_color":"black", "border_side":0, "click":0, "value_font":48, "value_ofs_x":50, "value_ofs_y":5}
{"id":51, "obj":"arc", "x":10, "y":140, "h":150, "w":150, "max":70,  "start_angle":135, "end_angle":315, "start_angle10":90, "end_angle10":315, "bg_color":"black", "border_side":0, "click":0, "value_font":48, "value_ofs_x":50, "value_ofs_y":5}

image

Expected behavior

When setting the indicator to smaller values than the background, arc background should be shown. Instead, the indicator still starting at the same angle like without its parameters.

Screenshots or video

Please see above and ignore the additional line in the screenshots

Elix-g avatar Feb 11 '24 15:02 Elix-g