SVG-optimiser.js
SVG-optimiser.js copied to clipboard
Support Arbitrary Transforms
Rather than only applying scale and translate transforms one at a time using special-case code, it seems like it would be better to just build the affine transform matrix and apply that. It's probably a little tricky in some cases (e.g. having to translate V and Hs to Ls), but it should be reasonably straightforward, and would work for all cases.