@motion-script/core / nodeTextLayout
Function: nodeTextLayout()
nodeTextLayout(
node,path,scope):NodeTextLayout|null
Defined in: runtime/text-geometry.ts:71
Measure node's caret slots in viewport space, or null when it has none to
report — not a Text, nothing shaped yet, or a shape the caret model
doesn't cover (see MeasureScope.layoutTextBlock).
The block-local layout comes from the backend, because that is where glyphs are actually positioned; everything below is the same mapping nodeBox applies to a node's corners.
Parameters
node
path
string
scope
Returns
NodeTextLayout | null