Skip to main content

Interface: CaptionStyleHandler

Caption style handler contract. Each style implements its own rendering and animation logic.

Table of contents​

Methods​

Properties​

Methods​

renderWords​

▸ renderWords(params): WordRefs

Build word elements into container. Returns refs needed for animation.

Parameters​

NameType
paramsRenderWordsParams

Returns​

WordRefs

Defined in​

caption-styles/types.ts:66


animateWords​

▸ animateWords(params): ThreadGenerator

Generator: animate words over time.

Parameters​

NameType
paramsAnimateWordsParams

Returns​

ThreadGenerator

Defined in​

caption-styles/types.ts:71


preparePhraseContainer​

▸ preparePhraseContainer(params): void

Optional: customize phrase container before words are rendered (e.g. fill background).

Parameters​

NameType
paramsPreparePhraseContainerParams

Returns​

void

Defined in​

caption-styles/types.ts:76

Properties​

id​

• Readonly id: string

Defined in​

caption-styles/types.ts:61