pixi.js
    Preparing search index...

    Interface GetFastGlobalBoundsMixinAdvanced

    Interface for the GetFastGlobalBoundsMixin, which provides methods to compute an approximate global bounding box for a container and its children.

    interface GetFastGlobalBoundsMixin {
        getFastGlobalBounds(
            factorRenderLayers?: boolean,
            bounds?: Bounds,
        ): Bounds;
    }
    Index

    Methods

    • Advanced

      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

      • OptionalfactorRenderLayers: boolean

        A flag indicating whether to consider render layers in the calculation.

      • Optionalbounds: Bounds

        The output bounds object to store the result. If not provided, a new one is created.

      Returns Bounds

      The computed bounds.