Skip to content

1681-engine / ui / layoutRichText

Function: layoutRichText() ​

ts
function layoutRichText(
   spans, 
   measure, 
   options?
): RichLayout;

Defined in: src/ui/rich/richLayout.ts:92

Breaks spans into lines and places every run and icon.

Parameters ​

ParameterType
spansreadonly RichSpan[]
measureRichMeasure
optionsRichLayoutOptions

Returns ​

RichLayout

Released under the MIT License.