mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-30 07:39:50 -04: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()
|
var ImportSVG = function()
|
||||||
{
|
{
|
||||||
//initialize
|
//initialize
|
||||||
function initialize()
|
function initialize()
|
||||||
{
|
{
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Takes the svg dom obj and parses the data
|
* Takes the svg dom obj and parses the data
|
||||||
* to create a layer with groups (if needed) with
|
* to create a layer with groups (if needed) with
|
||||||
* items inside. Should support nested groups.
|
* items inside. Should support nested groups.
|
||||||
*
|
*
|
||||||
* takes in a svg object (xml dom)
|
* takes in a svg object (xml dom)
|
||||||
* returns Paper.js Layer
|
* returns Paper.js Layer
|
||||||
*/
|
*/
|
||||||
this.importSVG = function(svg)
|
this.importSVG = function(svg)
|
||||||
{
|
{
|
||||||
return layer;
|
return layer;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a Paper.js Group by parsing
|
* Creates a Paper.js Group by parsing
|
||||||
* a specific svg g node
|
* a specific svg g node
|
||||||
*
|
*
|
||||||
* takes in a svg object (xml dom)
|
* takes in a svg object (xml dom)
|
||||||
* returns Paper.js Group
|
* returns Paper.js Group
|
||||||
*/
|
*/
|
||||||
function importGroup(svg)
|
function importGroup(svg)
|
||||||
{
|
{
|
||||||
return group;
|
return group;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a Paper.js Path by parsing
|
* Creates a Paper.js Path by parsing
|
||||||
* a specific svg node (rect, path, circle, polygon, etc)
|
* a specific svg node (rect, path, circle, polygon, etc)
|
||||||
* and creating the right path object based on the svg type.
|
* and creating the right path object based on the svg type.
|
||||||
*
|
*
|
||||||
* takes in a svg object (xml dom)
|
* takes in a svg object (xml dom)
|
||||||
* returns Paper.js Group
|
* returns Paper.js Group
|
||||||
*/
|
*/
|
||||||
function importPath(svg)
|
function importPath(svg)
|
||||||
{
|
{
|
||||||
return path;
|
return path;
|
||||||
};
|
};
|
||||||
|
|
||||||
initialize(); // calls the init function after class is loaded
|
initialize(); // calls the init function after class is loaded
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue