mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Make Item#bounds setter work for PathItem, and add two TODO comments about Bootstrap shortcommings that cause it to break.
This commit is contained in:
parent
bb9ae75f3d
commit
38f4dd353d
1 changed files with 7 additions and 0 deletions
|
@ -145,6 +145,13 @@ PathItem = Item.extend(new function() {
|
||||||
return new Rectangle(min.x, min.y, max.x - min.x , max.y - min.y);
|
return new Rectangle(min.x, min.y, max.x - min.x , max.y - min.y);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
setBounds: function() {
|
||||||
|
// Bootstrap needs setter redifiniton for now.
|
||||||
|
// TODO: Fix there instead of here
|
||||||
|
// TODO: this.base does not seem to work in beans either!
|
||||||
|
return Item.prototype.setBounds.apply(this, arguments);
|
||||||
|
},
|
||||||
|
|
||||||
transformContent: function(matrix, flags) {
|
transformContent: function(matrix, flags) {
|
||||||
for (var i = 0, l = this._segments.length; i < l; i++) {
|
for (var i = 0, l = this._segments.length; i < l; i++) {
|
||||||
var segment = this._segments[i];
|
var segment = this._segments[i];
|
||||||
|
|
Loading…
Reference in a new issue