canvaskit-wasm 0.39 build 2026-04-29

Range

A plain JS object describing a closed integer range — first and last are both inclusive indices. Used by paragraph APIs to describe runs and lines. Distinct from URange which uses half-open start/end (UTF-16 code units).

const r = { first: 0, last: 4 };  // covers indices 0,1,2,3,4

Fields

FieldTypeNotes
firstnumberInclusive start index.
lastnumberInclusive end index.

See also

  • URange — half-open [start, end) UTF-16 range.