Skip to main content

Function: buildContextPacket()

buildContextPacket(spec, result, selection, capabilities): ContextPacket

Defined in: runtime/contextPacket.ts:140

Derives the current ContextPacket from spec, the last GeoVisResult, and the runtime's current selection. Cheap enough to call on every turn (ADR-0004 consequence) — no geometry or data-row traversal, only the spec's own metadata arrays.

Parameters

ParameterType
specVisualizationSpec
resultGeoVisResult
selectionGeoVisSelection | null
capabilitiesCapabilitySet

Returns

ContextPacket