Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Export Raphaël paper objects to SVG.
JavaScript CSS
branch: master
Failed to load latest commit information.
tests added support for text-anchor, modified test
.gitignore Ignored OS X's .DS_Store crap
README.md Updated README
raphael.export.js IE8 BUGFIX

README.md

Raphael.Export

Export Raphaël paper objects to SVG. Also works in browsers that don\'t support SVG (e.g. IE6, IE7, IE8).

Example

<script type="text/javascript" src="raphael-min.js"></script>
<script type="text/javascript" src="raphael.export.js"></script>

<div id="foo"></div>
<div id="bar"></div>

<script type="text/javascript">
    var paper = Raphael('foo');

    var rect = paper
        .rect(50, 40, 50, 50)
        .attr('fill', '#f00')
        .transform('S2')
        .rotate(10)
        ;

    var svg = paper.toSVG();

    document.getElementById('bar').innerHTML = svg;
</script>
Something went wrong with that request. Please try again.