shipt / segmented-arc-for-react-native

Segmented arc component for React Native
MIT License
93 stars 10 forks source link

draw segments in two strokes #87

Closed rkyle35242 closed 5 months ago

rkyle35242 commented 5 months ago

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