HeliosStateManager
- Kind
- class
- Source
- src/state/HeliosStateManager.js:179
Description
Central live state graph for Helios defaults, bindings, overrides, and reset status.
Signature
Filtering And State
Graph filtering and interaction state. When active, FilterBehavior and SelectionBehavior coordinate this area.
dirtyState()
Source: src/state/HeliosStateManager.js:399
Configures or reads dirty state.
Network And Persistence
Network replacement, serialization, and visualization state persistence. ExporterBehavior and InterfaceBehavior can surface parts of this flow in the UI.
restore(snapshot = {}, options = {}) → {this}
Source: src/state/HeliosStateManager.js:465
Updates the restore state on the current instance.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
snapshot | optional | {} | Value passed to restore. | |
options | Object | optional | {} | Options object for this operation. |
Returns
This instance.
Typethisserialize()
Source: src/state/HeliosStateManager.js:502
Handles serialize for the current graph or visualization state.
Configuration
General configuration setters and compatibility helpers.
setOverrideTrackingReady(ready = true) → {this}
Source: src/state/HeliosStateManager.js:201
Set the override tracking ready setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
ready | optional | true | Value passed to setOverrideTrackingReady. |
Returns
This instance.
Typethisget(key, fallback = undefined)
Source: src/state/HeliosStateManager.js:302
Returns the current get value or state.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | Value passed to get. | |||
fallback | optional | undefined | Value passed to get. |
set(key, value, options = {}) → {this}
Source: src/state/HeliosStateManager.js:310
Set the set setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | Value passed to set. | |||
value | New set value. Omit this argument to read the current value. | |||
options | Object | optional | {} | Options object for this operation. |
Returns
This instance.
TypethissetDefault(key, value, options = {}) → {this}
Source: src/state/HeliosStateManager.js:314
Set the default setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | Value passed to setDefault. | |||
value | New set default value. Omit this argument to read the current value. | |||
options | Object | optional | {} | Options object for this operation. |
Returns
This instance.
Typethisreset(keyOrPrefix, options = {}) → {this}
Source: src/state/HeliosStateManager.js:345
Updates the reset state on the current instance.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
keyOrPrefix | Value passed to reset. | |||
options | Object | optional | {} | Options object for this operation. |
Returns
This instance.
TypethisresetToDefault(keyOrPrefix, options = {}) → {this}
Source: src/state/HeliosStateManager.js:365
Updates the to default state on the current instance.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
keyOrPrefix | Value passed to resetToDefault. | |||
options | Object | optional | {} | Options object for this operation. |
Returns
This instance.
TypethisgetOverrides(options = {}) → {Object|this}
Source: src/state/HeliosStateManager.js:520
Read or set the get overrides setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current get overrides value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.getOverrides({
enabled: true,
});
Utilities
Additional public helpers that do not belong to a narrower API area.
register(owner, prefix, entries = {}) → {this}
Source: src/state/HeliosStateManager.js:206
Manages register for the current instance.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
owner | Value passed to register. | |||
prefix | Value passed to register. | |||
entries | optional | {} | Value passed to register. |
Returns
This instance.
Typethisentry(key)
Source: src/state/HeliosStateManager.js:289
Configures or reads entry.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | Value passed to entry. |
entriesFor(prefix = '')
Source: src/state/HeliosStateManager.js:295
Configures or reads entries for.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
prefix | optional | '' | Value passed to entriesFor. |
status(keyOrPrefix)
Source: src/state/HeliosStateManager.js:369
Configures or reads status.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
keyOrPrefix | Value passed to status. |
subscribe(keyOrPrefix, callback, options = {})
Source: src/state/HeliosStateManager.js:415
Configures or reads subscribe.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
keyOrPrefix | Value passed to subscribe. | |||
callback | Value passed to subscribe. | |||
options | Object | optional | {} | Options object for this operation. |
transaction(options = {}, callback = null)
Source: src/state/HeliosStateManager.js:433
Configures or reads transaction.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
callback | optional | null | Value passed to transaction. |
Example
helios.transaction({
enabled: true,
});
snapshot(options = {}) → {Object|this}
Source: src/state/HeliosStateManager.js:487
Read or set the snapshot setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current snapshot value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.snapshot({
enabled: true,
});
preferredKey(key)
Source: src/state/HeliosStateManager.js:510
Configures or reads preferred key.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | Value passed to preferredKey. |
overrideKeys()
Source: src/state/HeliosStateManager.js:516
Configures or reads override keys.
resolveKey(key)
Source: src/state/HeliosStateManager.js:538
Configures or reads resolve key.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | Value passed to resolveKey. |
debugStats(options = {}) → {Object|this}
Source: src/state/HeliosStateManager.js:713
Read or set the debug stats setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current debug stats value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.debugStats({
enabled: true,
});