Skip to content
Entangle UI v0.13.0

computeBoundsFromItems

computeBoundsFromItems(items, padding?): WorldRect

Defined in: src/components/editor/Minimap/computeBoundsFromItems.ts:11

Compute the tight axis-aligned bounding box of a set of minimap items, with optional uniform padding (in world units) on every side.

An empty input returns a zero-area rect at the origin so the minimap can still render a meaningful surface.

readonly MinimapItem[]

number = 0

WorldRect