GRADKIENT_POLYLINE issues #22
Replies: 4 comments 2 replies
-
Just figured out that issues 2 and 3, most possibly are the same issue. Because of the issue 3 (all line styles become the same for 1 widget), so the line has the same positions |
Beta Was this translation helpful? Give feedback.
-
Thank you for your support of the Developer Forum. I will test the mentioned code cases and confirm with relevant colleagues, please be patient for a while. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your feedback, this is a bug that needs to be fixed by the firmware! Your suggestions are very good and we will take them on board, please be patient and wait for our fix! |
Beta Was this translation helpful? Give feedback.
-
Hey everyone,(@cuiyedong @MyoungXUE @Xuemuyang) thank you for the solution, is there at least a rough estimate, when this fix get pushed to the devices? |
Beta Was this translation helpful? Give feedback.
-
Hi! For my project, i need to display a custom graphs. I found a very suitable widget GRADKIENT_POLYLINE to draw a graph. But as is can see this widget has a lot of bugs so it is almost impossible to use it (at least on API v1). The test was made on GTR 3 Pro v1.0.2 simulator
and on the real Amazfit GTR 3 Pro v 8.43.5.1
I made a repository with a test that can show the issue.
The widget output buffer is stripped:
This issue even noticeable on GRADKIENT_POLYLINE
API example https://docs.zepp.com/docs/reference/device-app-api/newAPI/ui/widget/GRADIENT_POLYLINE/ .
Link to code example https://github.com/bigdigital/GRADKIENT_POLYLINE/blob/master/page/gtr3-pro/home/index.page.js
If creating two widgets with the same coordinates and size, the second widget will clear the output from the first
Link to code example https://github.com/bigdigital/GRADKIENT_POLYLINE/blob/Issue2_graph_overlapp/page/gtr3-pro/home/index.page.js
If create two widgets, the second widget will replace all properties for the first (color, lineData, etc)
Link to code example https://github.com/bigdigital/GRADKIENT_POLYLINE/blob/issue3_widget_properties_repalacing/page/gtr3-pro/home/index.page.js
Although the addPoint function is not documented, it somehow works. But for me it is expected it should put only dots to the canvas, but instead, it outputs a dots connected with lines
Link to code example https://github.com/bigdigital/GRADKIENT_POLYLINE/blob/issue4_dot_display/page/gtr3-pro/home/index.page.js
Beta Was this translation helpful? Give feedback.
All reactions