Skip to content

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.

el: Element

Defined in: packages/xray/src/measure.ts:103

The element currently being classified.

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).

LeafKind

WalkerDecision


ignore(): WalkerDecision

Defined in: packages/xray/src/measure.ts:105

Drop this element AND its whole subtree (no bone).

WalkerDecision


keep(): WalkerDecision

Defined in: packages/xray/src/measure.ts:112

Defer to the default classifier (markInk) — recurse into the subtree.

WalkerDecision