You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Returns a rectangle with values of the canvas element
* @method getBounds
* @return {Rectangle} a rectangle object.
**/
p.getBounds = function() {
return new Rectangle( this.canvas.offsetLeft, this.canvas.offsetTop, this.canvas.offsetWidth, this.canvas.offsetHeight );
}
We should think about adding a Stage.getBounds API, that returns a Rectangle.
I thought we had this, but I cannot find it the docs.
The text was updated successfully, but these errors were encountered: