views:

357

answers:

2

I'm trying to open simple vector graphics using Raphaël JS and I can't find any converter that would do the whole job.

Is there any way to transfer vector graphics (SVG or anything from Illustrator, Inkscape) into Raphaël's JavaScript?

+1  A: 

Why would you need to convert SVG to Raphael? You can try another JavaScript library - Ample SDK - it renders SVG as it is, also in Internet Explorer. Scripting supported.

Examples: SVG Tiger, SVG Grapes

Sergey Ilinsky
Upvoted even this doesn't really answer my question. Anyway, Ample SDK looks promising, I'll definitely give it a try. Is there any simple 2d game that was built on Ample SDK?
Igor Pavelek
No, there are no games written on it, the framework is primarily used for desktop-like GUI development
Sergey Ilinsky
This convert is needed one time when finish design the vector and want to display inline with HTML. Raphael will handle the cross browser and can manipulate the SVG/VML DOM to do some dynamic modification and animation.
CallMeLaNN
A: 

I also looking for this answer. Based on my few hours :( googling, SVG to Raphael converter never exist except somebody design it here http://bkp.ee/atirip/convert-svg-into-raphael

Seems need to run in php web server. Not sure it can do it or not. I will try later.

CallMeLaNN
I found also this: http://github.com/wout/raphael-svg-import but it's not complete at all and it can convert only basic objects.
Igor Pavelek
Raphael also state they can convert proving by this link http://raphaeljs.com/dragon.html as they discussed in Raphael google group but never told how.
CallMeLaNN