mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Move Shape#isEmpty() to right place.
This commit is contained in:
parent
198305b75c
commit
b9ba2364fe
1 changed files with 7 additions and 7 deletions
|
@ -21,13 +21,6 @@ var Shape = Item.extend(/** @lends Shape# */{
|
|||
_class: 'Shape',
|
||||
_transformContent: false,
|
||||
|
||||
isEmpty: function() {
|
||||
// A shape can never be "empty" in the sense that it does not hold a
|
||||
// definition. This is required for Group#bounds to work correctly when
|
||||
// containing a Shape.
|
||||
return false;
|
||||
},
|
||||
|
||||
initialize: function Shape(type, point, size, props) {
|
||||
this._initialize(props, point);
|
||||
this._type = type;
|
||||
|
@ -70,6 +63,13 @@ var Shape = Item.extend(/** @lends Shape# */{
|
|||
this.setSize(size, size);
|
||||
},
|
||||
|
||||
isEmpty: function() {
|
||||
// A shape can never be "empty" in the sense that it does not hold a
|
||||
// definition. This is required for Group#bounds to work correctly when
|
||||
// containing a Shape.
|
||||
return false;
|
||||
},
|
||||
|
||||
_draw: function(ctx, param) {
|
||||
var style = this._style,
|
||||
size = this._size,
|
||||
|
|
Loading…
Reference in a new issue