# Function: shapeBox()

[**lifecycle-kit**](https://jonbogaty.com/lifecycle-kit/api/readme/index.md)

***

[lifecycle-kit](https://jonbogaty.com/lifecycle-kit/api/readme/index.md) / [assemblage](https://jonbogaty.com/lifecycle-kit/api/assemblage/readme/index.md) / shapeBox


# Function: shapeBox() {#function-shapebox}


> **shapeBox**(`shape`): [`Box`](https://jonbogaty.com/lifecycle-kit/api/assemblage/interfaces/box/index.md)

Defined in: [assemblage/shadow.ts:106](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/assemblage/shadow.ts#L106)

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 {#parameters}



### shape {#shape}


[`Shape`](https://jonbogaty.com/lifecycle-kit/api/forms/type-aliases/shape/index.md)


## Returns {#returns}


[`Box`](https://jonbogaty.com/lifecycle-kit/api/assemblage/interfaces/box/index.md)
