Skip to content

taf2/raphael-svg-import

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :-)

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%