CaptureWalkerContext
Defined in: packages/xray/src/measure.ts:101
The context handed to a capture walker’s element hook (ADR 0018). The helpers are PURE — each
returns a WalkerDecision the applyWalker pass applies; they do NOT mutate. el is the
element under consideration.
Properties
Section titled “Properties”el:
Element
Defined in: packages/xray/src/measure.ts:103
The element currently being classified.
Methods
Section titled “Methods”bone()
Section titled “bone()”bone(
opts?):WalkerDecision
Defined in: packages/xray/src/measure.ts:110
Collapse this element’s subtree into ONE Bone leaf. kind omitted shares the default
classifier’s kind-inference heuristic (inferLeafKind; ADR 0018, Q4 — ONE code path).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”ignore()
Section titled “ignore()”ignore():
WalkerDecision
Defined in: packages/xray/src/measure.ts:105
Drop this element AND its whole subtree (no bone).
Returns
Section titled “Returns”keep()
Section titled “keep()”keep():
WalkerDecision
Defined in: packages/xray/src/measure.ts:112
Defer to the default classifier (markInk) — recurse into the subtree.
