mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Improve documentation of #importSVG() methods.
This commit is contained in:
parent
61ecf44140
commit
160fe25cd1
2 changed files with 6 additions and 6 deletions
|
@ -1659,12 +1659,12 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
*/
|
||||
|
||||
/**
|
||||
* Converts the SVG node and all its child nodes into Paper.js items and
|
||||
* adds them as children to the this item.
|
||||
* Converts the provided SVG content into Paper.js items and adds them to
|
||||
* the this item's children list.
|
||||
*
|
||||
* @name Item#importSVG
|
||||
* @function
|
||||
* @param {SVGSVGElement} node the SVG node to import
|
||||
* @param {SVGSVGElement|String} svg the SVG content to import
|
||||
* @return {Item} the imported Paper.js parent item
|
||||
*/
|
||||
|
||||
|
|
|
@ -325,12 +325,12 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
*/
|
||||
|
||||
/**
|
||||
* Converts the SVG node and all its child nodes into Paper.js items and
|
||||
* adds them to the active layer of this project.
|
||||
* Converts the provided SVG content into Paper.js items and adds them to
|
||||
* the active layer of this project.
|
||||
*
|
||||
* @name Project#importSVG
|
||||
* @function
|
||||
* @param {SVGSVGElement} node the SVG node to import
|
||||
* @param {SVGSVGElement|String} svg the SVG content to import
|
||||
* @return {Item} the imported Paper.js parent item
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue