Transform any svg file into a simplified version by removing all the transformation matrices.
A demo interface is provided to test the library.
Transform any svg file into a simplified version by removing all the transformation matrices
License: MIT License
Transform any svg file into a simplified version by removing all the transformation matrices.
A demo interface is provided to test the library.
Interesting tool. I gave the demo a shot with a logo which I have been working on and unfortunately it was 'jumbled' by the app. Also, the linear gradients were not touched, this is what I most want to fix. Of course, I realise the world doesn't revolve around me, but I would be interested in an update should you get round to looking at it.
If you would like a copy of the logo for testing, please let me know.
I don't know if you used SVGO before, but it seems like a lot of code in this library could be made as a plugin to SVGO or use SVGO plugins to do certain operations that are implemented here. Just wanted to bring awareness to those plugins: https://github.com/svg/svgo
Btw, it also works in the browser beautifully.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.