jmtrivial / flatten.js

Transform any svg file into a simplified version by removing all the transformation matrices
MIT License
4 stars 1 forks source link

<image> element result is wrong #3

Open cuixiping opened 2 years ago

cuixiping commented 2 years ago

Example case:

<g transform="scale(2,3)">
    <image  transform="translate(112,113)" --- />
</g>

flatten.js removed the outer transform but not changed the inner transform attribute.