Skip to content

CollectLimits

CollectLimits = object

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

Collect-stage size limits (ADR 0022): refuse to capture a boundary whose measured tree exceeds any axis. maxNodes caps the total surviving-node count; maxBreadth the widest level (most nodes at any one depth); maxDepth the nesting depth. Each axis is enforced only when its cap is defined. The defaults and the maxNodes = round(maxBreadth × maxDepth / 4) derivation live in the client (where the other defaults live); this core only enforces what it is handed.

optional maxBreadth?: number

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


optional maxDepth?: number

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


optional maxNodes?: number

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