Raphael.Export
Raphael.Export copied to clipboard
Pull Request #39 removes the radius from circles
Using the code from the commit prior to #39 the radius appears in the svg output, but does not appear in the svg output using the code from pull request #39.
My Test Code:
var R = Raphael(50, 50, 400, 400);
var circle = R.circle(100, 100, 50).attr('fill', '#f00');
var svg = R.toSVG();
console.log(svg);
SVG output before #39:
<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" version="1.1" height="400"><circle transform="matrix(1,0,0,1,0,0)" cx="100" cy="100" r="50" fill="#f00" stroke="#000"></circle></svg>
SVG output after #39:
<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" version="1.1" height="400"><circle transform="matrix(1,0,0,1,0,0)" cx="100" cy="100" fill="#f00" stroke="#000"></circle></svg>