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

12 lines (11 loc) 497 B
import type { Bounds } from '../../../../../scene/container/bounds/Bounds'; import type { Geometry } from '../Geometry'; /** * Gets the 2D bounds of a geometry, based on a specific attribute. * @param geometry - Geometry to to measure * @param attributeId - AttributeId that contains the x,y data * @param bounds - Bounds to store the result in * @returns the bounds * @internal */ export declare function getGeometryBounds(geometry: Geometry, attributeId: string, bounds: Bounds): Bounds;