views:

66

answers:

1

Hi,

is it possible to use Raphael to manipulate an embedded svg? I used Raphael in the past to draw shapes, but haven't actually seen it being used to manipulate an existing svg image. If not, is there anything else that allows me to easily change colours, add events, etc to polygons of an embedded svg?

Cheers, Max

A: 

Funny, yesterday I found the glitchsvgicons page doing that.
Although in a very primitive way, just using a regex replace of parts.
It can be hint, though: apparently you can use good old search/replace of text parts on SVG icons. But it is more prone to issues than using a real Dom tree...

PhiLho
Judging from the lack of replies, I think there isn't any possibility to use Raphael to do this. I think I stick with jquery to manipulate the DOM tree.
Max