Update examples/ExportSVGTests/Circle Testing.html

This commit is contained in:
jaroles 2012-09-30 22:12:17 -03:00
parent 981f113652
commit e0617b3c21

View file

@ -13,23 +13,22 @@
initializePath(); initializePath();
function initializePath() { function initializePath() {
var topLeft = new Point(-200, -200); var topLeft = new Point(200, 200);
var size = new Size(-150, -100); var size = new Size(150, 100);
var rectangle = new Rectangle(topLeft, size); var rectangle = new Rectangle(topLeft, size);
var path = new Path.Oval(rectangle); var path = new Path.Oval(rectangle);
path.fillColor = 'black'; path.fillColor = 'black';
var topLeft = new Point(-5, -400); var topLeft = new Point(5, 400);
var size = new Size(-100, -50); var size = new Size(100, 50);
var rectangle = new Rectangle(topLeft, size); var rectangle = new Rectangle(topLeft, size);
var path = new Path.Oval(rectangle); var path = new Path.Oval(rectangle);
path.fillColor = 'yellow'; path.fillColor = 'yellow';
var path = new Path.Circle(new Point(-25, -25), -7); var path = new Path.Circle(new Point(50, 50), 25);
path.fillColor = 'red'; path.fillColor = 'red';
var esvg = new ExportSVG(); var esvg = new ExportSVG();
//esvg.exportProject(paper.project);
var output = esvg.exportProject(paper.project); var output = esvg.exportProject(paper.project);
console.log(output); console.log(output);
var test = document.getElementById('svg') var test = document.getElementById('svg')