Skip to main content

Function: createRuntime()

createRuntime(adapter, initialSpec): GeoVisRuntime

Defined in: runtime/createRuntime.ts:97

Creates a new, isolated GeoVis runtime that mediates between a VisualizationSpec and a concrete EngineAdapter. Spec updates are immutable (spread + replace) so adapters and hooks can use reference equality as a cheap change-detection signal. applyPatch forwards to the adapter before updating currentSpec so runtime.spec always reflects the last successfully accepted adapter state.

Parameters

ParameterType
adapterEngineAdapter
initialSpecVisualizationSpec

Returns

GeoVisRuntime