Open RickAi opened 1 month ago
I just looked into this and there are two separate issues here.
@gpeal
Is there a reason why you don't utilize CornerPathEffect
for rounding corners? I use it here and it works perfectly fine for all examples above.
@gpeal Is there a reason why you don't utilize
CornerPathEffect
for rounding corners? I use it here and it works perfectly fine for all examples above.
I could look into it. In general, lottie-android has limited effect support but it's worth adding support for when possible!
I mean you can add this PathEffect to Paint to implement rounded corners shape, instead of manual curves modification that you do here. Similar to DashPathEffect
that you use for dashed strokes
Lottie is supported and developed on nights and weekends. Issues from Lottie sponsors will be prioritized.
If you don't use this template, your issue will be closed. Delete this text once completed.
Checklist
Describe the bug A clear and concise description of what the bug is. Round corners are not rendered correctly on path shape content.
A very simple example is a path only with 3 vertices: ✅ lottie-web:
❌ lottie-android:
More open path example: ✅ lottie-web:
❌ lottie-android:
A closed path example with 4 vertices:
✅ lottie-web:
❌ lottie-android:
What version of Lottie did you test this on? 6.5.2
What version of Android did you test this on? Android 12.0
Steps To Reproduce Steps to reproduce the behavior: