@mcut/timeline
applyRunStyle
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / timeline/src / applyRunStyle
Function: applyRunStyle()
function applyRunStyle(
runs,
start,
end,
patch,
textLength): object[];Defined in: packages/timeline/src/rich-text.ts:88
Apply a style patch over [start, end): existing overrides in the range are merged with the patch (null entries clear), runs outside the range are untouched, and partially-covered runs split at the boundaries.
Parameters
runs
readonly object[]
start
number
end
number
patch
textLength
number
Returns
object[]