MotionScript

@motion-script/core


@motion-script/core / BoxBounds

Type Alias: BoxBounds

BoxBounds = Size2D & Vector2

Defined in: attributes/layout/bounds.ts:15

An axis-aligned box as an origin plus a size — { x, y, width, height } in pixels. The general shape for "a rectangle somewhere", used for a node's laid-out cell, for the extent of what it draws (Node._localBounds), and anywhere else a positioned box is passed around.

What x/y mean is not part of the type: the layout engine's rects are canvas (y-down) and relative to the parent, while a node's own content bounds are y-up and relative to its centre. Each site documents its own space, the same way Vector2 is shared across both conventions.