mtorregrosa Posted March 21, 2019 Share Posted March 21, 2019 I have a PIXI Application in a canvas (not the whole window) with scroll. I have a DisplayObject (Graphics) and I need its bounding rectangle in window coordinates. How can I get this? Method getBounds() provides me with the global coordinates of the object but, how can I convert these global coordinates to window coordinates? Thanks Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 21, 2019 Share Posted March 21, 2019 There's Accessability plugin that maps divs to containers, you can copy some code from it: https://github.com/pixijs/pixi.js/blob/dev/packages/accessibility/src/AccessibilityManager.js#L271 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.