Home
API: forms

Function: partBounds()

lifecycle-kit

lifecycle-kit


lifecycle-kit / forms / partBounds

Function: partBounds()

partBounds(path): object[]

Defined in: forms/path.ts:396

The bounding box of each part, in draw order.

The assemblage stage needs this to place a part in a depth band and to know which parts overlap, since a part can only cast a shadow onto one it actually covers. It is deliberately a composition of groupByPart and bounds rather than a second solver — one exact implementation of the Bézier extrema, used everywhere.

Parameters

path

Path

Returns

object[]