DmitryBaranovskiy / rappar

Small SVG to Raphaël parser
82 stars 25 forks source link

not getting gradients #5

Open mspanish opened 10 years ago

mspanish commented 10 years ago

When I run this against an Illustrator SVG 1.1, none of the gradients show up in the path objects. When I output individual tags through eve (like this)

eve.on("elemental.tag.radialGradient", factory("radialGradient"));
eve.on("elemental.tag.stop", factory("stop"));

I can output them to file and I see they are there, but I can't see a way to join the gradients and stops to the correct path, where they are originally nested, or to join the stops to the correct gradients. I realize the above method is not correct but it is the only way I get this data at all.

Any ideas would be super appreciated, thanks for this great library, it has saved me many hours of manual work.