Change the import* functions to private

This commit is contained in:
Justin Ridgewell 2012-09-16 01:02:00 -04:00
parent 9218664a67
commit 2952e01fc5

View file

@ -57,13 +57,13 @@ var ImportSVG = this.ImportSVG = Base.extend({
{ {
switch (svg.nodeName.toLowerCase()) { switch (svg.nodeName.toLowerCase()) {
case 'line': case 'line':
item = this.importLine(svg); item = this._importLine(svg);
break; break;
case 'rect': case 'rect':
item = this.importRectangle(svg); item = this._importRectangle(svg);
break; break;
case 'ellipse': case 'ellipse':
item = this.importOval(svg); item = this._importOval(svg);
break; break;
case 'g': case 'g':
item = this.importGroup(svg); item = this.importGroup(svg);
@ -81,7 +81,7 @@ var ImportSVG = this.ImportSVG = Base.extend({
* takes a svg circle node (xml dom) * takes a svg circle node (xml dom)
* returns Paper.js Path.Circle item * returns Paper.js Path.Circle item
*/ */
importCircle: function(svgCircle) _importCircle: function(svgCircle)
{ {
var cx = svgCircle.cx.baseVal.value || 0; var cx = svgCircle.cx.baseVal.value || 0;
var cy = svgCircle.cy.baseVal.value || 0; var cy = svgCircle.cy.baseVal.value || 0;
@ -98,7 +98,7 @@ var ImportSVG = this.ImportSVG = Base.extend({
* takes a svg ellipse node (xml dom) * takes a svg ellipse node (xml dom)
* returns Paper.js Path.Oval item * returns Paper.js Path.Oval item
*/ */
importOval: function(svgOval) _importOval: function(svgOval)
{ {
var cx = svgOval.cx.baseVal.value || 0; var cx = svgOval.cx.baseVal.value || 0;
var cy = svgOval.cy.baseVal.value || 0; var cy = svgOval.cy.baseVal.value || 0;
@ -124,7 +124,7 @@ var ImportSVG = this.ImportSVG = Base.extend({
* - Path.Rectangle item * - Path.Rectangle item
* - Path.RoundRectangle item (if the rectangle has rounded corners) * - Path.RoundRectangle item (if the rectangle has rounded corners)
*/ */
importRectangle: function(svgRectangle) _importRectangle: function(svgRectangle)
{ {
var x = svgRectangle.x.baseVal.value || 0; var x = svgRectangle.x.baseVal.value || 0;
var y = svgRectangle.y.baseVal.value || 0; var y = svgRectangle.y.baseVal.value || 0;
@ -153,7 +153,7 @@ var ImportSVG = this.ImportSVG = Base.extend({
* takes a svg line node (xml dom) * takes a svg line node (xml dom)
* returns a Path.Line item * returns a Path.Line item
*/ */
importLine: function(svgLine) _importLine: function(svgLine)
{ {
var x1 = svgLine.x1.baseVal.value || 0; var x1 = svgLine.x1.baseVal.value || 0;
var y1 = svgLine.y1.baseVal.value || 0; var y1 = svgLine.y1.baseVal.value || 0;