SVG-optimiser.js icon indicating copy to clipboard operation
SVG-optimiser.js copied to clipboard

Distribution Version?

Open villanus opened this issue 9 years ago • 1 comments

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>

villanus avatar May 08 '16 22:05 villanus

You need SVG-elements.js too. When the project is more complete I'll simplify the file structure.

petercollingridge avatar May 11 '16 20:05 petercollingridge