From dfc1b966cb7dfbd2b849a270c3487d31fd6bd835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 26 Nov 2013 17:33:03 +0100 Subject: [PATCH] Simplify SVG node example. --- examples/Node.js/SVGExport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Node.js/SVGExport.js b/examples/Node.js/SVGExport.js index 2a7fbb79..48cb9e57 100644 --- a/examples/Node.js/SVGExport.js +++ b/examples/Node.js/SVGExport.js @@ -39,7 +39,7 @@ with (paper) { rect.rotate(45).scale(0.7); - var svg = new XMLSerializer().serializeToString(project.exportSVG()); + var svg = project.exportSVG({ asString: true }); console.log(svg); fs.writeFile(path.resolve(__dirname, 'out.svg'),svg, function (err) {