Static SVG Export change?
Hi all,
I've inherited a piece of work from a guy who left, and I'm banging my head against it, hoping someone can help.
We've got a complicated (static) graphic with many layers and movie clips, which we then export to SVG. Our site then consumes this and the javascript makes various bits interactive and so on.
This has all worked fantastically in the past, most recently about 6 months ago. However now when I go to export the image, it's missing all the movie clip IDs from the svg file, which was how we hooked it all together in the site. So here's a small sample:
Old export:
<g id="sh_2_bronze_0_Layer0_0_FILL">
<path fill="#CB632F" stroke="none" d="
M 58.75 204.55
L 64.75 208.2 64.75 198.35 58.85 194.75 58.75 204.55
M 0.05 158.9
L 0 158.9 0 168.75 46.35 197 46.6 187.3 0.05 158.9 Z"/>
<g id="sh_2_bronze" transform="matrix( 1, 0, 0, 1, 935.55,290.2) ">
<g transform="matrix( 1, 0, 0, 1, 0,0) ">
<use xlink:href="#sh_2_bronze_0_Layer0_0_FILL"/>
</g>
New export:
<g transform="matrix( 1, 0, 0, 1, 935.55,290.2) ">
<g id="Layer_1">
<g transform="matrix( 1, 0, 0, 1, 0,0) ">
<g>
<g>
<path fill="#CB632F" stroke="none" d="
M 58.75 204.55
L 64.75 208.2 64.75 198.35 58.85 194.75 58.75 204.55
M 0.05 158.9
L 0 158.9 0 168.75 46.35 197 46.6 187.3 0.05 158.9 Z"/>
So it looks like the old one split up the transform and the path, then used the actual MC ID (sh_2_bronze in this case) to reference the latter. But in the new export they're merged together and the ID is nowhere to be found.
My question is has something changed to the way the svg's export, or did my now ex-colleague do something mysterious that I have missed that made it export in the old way?
Appreciate any heads up anyone can give.
Cheers,
Si
