Interface: GeoVisRuntime
Defined in: runtime/createRuntime.ts:22
Properties
result
readonlyresult:GeoVisResult
Defined in: runtime/createRuntime.ts:25
The GeoVisResult of the last update/applyPatch call (or the initial spec's validation).
spec
readonlyspec:VisualizationSpec
Defined in: runtime/createRuntime.ts:23
Methods
applyPatch()
applyPatch(
patch):GeoVisResult
Defined in: runtime/createRuntime.ts:35
Low-level escape hatch (PRD-002) — prefer dispatch() for anything
expressible as one of its actions; it targets stable ids and is logged.
Validates the patched spec first; on failure the adapter is never
called and spec/result are unchanged.
Parameters
| Parameter | Type |
|---|---|
patch | SpecPatch |
Returns
destroy()
destroy():
void
Defined in: runtime/createRuntime.ts:51
Returns
void
dispatch()
dispatch(
action):GeoVisResult
Defined in: runtime/createRuntime.ts:44
Validates and compiles a closed, typed GeoVisAction (ADR-0003) to an
existing SpecPatch/update/setView mechanism, applying it only on
success. Every call — accepted or rejected — appends one entry to the
action log (getActionLog()).
Parameters
| Parameter | Type |
|---|---|
action | GeoVisAction |
Returns
getActionLog()
getActionLog(): readonly
ActionLogEntry[]
Defined in: runtime/createRuntime.ts:46
Every dispatched action and its outcome, in dispatch order (ADR-0003 audit substrate).
Returns
readonly ActionLogEntry[]
getAdapter()
getAdapter():
EngineAdapter
Defined in: runtime/createRuntime.ts:52
Returns
getContextPacket()
getContextPacket():
ContextPacket
Defined in: runtime/createRuntime.ts:48
Versioned, read-only, metadata-only summary of the current map (ADR-0004).
Returns
getSelection()
getSelection():
GeoVisSelection|null
Defined in: runtime/createRuntime.ts:50
The runtime's current selection (set via dispatch({ type: 'select-feature' })), or null.
Returns
GeoVisSelection | null
mount()
mount(
container,viewId):MountedView
Defined in: runtime/createRuntime.ts:26
Parameters
| Parameter | Type |
|---|---|
container | HTMLElement |
viewId | string |
Returns
setView()
setView(
options):void
Defined in: runtime/createRuntime.ts:37
Imperatively moves the camera and syncs spec.view. Animated by default.
Parameters
| Parameter | Type |
|---|---|
options | SetViewOptions |
Returns
void
update()
update(
spec):GeoVisResult
Defined in: runtime/createRuntime.ts:28
Validates spec first; on failure the adapter is never called and spec/result are unchanged.
Parameters
| Parameter | Type |
|---|---|
spec | VisualizationSpec |