-
Notifications
You must be signed in to change notification settings - Fork 24
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
Highlight Implement #2
Comments
In my opinion, it's better to use the SDL or JavaScript to display a rectangle because it will give more flexibility later. The purpose of
So, in summary, I think manually drawing a rectangle will give a more flexible and predictable result. |
OK, I use JS to the CANVAS. Due to WASM also draw on CANVAS, highlights sometimes can't display normally, I might fix it later. |
It is great to highlight the selected item.
![截图_2019-08-23_09-10-21](https://user-images.githubusercontent.com/51747223/63559783-ea13d000-c585-11e9-9fc0-a4292e824b98.png)
I have finished the swapping data between JS and WASM, JS can get a string(widget attribute) from WASM and parse it into JSON.
We can get the position and size of the widget now, it's time to achieve the highlight, I think there are some ways:
In Browser, since WASM displays on a Canvas
In WASM:
Use SDL to draw.
Simulate the lv_group: I found the widgets in
![深度录屏_选择区域_20190823093351](https://user-images.githubusercontent.com/51747223/63560591-2b59af00-c589-11e9-836b-6b14776dd82e.gif)
lv_group
have the highligh. @kisvegabor @embeddedt How can I simulate it, can you show some details aboutlv_group
Change the selected widget style: border, colour, etc.
The text was updated successfully, but these errors were encountered: