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.
Parameters
items
readonly MinimapItem[]
padding?
number = 0