API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceTextPageQuads

@codexo/exojs / rendering / stable

Per-page quad geometry for a single text node, consumed by the text renderer for both Text and BitmapText.

6
props
0
methods
0
events
Import
import { TextPageQuads } from '@codexo/exojs'

Per-page quad geometry for a single text node, consumed by the text renderer for both Text and BitmapText.

Properties6
decorations: Uint8Array
One flag per quad: 1 for a decoration rule, 0 for a glyph. The renderers fold it into the packed per-vertex word so the fragment stage can give a rule its own colour. A rule samples solid ink, so without the flag it would be indistinguishable from a glyph interior.
indices: Uint32Array
Index buffer: 6 indices × quadCount. Uint32 - a single node's own glyph count can exceed 16384 quads.
pageIndex: number
Atlas page index.
quadCount: number
uvs: Float32Array
UV coordinates: [u, v] × 4 vertices × quadCount.
vertices: Float32Array
Vertex positions: [x, y] × 4 vertices × quadCount.
Source