Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribution Version? #2

Open
villanus opened this issue May 8, 2016 · 1 comment
Open

Distribution Version? #2

villanus opened this issue May 8, 2016 · 1 comment

Comments

@villanus
Copy link

villanus commented May 8, 2016

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>
@petercollingridge
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants