mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Document options.insert in #importSVG()
This commit is contained in:
parent
dba4eb371d
commit
3c3c8d98b0
2 changed files with 6 additions and 2 deletions
|
@ -2229,8 +2229,10 @@ new function() { // Injection scope for hit-test functions shared with project
|
|||
* @option options.onError {Function} the callback function to call if an
|
||||
* error occurs during loading. Only required when loading from external
|
||||
* resources.
|
||||
* @option [options.insert=true] {Boolean} whether the imported items should
|
||||
* be added to the item that `importSVG()` is called on
|
||||
* @option [options.applyMatrix={@link PaperScope#settings}.applyMatrix]
|
||||
* {Boolean} whether imported items should have their transformation
|
||||
* {Boolean} whether the imported items should have their transformation
|
||||
* matrices applied to their contents or not
|
||||
*
|
||||
* @param {SVGElement|String} svg the SVG content to import, either as a SVG
|
||||
|
|
|
@ -782,8 +782,10 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
* @option options.onError {Function} the callback function to call if an
|
||||
* error occurs during loading. Only required when loading from external
|
||||
* resources.
|
||||
* @option [options.insert=true] {Boolean} whether the imported items should
|
||||
* be added to the project that `importSVG()` is called on
|
||||
* @option [options.applyMatrix={@link PaperScope#settings}.applyMatrix]
|
||||
* {Boolean} whether imported items should have their transformation
|
||||
* {Boolean} whether the imported items should have their transformation
|
||||
* matrices applied to their contents or not
|
||||
*
|
||||
* @param {SVGElement|String} svg the SVG content to import, either as a SVG
|
||||
|
|
Loading…
Reference in a new issue