# Visualizer Runtime Config Provider

TypeScript source: `providers/VisualizerRuntimeConfigProvider.tsx`

## Components

### VisualizerRuntimeConfigProvider

Source: `providers/VisualizerRuntimeConfigProvider.tsx:87`

```ts
React.FC<VisualizerRuntimeConfigProviderProps>
```

Provides visualizer runtime settings and synchronizes them with the shared visualizer runtime store.

#### Remarks

Initial values are merged with persisted runtime settings, then updates are mirrored into the visualizer runtime store used by
stream panels.

#### Example

```tsx
<VisualizerRuntimeConfigProvider initialRuntimeConfig={{ debugLogs: true }}>
	{children}
</VisualizerRuntimeConfigProvider>
```

## Types

### VisualizerRuntimeConfigContextValue

Source: `providers/VisualizerRuntimeConfigProvider.tsx:15`

Runtime configuration state exposed to visualizer consumers.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `runtimeConfig` | `Readonly<RuntimeConfig>` | Current immutable visualizer runtime configuration. |
| `setNeuralCameraIntrinsics` | `(value: RuntimeConfig["neuralCameraIntrinsics"]) => void` | Updates neural camera intrinsics used
by depth and point cloud decoding. |
| `setPerspective` | `(value: boolean | undefined) => void` | Enables or disables perspective rendering for point cloud panels. |
| `setStereoDepthMaxValue` | `(value: number | undefined) => void` | Updates the maximum expected stereo depth value in
millimeters. |
| `updateRuntimeConfig` | `(runtimeConfig: Readonly<RuntimeConfig>) => void` | Merges a partial runtime configuration into the
current value. |

### VisualizerRuntimeConfigProviderProps

Source: `providers/VisualizerRuntimeConfigProvider.tsx:66`

```ts
React.PropsWithChildren<{ initialRuntimeConfig?: Readonly<RuntimeConfig> }>
```

Props for the visualizer runtime configuration provider.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `initialRuntimeConfig?` | `Readonly<RuntimeConfig>` | Runtime configuration applied on initial render before any user changes. |

## Functions

### useVisualizerRuntimeConfig

Source: `providers/VisualizerRuntimeConfigProvider.tsx:174`

```ts
() => VisualizerRuntimeConfigContextValue
```

Returns the current visualizer runtime configuration context.

## Constants

### STREAM_DIAGNOSTICS_LOCAL_STORAGE_KEY

Source: `providers/VisualizerRuntimeConfigProvider.tsx:9`

```ts
"viewer-stream-diagnostics-enabled"
```
