Re: [FlexJS] Performance comparison of SVG rendering techniques

2014-03-01 Thread Alex Harui
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

Re: [FlexJS] Performance comparison of SVG rendering techniques

2014-03-01 Thread OmPrakash Muppirala
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

[FlexJS] Performance comparison of SVG rendering techniques

2014-03-01 Thread OmPrakash Muppirala
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