When I convert an SVG to a Raphael JS object, the paths don't show up

Avemaempams

New Member
I found this SVG file online that I want to use with Raphael, so i went about taking the \[code\]d\[/code\] attributes of the path and putting them into a JS object. In the code I loop through the JS object and create Raphael paths. When I open the file in the browser, nothing shows up and I can't figure out why.I think that it is related to the SVG file. In the SVG file that I downloaded, each of the groups (the \[code\]g\[/code\] tags) have a \[code\]transform\[/code\] attribute. If I remove that attribute from the \[code\]g\[/code\] tag and open the SVG file in a browser, that group is doesn't show up. So it seems like when I just copy the paths over something is lost. I'm not sure how to get these paths to show up with raphael, any suggestions?Resources:
 
Back
Top