diff --git a/dist/docs/assets/js/paper.js b/dist/docs/assets/js/paper.js index cf570373..36651d3e 100644 --- a/dist/docs/assets/js/paper.js +++ b/dist/docs/assets/js/paper.js @@ -9,7 +9,7 @@ * * All rights reserved. * - * Date: Tue Feb 9 15:09:39 2016 +0100 + * Date: Tue Feb 9 16:01:06 2016 +0100 * *** * @@ -3408,15 +3408,18 @@ new function() { return Base.equals(this._children, item._children); }, - clone: function(insert) { + clone: function(options) { var copy = new this.constructor(Item.NO_INSERT), - children = this._children; + children = this._children, + insert = Base.pick(options && options.insert, true), + deep = Base.pick(options && options.deep, true); if (children) copy.copyAttributes(this); - copy.copyContent(this); + if (!children || deep) + copy.copyContent(this); if (!children) copy.copyAttributes(this); - if (insert === undefined || insert) + if (insert) copy.insertAbove(this); var name = this._name, parent = this._parent; diff --git a/dist/docs/classes/CompoundPath.html b/dist/docs/classes/CompoundPath.html index 23e5e2e0..aaed45e3 100644 --- a/dist/docs/classes/CompoundPath.html +++ b/dist/docs/classes/CompoundPath.html @@ -2981,21 +2981,25 @@ circle.set({
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }
Clones the item within the same project and places the copy above the item.
- +true
, it is inserted above the original — default: truetrue
, it is inserted above the original
-— optional, default: true
+options:
+Object
+
+— optional, default: { insert: true, deep: true }