-
Notifications
You must be signed in to change notification settings - Fork 367
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
Push/pop attributes for SVG element. Add support for x and y attributes. #131
base: master
Are you sure you want to change the base?
Conversation
This is nice ! |
On closer inspection, attribute parsing needs to be element specific is some cases, e.g. x and y for concatenates a translation matrix, but sets the lower point for the rect element Also, transforms attributes need priority for (and possible others), but they are currently parsed in the order they are found. The attached file illustrates this issue. |
…lling nsvg__parseAttr()
f8d80bc fixes rects while still supporting x and y attributes for the svg element |
OK. One moment else. Should we perform parsing "transform" after parsing "x" and "y" in nsvg__parseAttr? |
O, I see you already said this |
Or just don't multiply matrices until parseAttr will finish. |
@SergeySlice my analysis was incorrect. The problem was that for rects the x and y attributes were being consumed twice and concatenating an unnecessary translation. This is now fixed. |
Hi. This fixes the attached SVG.
material_design_icons.svg.zip