AndroidIconAnimator
AndroidIconAnimator copied to clipboard
Android vector icon animation tool
The current hit test for stroked paths simply checks to see if the projection from the point to the path is less than or equal to half the stroke width....
For example, if you select a path and try to navigate through the tree of paths using the up/down arrow keys, nothing happens. On an unrelated note, I would guess...
This SVG imports incorrectly in Firefox, Chrome, and Safari. All three browsers have different behavior too... so I would test that it works in all three before closing the bug....
If we want the min viewBox size to be 4, then maybe we should transform the pathData to ensure this precondition is met w/o affecting the scale of the image?...
Example SVG: ``` ``` The SVG should have a width and height of 400 and 380 respectively. However, the artwork is given a width/height of 100 (which is the default)....
For example, when I attempt to import the SVG below I get a crash. Removing the trailing space after the `z` seems to avoid this. ``` ```
And ideally show some sort of error message snackbar or something indicating the problem. Not catching runtime exceptions that occur seems to cause problems.
This SVG causes the app to crash: https://gist.github.com/alexjlockwood/0db6f64f81eb1eb54434636155463615 The error in the JS console is something like 'can't get property stroke from undefined'.
I think before the break statement here: https://github.com/romannurik/AndroidIconAnimator/blob/695b10f0bcc0775369a2d14b0c39994a31ab45f7/app/scripts/SvgPathData.js#L601 You need to keep track of a point variable `lastMovePoint` and add the line: ``` currentPoint = Object.assign({}, lastMovePoint); ``` Otherwise a...