Improve documentation of #importSVG() methods.

This commit is contained in:
Jürg Lehni 2013-10-20 17:14:14 +02:00
parent 61ecf44140
commit 160fe25cd1
2 changed files with 6 additions and 6 deletions

View file

@ -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
*/ */

View file

@ -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
*/ */