Home
API: forms

Type Alias: Animated

lifecycle-kit

lifecycle-kit


lifecycle-kit / forms / Animated

Type Alias: Animated

Animated = (phase) => Path

Defined in: forms/path.ts:380

A form that can be posed at any phase.

The animated counterpart of Path, and deliberately just a function. A consumer drawing a still frame calls it once at phase 0 and never pays for animation; a consumer pulsing a bell calls it per frame. Either way what comes back is an ordinary Path, so every geometric assertion in the test suite applies to an animated form at a chosen phase without a second code path.

Parameters

phase

number

Returns

Path