Skip to content
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

Winforms and Android Canvas fixes #2184

Merged
merged 5 commits into from Nov 2, 2023
Merged

Winforms and Android Canvas fixes #2184

merged 5 commits into from Nov 2, 2023

Conversation

mhsmith
Copy link
Member

@mhsmith mhsmith commented Nov 2, 2023

Both WinForms and Android had issues with elliptical arcs being disconnected from adjacent segments of the same path. This PR fixes both platforms using the same method -- converting the arc to a series of Bezier segments.

Also fixes an issue on WinForms with keyboard shortcuts, which was exposed by examples/canvas.

@mhsmith mhsmith marked this pull request as ready for review November 2, 2023 17:21
@mhsmith
Copy link
Member Author

mhsmith commented Nov 2, 2023

The issue we were talking about with the miter does also happen with the native WinForms arc method, but only when the arc is less than a full circle. When you ask for a full circle, it automatically closes the path, which the HTML spec specifically says not to do. So this fixes that bug as well.

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand it, so it must be art. 😝

@freakboy3742 freakboy3742 merged commit 055e6a3 into main Nov 2, 2023
35 checks passed
@freakboy3742 freakboy3742 deleted the winforms-canvas branch November 2, 2023 23:38
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

Successfully merging this pull request may close these issues.

None yet

2 participants