LogoPixi’VN
pixi-jsFunctions

Function: updateQuadBounds()

> updateQuadBounds(bounds, anchor, texture): void

Defined in: node_modules/pixi.js/lib/utils/data/updateQuadBounds.d.ts:14

Internal

Updates the bounds of a quad (a rectangular area) based on the provided texture and anchor point.

This function calculates the minimum and maximum x and y coordinates of the bounds, taking into account the texture's original dimensions and any trimming that may have been applied to it.

Parameters

bounds

BoundsData

The bounds object to be updated. It contains minX, maxX, minY, and maxY properties.

anchor

ObservablePoint

The anchor point of the texture, which affects the positioning of the bounds.

texture

Texture

The texture whose dimensions and trimming information are used to update the bounds.

Returns

void