I was having problems with individual elements with imported SVG and was hoping for some advice.
I have an SVG created in Illustrator, with several layers that are ultimately elements of a group. When I retrieve SVG from my server, I get something similar.
<svg>
<g>
<g>
</svg>
I do not want to place the image as one, so I break it into groups and surround them with my own svg tag, and then place it on the page.
<svg>
<g>
</svg>
<svg>
<g>
</svg>
It's great, it works the way I want.
My problem is that the paths of each of these elements are drawn in the source file. They are all drawn (0,0) from the Illustrator file, so when I try to place them, they all have a ton of white space on the left where other elements previously existed.
transform = "translate (-50, -50)" - , , x, y , , .
- ? SVG ?
firebug chrome , - , Illustrator.
contentDocument, documentElement, null. , ?
ActionScript Javascript jQuery, x, y , , :/