From 8cf70ca6e1f73e6fe43c64487aa91efe9edb8d44 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Sun, 16 Sep 2012 00:09:39 -0400 Subject: [PATCH] Rename the create* functions to import* Keeps in line with the naming of the other functions --- src/svg/ImportSVG.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/svg/ImportSVG.js b/src/svg/ImportSVG.js index 4793faae..2e2b74e0 100644 --- a/src/svg/ImportSVG.js +++ b/src/svg/ImportSVG.js @@ -55,7 +55,7 @@ var ImportSVG = this.ImportSVG = Base.extend({ * takes a svg circle node (xml dom) * returns Paper.js Path.Circle item */ - createCircle: function(svgCircle) + importCircle: function(svgCircle) { var cx = svgCircle.cx.baseVal.value || 0; var cy = svgCircle.cy.baseVal.value || 0; @@ -72,7 +72,7 @@ var ImportSVG = this.ImportSVG = Base.extend({ * takes a svg ellipse node (xml dom) * returns Paper.js Path.Oval item */ - createOval: function(svgOval) + importOval: function(svgOval) { var cx = svgOval.cx.baseVal.value || 0; var cy = svgOval.cy.baseVal.value || 0; @@ -98,7 +98,7 @@ var ImportSVG = this.ImportSVG = Base.extend({ * - Path.Rectangle item * - Path.RoundRectangle item (if the rectangle has rounded corners) */ - createRectangle: function(svgRectangle) + importRectangle: function(svgRectangle) { var x = svgRectangle.x.baseVal.value || 0; var y = svgRectangle.y.baseVal.value || 0; @@ -127,7 +127,7 @@ var ImportSVG = this.ImportSVG = Base.extend({ * takes a svg line node (xml dom) * returns a Path.Line item */ - createLine: function(svgLine) + importLine: function(svgLine) { var x1 = svgLine.x1.baseVal.value || 0; var y1 = svgLine.y1.baseVal.value || 0;