mcut
@mcut/timeline

getRunStyleAt

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / timeline/src / getRunStyleAt

Function: getRunStyleAt()

function getRunStyleAt(runs, offset): object;

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

The effective override style at a character offset ({} when none).

Parameters

runs

readonly object[]

offset

number

Returns

color?

optional color?: string;

Any CSS color; overrides the base fill for the range.

fontStyle?

optional fontStyle?: "normal" | "italic";

fontWeight?

optional fontWeight?: number;

On this page