Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

AliasIO/Raphael.Export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Export Raphaël paper objects to SVG.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published