-
Notifications
You must be signed in to change notification settings - Fork 146
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
bug in transform handling #111
Comments
Yuuuuup, hit this one myself yesterday, and arrived at the same conclusion as you. Just wanted to chime in and give you that vote of confidence. (If only I had seen your ticket earlier! Hahah.) |
Yeah, I can also confirm mathwise that for each of the scale_x or scale_y parameters you have negative, you must negate the sweep. So if they are both flipped you negate twice and get positive sweep. |
Yup, that's exactly what the linked PR does: flip the sweep if either but not both are negative. |
I'm playing around with the new Document and group/transform feature that @mxgrey added, and I love it -- it's a huge usability improvement.
But I think I've found a bug.
Here's my input SVG:
![bones](https://user-images.githubusercontent.com/400548/82010676-fff38480-962f-11ea-80c9-4eba1f5dc84d.png)
bones.svg.txt
The 5 paths in that SVG are in a group that uses this transform:
Loading that SVG via
svg2paths2()
andDocument
reveals the problem:The arcs turned inside out! This is what the flattened paths look like:
![disvg_output svg](https://user-images.githubusercontent.com/400548/82011207-7e045b00-9631-11ea-8c74-0c8b381094b2.png)
disvg_output.svg.txt
I haven't debugged it, but I'm going to guess that the negative Y scale may be implicated here.
The text was updated successfully, but these errors were encountered: