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

draw segments in two strokes #87

Merged
merged 1 commit into from
May 2, 2024

Conversation

rkyle35242
Copy link
Member

@rkyle35242 rkyle35242 commented May 2, 2024

Supporting variable arc sizes has revealed an issue with single-segment arcs when the total arc is 360 degrees. The starting and ending points for the drawn arc are the same, resulting in nothing being drawn. My proposed solution is to draw from the arc's starting point to a mid point then to the end point. This resolves the issue with no additional configuration needed or impact to the current experience.

Before After
May-02-2024 09-59-19 May-02-2024 09-59-32

0,
sweepFlag,
midPoint.x,
midPoint.y,
Copy link
Member Author

Choose a reason for hiding this comment

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

Lines 21-28 are the new entries to the path

@rkyle35242 rkyle35242 merged commit 4f1e772 into development May 2, 2024
3 checks passed
@rkyle35242 rkyle35242 deleted the fix-single-segment-circles-disappearing branch May 2, 2024 18:02
@jkhusanov jkhusanov mentioned this pull request May 13, 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

Successfully merging this pull request may close these issues.

3 participants