Syllable Layout
constructor(syllable: ERROR CLASS: Symbol not found for KaraokeSyllable, layoutResult: NativeLayoutResult, wordId: Int, useAwesomeAnimation: Boolean, width: Float = layoutResult.total_width, position: ERROR CLASS: Symbol not found for Offset = Offset.Zero, wordPivot: ERROR CLASS: Symbol not found for Offset = Offset.Zero, wordAnimInfo: WordAnimationInfo? = null, charOffsetInWord: Int = 0, charLayouts: List<NativeLayoutResult>? = null, charOriginalBounds: List<ERROR CLASS: Symbol not found for Rect>? = null, firstBaseline: Float = layoutResult.firstBaseline, floatEndingTime: Long = 0)
Parameters
syllable
The original karaoke syllable data.
layout Result
The native text layout result for this syllable.
word Id
ID grouping syllables into words (for word-level wrapping).
use Awesome Animation
Whether this syllable uses complex per-character animations (bounce, swell).
width
Total width of the syllable.
position
Layout position relative to the line/row.
word Pivot
Pivot point for word-level transformations.
word Anim Info
Metadata for word-level animations.
char Offset In Word
Constant offset of this syllable's characters within the word.
char Layouts
Individual character layouts (for complex animations).
char Original Bounds
Bounds of individual characters relative to the syllable.
first Baseline
Baseline offset from the top.
float Ending Time
Calculated time when the "float" animation should settle.