8000 `transform_angle`, `transform_zoom` failure · Issue #71 · clydebarrow/esphome · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

transform_angle, transform_zoom failure #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nagyrobi opened this issue Feb 14, 2024 · 0 comments
Open

transform_angle, transform_zoom failure #71

nagyrobi opened this issue Feb 14, 2024 · 0 comments

Comments

@nagyrobi
Copy link
nagyrobi commented Feb 14, 2024

Was trying to rotate a label by 180 degrees.

              - label:
                  text: "\U000F1C98"
                  text_font: icons_42
                  transform_angle: 180
                  align: CENTER
                  y: -14

resulted in:

[17:06:18][I][lvgl:000]: [Warn] (2228973.661, +7920)     lv_draw_sw_layer_create: Rendering this widget needs LV_COLOR_SCREEN_TRANSP 1  (in lv_draw_sw_layer.c line #47)
[17:06:18][I][lvgl:000]: [Warn] (2228973.661, +0)        refr_obj: Couldn't create a new layer context  (in lv_refr.c line #912)

According to https://docs.lvgl.io/8.3/overview/style-props.html?highlight=transform_angle#transform-angle The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg. If I try 1800 I get value must be at most 360.0. Do we apply a conversion to float here?

transform_zoom has the same issue, translate_x works, btw.

@nagyrobi nagyrobi changed the title transform_angle failure transform_angle, transform_zoom failure Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0