seiyable / vue-simple-svg

A simple Vue.js plugin that allows you to load a SVG image as an inline SVG with an access to change its fill colors
MIT License
80 stars 23 forks source link

Inlined-SVG is copied in reverse #24

Open CraigMason opened 4 years ago

CraigMason commented 4 years ago

This line is adding child nodes in reverse. I assume this was done for a reason at the time, as it's more effort to write that loop. Is there a reason for this?

The side effect is, any sibling nodes that would render as stackable are now reversed.

https://github.com/seiyable/vue-simple-svg/blob/master/src/plugin.js#L102

biorev3pp commented 3 years ago

How can we keep it in the same order, as it is showing the groups of svg that was hidden