@motion-script/core / caretRangeQuads
Function: caretRangeQuads()
caretRangeQuads(
layout,start,end):TextRangeQuad[]
Defined in: runtime/text-geometry.ts:139
The quads covering [start, end), one per line the range touches — what a
host fills to draw a selection highlight.
Per line rather than one box for the whole range, because a range spanning a line break covers two disjoint areas and a single enclosing box would paint over the gap between them.
Parameters
layout
start
number
end
number