Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TextAliveJp/textalive-app-api/llms.txt
Use this file to discover all available pages before exploring further.
IChar is the most granular lyrics rendering unit — a single character with precise timing, font, and color control. It extends ITextUnit → IRenderingUnit.
Inheritance chain: IChar → ITextUnit → IRenderingUnit → TimedObject
Char class:
Properties
Navigation
The word that contains this character. Access
char.parent.parent to reach the containing phrase.The character immediately before this one in the video, or
null if this is the first character.The character immediately after this one in the video, or
null if this is the last character.Text
The single character string this unit represents.
Font (get/set)
The full font object for this character. Assigning a new
Font instance updates all font properties at once.The CSS font-family name for this character. Get or set independently of other font properties.
The CSS font-style string (e.g.
"normal", "italic", "bold italic"). Get or set.The font size in pixels. Get or set.
Color (get/set)
The text color of this character as a
Color instance. Assigning a new Color overrides the character’s color.Inherited from IRenderingUnit
Start time of this character in milliseconds.
End time of this character in milliseconds.
Duration of this character in milliseconds.
Assign a function
(now: number, u: IRenderingUnit) => void here to override the default template animation for this character specifically.progress
Maps a song position to[0, 1] representing progress through this character’s time span. Use this for within-character animations.
Position in the song [ms].
number — 0.0 at startTime, 1.0 at endTime.
getType
Returnsnumber — always 3 (UnitTypes.CHAR) for characters.
CharData and FontData
CharData is the serialization format for characters. It extends both UnitData and FontData.
Examples
Render a character with progress-based styling in onTimeUpdate
Navigate from a character to its word and phrase
Animate each character using both position and progress
Setting
char.animate suppresses the default TextAlive template animation for that character. Remove the property (set it to null or undefined) to restore default behavior.