pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
19 lines (17 loc) • 511 B
JavaScript
;
function getGlobalRenderableBounds(renderables, bounds) {
bounds.clear();
const tempMatrix = bounds.matrix;
for (let i = 0; i < renderables.length; i++) {
const renderable = renderables[i];
if (renderable.globalDisplayStatus < 7) {
continue;
}
bounds.matrix = renderable.worldTransform;
bounds.addBounds(renderable.bounds);
}
bounds.matrix = tempMatrix;
return bounds;
}
export { getGlobalRenderableBounds };
//# sourceMappingURL=getRenderableBounds.mjs.map