meo-canvas
    Preparing search index...

    Interface TextSegment

    One run of a rich-text node, with a style of its own.

    interface TextSegment {
        style?: Style;
        text: string;
    }
    Index
    style?: Style

    Styling for this run alone, overriding the node's.

    Optional, because a caller writes these by hand and most runs in a rich text are unstyled — requiring style: undefined on each of them is a word per run that says nothing. SceneNode carries every key for the opposite reason: it is built by this module and read by the encoder, and a fixed shape is what lets that be a field read rather than a lookup.

    text: string

    The run's text.