Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Import raw SVG data into Raphael

branch: master

This branch is 0 commits ahead and 0 commits behind master

update README minor typeo

latest commit cc4d493d7c
Todd Fisher authored June 24, 2010
Octocat-spinner-32 assets alpha 0.0.1 December 01, 2009
Octocat-spinner-32 lib - release 0.0.1 December 01, 2009
Octocat-spinner-32 src alpha 0.0.1 December 01, 2009
Octocat-spinner-32 README.markdown update README minor typeo June 24, 2010
Octocat-spinner-32 demo.html alpha 0.0.1 December 01, 2009
Octocat-spinner-32 raphael-svg-import.js add a callback for each node June 24, 2010
README.markdown

Raphaël SVG import plugin - 0.0.1

What is it?

An extension to the Raphaël Vector Library.
It enables Raphaël to import raw SVG data.

Usage

var paper = Raphael(10, 10, 800, 500);
paper.importSVG('<svg><rect x="53.603" y="93.813" fill="#FF00FF" width="106.211" height="106.211"/></svg>')

You can export a svg file from Inkscape or Illustrator, open it with a plain text editor and dump it in there.
The plugin will filter out the necessary.

In the assets folder a demo.svg file is provided.
Nothing fancy but it gives you a starting point.

Dependencies

Important

  • This plugin is still under development

To-do

  • SVG group to Raphaël set conversion
  • line recognition
  • text recognition
  • image recognition
  • writing tests (yes I've been lazy :-)
Something went wrong with that request. Please try again.