Add class our group (g tag) to SVG2RaphaelJS objects

jouinia

New Member
I've used "SVG2RaphaelJS" to generate my SVG object, which give me something like:\[code\]var mySVG=["holder",1632,1320,{"type":"path","stroke":"none","path":"M521.65,1214.5 539.35,1200.15 557.9,1214.5 \n\t\t550.05,1214.5 550.05,1243.101 528.95,1243.101 528.95,1214.5 521.65,1214.5 528.95,1214.5 528.95,1243.101 550.05,1243.101 \n\t\t550.05,1214.5 557.9,1214.5 539.35,1200.15 \tz","fill":"#EDEDED"},{"width":1043.25,"stroke":"none","y":1184.25,"fill":"#EDEDED","x":435.6,"type":"rect","height":80.95},\[/code\]In HTML, i call:\[code\]window.onload = function () { var r = Raphael(mySVG);};\[/code\]It's ok but I can't specify a class name or ID or event a group to my paths, so I can stylish with CSS. What can I do?I started coding by this demo: http://toki-woki.net/p/SVG2RaphaelJS/demo/
 
Back
Top