pents90 / svg-android

Support for scalable vector graphics in Android
773 stars 367 forks source link

Problems with global transform #15

Open asyschikov opened 9 years ago

asyschikov commented 9 years ago

I have this SVG generated by Inkspace, it is stupid because coordinates are outside of the canvas, but they are put back to the viewpoint by this global transform. In renders ok everywhere, but unfortunately not by svg-android. Please could you take a look?

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   height="200"
   width="200"
   version="1.1"
   id="svg2">
  <g
     transform="translate(-144.90142,-226.78166)"
     style="display:inline"
     id="layer1">
    <rect
       y="228.26631"
       x="146.38608"
       height="197.03069"
       width="197.03069"
       id="rect5916"
       style="stroke:#000000;stroke-width:2;" />
  </g>
</svg>
asyschikov commented 9 years ago

I think I figured the problem - transform attribute is not parsed for g element.