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

Disable ConvertCurvesToArcs to avoid degenerate edge cases #65

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

jzbrooks
Copy link
Owner

A temporary workaround for the edge case is described in #60.
Hopefully this can re-land sometime soon, but it usually isn't the most
significant optimization in play (and it is one of the trickiest!).

The edge case is described in #60.
Hopefully this can re-land sometime soon, but it usually isn't the most
significant optimization in play (and it is one of the trickiest!).
@@ -235,7 +236,7 @@ class VectorDrawableCommandPrinter(private val decimalDigits: Int) : CommandPrin
private fun print(point: Point) =
buildString {
append(print(point.x))
append(',')
Copy link
Owner Author

Choose a reason for hiding this comment

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

I want to say there was a reason this was omitted only for vector drawables on first implementation. I vaguely remember there being some issues with framework implementations of vector drawable on android for SDK versions ~21 (avoided with compatibility lib).

I searched around the issue tracker and couldn't find evidence of this.

This prevents some vectors from being represented more verbosely than inputs, and it probably isn't an issue now in practice.

@jzbrooks jzbrooks merged commit e267680 into master Aug 12, 2024
2 checks passed
@jzbrooks jzbrooks deleted the disable-curve-to-arc branch August 12, 2024 02:08
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.

1 participant