Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

Transform DisplayObject.getBounds() to window coordinates

$
0
0

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


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>