mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Convert tabs to 4 spaces
This commit is contained in:
parent
1efd36c179
commit
24f0535bb6
1 changed files with 31 additions and 31 deletions
|
@ -6,49 +6,49 @@
|
|||
|
||||
var ImportSVG = function()
|
||||
{
|
||||
//initialize
|
||||
function initialize()
|
||||
{
|
||||
//initialize
|
||||
function initialize()
|
||||
{
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* Takes the svg dom obj and parses the data
|
||||
* to create a layer with groups (if needed) with
|
||||
* items inside. Should support nested groups.
|
||||
*
|
||||
* takes in a svg object (xml dom)
|
||||
* returns Paper.js Layer
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* Takes the svg dom obj and parses the data
|
||||
* to create a layer with groups (if needed) with
|
||||
* items inside. Should support nested groups.
|
||||
*
|
||||
* takes in a svg object (xml dom)
|
||||
* returns Paper.js Layer
|
||||
*/
|
||||
this.importSVG = function(svg)
|
||||
{
|
||||
return layer;
|
||||
return layer;
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a Paper.js Group by parsing
|
||||
* a specific svg g node
|
||||
*
|
||||
* takes in a svg object (xml dom)
|
||||
* returns Paper.js Group
|
||||
*/
|
||||
/**
|
||||
* Creates a Paper.js Group by parsing
|
||||
* a specific svg g node
|
||||
*
|
||||
* takes in a svg object (xml dom)
|
||||
* returns Paper.js Group
|
||||
*/
|
||||
function importGroup(svg)
|
||||
{
|
||||
return group;
|
||||
return group;
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a Paper.js Path by parsing
|
||||
* a specific svg node (rect, path, circle, polygon, etc)
|
||||
* and creating the right path object based on the svg type.
|
||||
*
|
||||
* takes in a svg object (xml dom)
|
||||
* returns Paper.js Group
|
||||
*/
|
||||
/**
|
||||
* Creates a Paper.js Path by parsing
|
||||
* a specific svg node (rect, path, circle, polygon, etc)
|
||||
* and creating the right path object based on the svg type.
|
||||
*
|
||||
* takes in a svg object (xml dom)
|
||||
* returns Paper.js Group
|
||||
*/
|
||||
function importPath(svg)
|
||||
{
|
||||
return path;
|
||||
return path;
|
||||
};
|
||||
|
||||
initialize(); // calls the init function after class is loaded
|
||||
|
|
Loading…
Reference in a new issue