-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: Arc canvas #5883
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
base: develop
Are you sure you want to change the base?
feat: Arc canvas #5883
Conversation
Thank you for sharing failed data. I was able to fix macos unit tests. |
Thanks for this. Just one thing remains:
is this fixed, or should it land without CornerRadius initially? |
It's not fixed. I can't figure out how to implement it properly. |
I'm not entirely sure whether any platform actually uses the software painter in "production", but nonetheless as Andy mentioned, we can land it without CornerRadius at all and implement it in a follow-up for all painters. Regardless of if the software painter is only used in tests, I don't think we want to introduce a known difference between the painters. You can probably even leave the corner radius handling code in the GL painters, and just always set the uniform to 0 for now, and remove the public CornerRadius property from the Arc struct. |
The new "noos"/tinygo/tamago addition will be using it in prod. |
Thanks for update. I implemented rounded corners in software painter. Please check from your end whether the new canvas works fine and let me know if something should be fixed/changed. |
It looks like this has merge conflicts, probably with #5884. They shouldn't be too hard to resolve though, that linked PR introduced a helper function for passing uniforms to GL where it avoids the GL call if the uniform is being set to the same value. |
Conflicts resolved. Now I see some check failing |
The only thing that stands out in the report is that markup_renderer does not have tests for the new arc. |
Oh ok. Right it is tested but in |
The code I used to create the simple Doughnut and Pie Charts (may help during testing)
|
I'd say that is usage, not test - and the coveralls report is showing the same. See |
Description:
As per #856 issue
This PR adds a new
canvas.Arc
object to Fyne, enabling the drawing of filled arcs and annular sectors (ring segments) with optional stroke and rounded corners. The Arc object supports:Use cases:
Examples:

Checklist:
Where applicable:
Known limitations:
macOS test failures (to be investigated)Donecorner radius not implemented yet in software painterDone