API reference
PhaseSection
pixi-reels / index / PhaseSection
type PhaseSection<TSteps = Record<string, StepTiming>, TExtra = unknown> = PhaseSectionBody<TSteps, TExtra> & {
whenAnticipated?: PhaseSectionBody<TSteps, TExtra>;
};
Defined in: config/types.ts:429
One phase’s slice of a speed profile: the flat fields it wants different from the profile’s own, the config of its named steps, and the variant to merge on top when the reel teased earlier in the spin.
Type Declaration#
| Name | Type | Description | Defined in |
|---|---|---|---|
whenAnticipated? | PhaseSectionBody<TSteps, TExtra> | Merged over the rest of this section when the reel ran an anticipation tease earlier in the same spin. Does not nest a variant of its own. | config/types.ts:437 |
Type Parameters#
| Type Parameter | Default type | Description |
|---|---|---|
TSteps | Record<string, StepTiming> | The phase’s step names mapped to each step’s config. |
TExtra | unknown | Extra fields this phase reads that are not profile timings. |