Skip to content

Commit

Permalink
Updated satellital files from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasAlabes committed Feb 11, 2013
1 parent 8fa2f32 commit e585625
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion raphael-min.js

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions raphael.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@
text: function (el) {
var bbox = el._getBBox();
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);
}
},
/*\
Expand Down Expand Up @@ -1574,7 +1578,7 @@
var pathDimensions = R.pathBBox = function (path) {
var pth = paths(path);
if (pth.bbox) {
return pth.bbox;
return clone(pth.bbox);
}
if (!path) {
return {x: 0, y: 0, width: 0, height: 0, x2: 0, y2: 0};
Expand Down Expand Up @@ -3351,6 +3355,8 @@
!R.is(itemsArray, "array") && (itemsArray = Array.prototype.splice.call(arguments, 0, arguments.length));
var out = new Set(itemsArray);
this.__set__ && this.__set__.push(out);
out["paper"] = this;
out["type"] = "set";
return out;
};
/*\
Expand Down Expand Up @@ -4846,7 +4852,7 @@
};
};
setproto.clone = function (s) {
s = new Set;
s = this.paper.set();
for (var i = 0, ii = this.items.length; i < ii; i++) {
s.push(this.items[i].clone());
}
Expand Down

0 comments on commit e585625

Please sign in to comment.