Import raw SVG data into Raphael
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 18 commits ahead, 21 commits behind wout:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets No commit message Oct 6, 2010
lib - release 0.0.1 Dec 1, 2009
src alpha 0.0.1 Dec 1, 2009
README.markdown No commit message Oct 7, 2010
demo.html No commit message Oct 6, 2010
raphael-svg-import.js - fixes to matrix transforms Dec 9, 2011

README.markdown

Raphaël SVG import plugin - 0.0.1

What is it?

An extension to the Raphael Vector Library.
It enables Raphael to import SVG files.

Usage

var paper = Raphael(10, 10, 800, 500);
paper.importSVG(svgXML);

You must change SVG file extensions to ".XML" in order to work with IE.

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

  • fix hardcoded radial and linear gradient offsets
  • fix gradient fills within a style