Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Import raw SVG data into Raphael
JavaScript
branch: master

This branch is 5 commits ahead, 20 commits behind wout:master

update README minor typeo

latest commit cc4d493d7c
Todd Fisher authored
Failed to load latest commit information.
assets alpha 0.0.1
lib - release 0.0.1
src alpha 0.0.1
README.markdown update README minor typeo
demo.html alpha 0.0.1
raphael-svg-import.js add a callback for each node

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.