Laurian / raphael-svg-import

Import raw SVG data into Raphael

Home Page:http://github.com/sanojian/raphael-svg-import/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Import raw SVG data into Raphael

http://github.com/sanojian/raphael-svg-import/


Languages

Language:JavaScript 100.0%