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">
1 lines • 1.32 kB
Source Map (JSON)
{"version":3,"file":"getFastGlobalBounds.mjs","sources":["../../../../src/scene/container/bounds/getFastGlobalBounds.ts"],"sourcesContent":["import { deprecation } from '../../../utils/logging/deprecation';\n\nimport type { Container } from '../Container';\nimport type { Bounds } from './Bounds';\n\n/**\n * Does exactly the same as getGlobalBounds, but does instead makes use of transforming AABBs\n * of the various children within the scene graph. This is much faster, but less accurate.\n *\n * Deprecated, use container.getFastGlobalBounds() instead.\n *\n * the result will never be smaller - only ever slightly larger (in most cases, it will be the same).\n * @param target - The target container to get the bounds from\n * @param bounds - The output bounds object.\n * @returns The bounds.\n * @deprecated since 8.7.0\n * @see container.getFastGlobalBounds\n * @internal\n */\nexport function getFastGlobalBounds(target: Container, bounds: Bounds): Bounds\n{\n // #if _DEBUG\n deprecation('8.7.0', 'Use container.getFastGlobalBounds() instead');\n // #endif\n\n return target.getFastGlobalBounds(true, bounds);\n}\n"],"names":[],"mappings":";;;AAmBgB,SAAA,mBAAA,CAAoB,QAAmB,MACvD,EAAA;AAEI,EAAA,WAAA,CAAY,SAAS,6CAA6C,CAAA,CAAA;AAGlE,EAAO,OAAA,MAAA,CAAO,mBAAoB,CAAA,IAAA,EAAM,MAAM,CAAA,CAAA;AAClD;;;;"}