Home
API: assemblage

Function: shapeBox()

lifecycle-kit

lifecycle-kit


lifecycle-kit / assemblage / shapeBox

Function: shapeBox()

shapeBox(shape): Box

Defined in: assemblage/shadow.ts:106

The extent of one shape.

Exact for ellipses and for straight runs; a curve's true extremum needs the Bézier derivative roots that the forms stage already solves, and control points are deliberately included as a conservative outer bound here rather than re-deriving that solver. A shadow cast from a box slightly larger than the curve errs toward more shadow, never toward a limb that fails to cast.

Parameters

shape

Shape

Returns

Box