From 3c3c8d98b0db066e5c3b01bdf8cc6febb5f9fdae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 14 Feb 2016 22:54:33 +0100 Subject: [PATCH] Document options.insert in #importSVG() --- src/item/Item.js | 4 +++- src/item/Project.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 17c98664..b3d031b9 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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 diff --git a/src/item/Project.js b/src/item/Project.js index bd115c00..1cab04f0 100644 --- a/src/item/Project.js +++ b/src/item/Project.js @@ -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