API

Interface DefaultTextData

Convenience text-data variant that owns its GlyphStorage and exposes the laid-out pixel-space width / height of the text block. Produced by createDefaultTextData.

interface DefaultTextData {
    "[defaultTextDataBrand]": true;
    "[textDataBrand]": true;
    height: number;
    runs: readonly GlyphRun[];
    width: number;
}

Hierarchy (View Summary)

Index
"[defaultTextDataBrand]": true
"[textDataBrand]": true
height: number

Pixel-space height of the laid-out run (lines × line-height).

runs: readonly GlyphRun[]

Live, in-insertion-order view of the runs currently rendered. Mutated by updateTextData. Do not mutate from outside.

width: number

Pixel-space width of the laid-out run (max line width).