mcut
@mcut/timeline

normalizeRuns

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / timeline/src / normalizeRuns

Function: normalizeRuns()

function normalizeRuns(runs, textLength): object[];

Defined in: packages/timeline/src/rich-text.ts:49

Canonical form: clamped to the text, sorted, no empty ranges or styles, adjacent equal-style runs merged. All helpers return normalized runs.

Parameters

runs

readonly object[]

textLength

number

Returns

object[]

On this page