API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classBounds
Mutable axis-aligned bounding box accumulator. Starts as the empty bounds (`-Infinity..Infinity` reversed) and grows monotonically as points or rectangles are merged in via Bounds.addCoords and Bounds.addRect. Used during scene-graph traversal to accumulate a subtree's combined extent for culling and hit-testing. The Bounds.getRect accessor lazily folds the current min/max into a shared Rectangle — copy the result if you need to retain it across further accumulation.
import { Bounds } from '@codexo/exojs' Mutable axis-aligned bounding box accumulator. Starts as the empty bounds (`-Infinity..Infinity` reversed) and grows monotonically as points or rectangles are merged in via Bounds.addCoords and Bounds.addRect. Used during scene-graph traversal to accumulate a subtree's combined extent for culling and hit-testing.
The Bounds.getRect accessor lazily folds the current min/max into a shared Rectangle — copy the result if you need to retain it across further accumulation.
new(): Bounds addCoords(x: number, y: number): this addRect(rectangle: Rectangle, transform?: Matrix): this destroy(): void getRect(): Rectangle reset(): this maxX: number maxY: number minX: number minY: number