fix(scale): fix angle calculation error (#7362)

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
Victor Wheeler
2024-12-01 19:51:10 -07:00
committed by GitHub
parent 6e7ad249fd
commit 8baabf358b
5 changed files with 197 additions and 103 deletions

View File

@@ -55,8 +55,14 @@ be any of these values:
Setting range
-------------
A Scale starts its life with a default range of [0..100]. You can change this
range with :cpp:expr:`lv_scale_set_range(scale, min, max)`.
A Scale starts its life with a default numeric range of [0..100] and a default
angular range of 270. You can change these ranges with:
- :cpp:expr:`lv_scale_set_range(scale, min, max)`, and
- :cpp:expr:`lv_scale_set_angle_range(scale, angle_range)`
where ``min`` and ``max`` will become the numeric low and high values for the Scale,
and ``angle_range`` is the angle between the low and high ends of the Scale.
Tick drawing order