Skip to content
Internals
Draft. This essay is a stub or a work in progress — read it as a sketch, not settled documentation.

The Bounding-Box Model

Bounding boxes are the common currency of layout: nearly every pass produces, consumes, or unions them. This essay will document the BoundingBox type and its operations.

Planned contents

  • The BoundingBox representation and its invariants (minX <= maxX, etc.).
  • Construction and validation helpers (bbox, empty).
  • Geometric operations — union, intersection, transformation.
  • How bounding boxes flow through domain inference, layout, and placement.
  • The relationship between intrinsic dims, transforms, and final boxes.

Source

Likely covers:: packages/gofish-graphics/src/util/bbox.ts. Add the covers: frontmatter when writing this up, then run pnpm --filter docs sync-backlinks.