SVG-optimiser.js
SVG-optimiser.js copied to clipboard
Distribution Version?
Is there a distribution version? I am running it on a page and get: Uncaught ReferenceError: SVG_Root is not defined
when running on a text area holding svg code: var SVGObject = SVG_Root($('#svgtexarea').val()); SVGObject.optimise();
Using 3 following scripts:
<script type="text/javascript" src="js/SVG-data.js"></script>
<script type="text/javascript" src="js/optimiseSVG.js"></script>
<script type="text/javascript" src="js/optimise-functions.js"></script>
You need SVG-elements.js too. When the project is more complete I'll simplify the file structure.