pixi.js
Version:
PixiJS — The HTML5 Creation Engine =============
11 lines (10 loc) • 484 B
TypeScript
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
*/
export declare function getGeometryBounds(geometry: Geometry, attributeId: string, bounds: Bounds): Bounds;