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
| Name | Type |
|---|---|
params | RenderWordsParams |
Returns
Defined in
animateWords
▸ animateWords(params): ThreadGenerator
Generator: animate words over time.
Parameters
| Name | Type |
|---|---|
params | AnimateWordsParams |
Returns
ThreadGenerator
Defined in
preparePhraseContainer
▸ preparePhraseContainer(params): void
Optional: customize phrase container before words are rendered (e.g. fill background).
Parameters
| Name | Type |
|---|---|
params | PreparePhraseContainerParams |
Returns
void
Defined in
Properties
id
• Readonly id: string