SyllableLayout

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.

layoutResult

The native text layout result for this syllable.

wordId

ID grouping syllables into words (for word-level wrapping).

useAwesomeAnimation

Whether this syllable uses complex per-character animations (bounce, swell).

width

Total width of the syllable.

position

Layout position relative to the line/row.

wordPivot

Pivot point for word-level transformations.

wordAnimInfo

Metadata for word-level animations.

charOffsetInWord

Constant offset of this syllable's characters within the word.

charLayouts

Individual character layouts (for complex animations).

charOriginalBounds

Bounds of individual characters relative to the syllable.

firstBaseline

Baseline offset from the top.

floatEndingTime

Calculated time when the "float" animation should settle.