Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage.getBounds #43

Closed
mikechambers opened this issue Mar 18, 2011 · 3 comments
Closed

Stage.getBounds #43

mikechambers opened this issue Mar 18, 2011 · 3 comments

Comments

@mikechambers
Copy link
Contributor

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.

@mitermayer
Copy link

/src/easeljs/display/Stage.js

method:

/** 
 * 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 );  
}   

@gskinner
Copy link
Member

gskinner commented Aug 8, 2012

Considering merging this. What is the use case for it?

@gskinner
Copy link
Member

gskinner commented Aug 9, 2012

Closing this in favour of #99

@gskinner gskinner closed this as completed Aug 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants