Hi Om,
It may be that there might be better strategies depending on the size and
complexity of the SVG. For a single Rect there isn't very much "linear"
code.
For 5 or 6 objects, you might have:
var markup = "
"
And I think there are child tags in SVG right?
The "linea
There might be another way possible - using a composite SVG consisting of
all states drawn linearly and using it like a sprite sheet. This could be
used in conjunction with CSS. Another advantage would be that we can do
9-slice scaling this way.
Om
On Fri, Feb 28, 2014 at 11:58 PM, OmPrakash M
Alex:
>
The question is: what is the most efficient representation of FXG/SVG on
> the JS side? Should it be SVG markup, or data structures that you can use
> to call the createElementNS/setAttributes in a loop? Or just linear JS
> code making those calls? We stopped using linear AS code for MXM