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

Swap Raphael with Snap.svg.js ? #14

Open
ian-workcircle opened this issue Aug 29, 2016 · 3 comments
Open

Swap Raphael with Snap.svg.js ? #14

ian-workcircle opened this issue Aug 29, 2016 · 3 comments

Comments

@ian-workcircle
Copy link

Just wondering, is there a specific reason for using Raphael as an included svg library (I know its good for backwards compatibility). I was wondering if one of the other libs that allow SVG imports could be better, as you could load in a whole SVG and then animate it for example, whereas I think Raphael has to build things from scratch (Snap.svg.js has the same syntax as it was written by same author).

Not sure if there is any code already included thats dependant on Raphael, so maybe ignore if so!

@premasagar
Copy link
Member

Cough, or Pablo. Non-attached, mind.

@ibrierley
Copy link

Ah why not :), I was actually thinking of Pablo, but couldn't remember if it has SVG import in it or whether there was a reason for Raphael, like some Raphael specific code already in there.

@premasagar
Copy link
Member

premasagar commented Aug 29, 2016

It looks like Raphael was provided for creatures to make use of, but is not part of the system. Some of the jungle creatures do use it - the grass, elephant and stars, but it could be replaced safely here.

Pablo has Pablo.load() to import an SVG into a detached DOM collection and Pablo(element).load() to import and append it to an element.

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

3 participants