Interface: GetFastGlobalBoundsMixin
Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:10
Interface for the GetFastGlobalBoundsMixin, which provides methods to compute an approximate global bounding box for a container and its children.
Advanced
Methods
_getGlobalBoundsRecursive()
> _getGlobalBoundsRecursive(factorRenderLayers, bounds, currentLayer): void
Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:32
Internal
Recursively calculates the global bounds for the container and its children. This method is used internally by getFastGlobalBounds to traverse the scene graph.
Parameters
factorRenderLayers
boolean
A flag indicating whether to consider render layers in the calculation.
bounds
The bounds object to update with the calculated values.
currentLayer
The current render layer being processed.
Returns
void
getFastGlobalBounds()
> getFastGlobalBounds(factorRenderLayers?, bounds?): Bounds
Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:23
Computes an approximate global bounding box for the container and its children. This method is optimized for speed by using axis-aligned bounding boxes (AABBs), and uses the last render results from when it updated the transforms. This function does not update them. which may result in slightly larger bounds but never smaller than the actual bounds.
for accurate (but less performant) results use container.getGlobalBounds
Parameters
factorRenderLayers?
boolean
A flag indicating whether to consider render layers in the calculation.
bounds?
The output bounds object to store the result. If not provided, a new one is created.
Returns
The computed bounds.