romannurik / AndroidIconAnimator

Android vector icon animation tool
Apache License 2.0
815 stars 52 forks source link

Allow pathData to omit "M0,0" at the beginning of the command string #56

Open alexjlockwood opened 7 years ago

alexjlockwood commented 7 years ago

In Android, the following path command strings are equivalent and legal:

android:pathData="M0,0 L24,24"

and

android:pathData="L24,24"

AndroidIconAnimator currently requires you to begin command strings with "M0,0", which technically shouldn't be necessary.

romannurik commented 7 years ago

hrm, seems like we should always include it... maybe on import if we don't see an M0,0 we automatically add it? it's also likely rare you're actually going to start a path at 0,0 so feels like an edge case