Commit e5856252 by Tomas Alabes

Updated satellital files from previous commit

parent 8fa2f326
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -279,6 +279,10 @@ ...@@ -279,6 +279,10 @@
text: function (el) { text: function (el) {
var bbox = el._getBBox(); var bbox = el._getBBox();
return rectPath(bbox.x, bbox.y, bbox.width, bbox.height); return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);
},
set : function(el) {
var bbox = el._getBBox();
return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);
} }
}, },
/*\ /*\
...@@ -1574,7 +1578,7 @@ ...@@ -1574,7 +1578,7 @@
var pathDimensions = R.pathBBox = function (path) { var pathDimensions = R.pathBBox = function (path) {
var pth = paths(path); var pth = paths(path);
if (pth.bbox) { if (pth.bbox) {
return pth.bbox; return clone(pth.bbox);
} }
if (!path) { if (!path) {
return {x: 0, y: 0, width: 0, height: 0, x2: 0, y2: 0}; return {x: 0, y: 0, width: 0, height: 0, x2: 0, y2: 0};
...@@ -3351,6 +3355,8 @@ ...@@ -3351,6 +3355,8 @@
!R.is(itemsArray, "array") && (itemsArray = Array.prototype.splice.call(arguments, 0, arguments.length)); !R.is(itemsArray, "array") && (itemsArray = Array.prototype.splice.call(arguments, 0, arguments.length));
var out = new Set(itemsArray); var out = new Set(itemsArray);
this.__set__ && this.__set__.push(out); this.__set__ && this.__set__.push(out);
out["paper"] = this;
out["type"] = "set";
return out; return out;
}; };
/*\ /*\
...@@ -4846,7 +4852,7 @@ ...@@ -4846,7 +4852,7 @@
}; };
}; };
setproto.clone = function (s) { setproto.clone = function (s) {
s = new Set; s = this.paper.set();
for (var i = 0, ii = this.items.length; i < ii; i++) { for (var i = 0, ii = this.items.length; i < ii; i++) {
s.push(this.items[i].clone()); s.push(this.items[i].clone());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment