SVG Files with No Stop and Xlink:href don't work
leogdion opened this issue · 5 comments
leogdion commented
Sample SVG File Attached
apple.svg.zip
leogdion commented
I posted a start to a fix here:
https://github.com/brightdigit/SwiftDraw/tree/feature/fix-references
swhitty commented
Thanks for reporting the issue @leogdion. I have pushed a localised fix that addresses just the LinearGradient case. I suppose I need to look at a more generalised solution as any element could possibly reference another def.
swhitty commented
Latest release
https://github.com/swhitty/SwiftDraw/releases/tag/0.7.2
leogdion commented
Yeah the result doesn't seem to be have the gradient there. I'm wondering if it has to do with gradientUnits="userSpaceOnUse"
which would throw off the gradient coordinates.