svg-android icon indicating copy to clipboard operation
svg-android copied to clipboard

Problems with global transform

Open asyschikov opened this issue 9 years ago • 1 comments

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 avatar Mar 17 '15 01:03 asyschikov

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

asyschikov avatar Mar 17 '15 01:03 asyschikov