I got a clean SVG parser on which a SVG file was parsed and it was output in JavaScript, which was used in Raphael JS Library Raffelage.com.) You will see the following notices in the source code:
& lt; Script & gt; JQuery (document) .ready (function () {$ ("# c1"). Each (function () {var c = Raphael (it, 190, 154, 0, 0); var g1 = c.set (); ... It creates variables like g1, g2, etc. But this also uses these variables again. I would like to create unique variables for each group. I have been given the names of my names and I would like to use these names to make variable names.
Where should I look for this change?
I made some adjustments and squeezed one bug. You can download new version.
Now you can call the parser like this:
Code> svgToRaphaelParser :: parse ("f.
To avoid using the same names again, use different canvas and / or group names to separate RSVG files.
As a new feature, if you need access to different sizes, then use it like this:
svgToRaphaelParser :: parse (
g1.push (c.path (...));
With the shape you get it
var s1 = c.path (...); G1.push (s1);
Comments
Post a Comment