nativescript-community / ui-canvas

Implement Canvas into your NativeScript apps.
https://nativescript-community.github.io/ui-canvas/
Apache License 2.0
31 stars 9 forks source link

fix(ui-canvas): iOS Path arcTo() end angle module 360 #64

Closed CatchABus closed 1 month ago

CatchABus commented 1 month ago

This PR ensures Path.arcTo() functionality gets closer to that of Android. By default, android will use module 360 to calculate end angle and draw arcs. This is also mentioned in source comments: https://android.googlesource.com/platform/frameworks/base/+/master/graphics/java/android/graphics/Path.java#483