UNPKG

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">

21 lines (18 loc) 550 B
'use strict'; "use strict"; 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; } exports.getGlobalRenderableBounds = getGlobalRenderableBounds; //# sourceMappingURL=getRenderableBounds.js.map