mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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
|
* Converts the provided SVG content into Paper.js items and adds them to
|
||||||
* adds them as children to the this item.
|
* the this item's children list.
|
||||||
*
|
*
|
||||||
* @name Item#importSVG
|
* @name Item#importSVG
|
||||||
* @function
|
* @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
|
* @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
|
* Converts the provided SVG content into Paper.js items and adds them to
|
||||||
* adds them to the active layer of this project.
|
* the active layer of this project.
|
||||||
*
|
*
|
||||||
* @name Project#importSVG
|
* @name Project#importSVG
|
||||||
* @function
|
* @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
|
* @return {Item} the imported Paper.js parent item
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue