HeliosStorageManager
- Kind
- class
- Source
- src/storage/HeliosStorageManager.js:743
Description
Base storage facade for Helios state snapshots, sessions, and portable network state.
Signature
Lifecycle
Creation, initialization, prewarming, cleanup, and renderer lifetime.
destroy()
Source: src/storage/HeliosStorageManager.js:2975
Manages destroy for the current instance.
Filtering And State
Graph filtering and interaction state. When active, FilterBehavior and SelectionBehavior coordinate this area.
pendingStateChangeCount()
Source: src/storage/HeliosStorageManager.js:1550
Configures or reads pending state change count.
hasPendingStateChanges()
Source: src/storage/HeliosStorageManager.js:1554
Returns the current pending state changes value or state.
Example
const value = helios.hasPendingStateChanges();
recordPortableState(path, value, options = {})
Source: src/storage/HeliosStorageManager.js:1883
Configures or reads record portable state.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
path | Filesystem path to read from or write to. | |||
value | New record portable state value. Omit this argument to read the current value. | |||
options | Object | optional | {} | Options object for this operation. |
restorePortableStateFromNetwork(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2899
Read or set the restore portable state from network setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current restore portable state from network value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.restorePortableStateFromNetwork({
enabled: true,
});
Network And Persistence
Network replacement, serialization, and visualization state persistence. ExporterBehavior and InterfaceBehavior can surface parts of this flow in the UI.
loadPreferences()
Source: src/storage/HeliosStorageManager.js:1011
Handles preferences for the current graph or visualization state.
markNetworkDirty(reason = 'network-change')
Source: src/storage/HeliosStorageManager.js:1043
Configures or reads mark network dirty.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
reason | string | optional | 'network-change' | Reason for this operation. |
serializeSnapshot(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:1932
Read or set the serialize snapshot setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current serialize snapshot value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.serializeSnapshot({
enabled: true,
});
serializeSessionSnapshot(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2136
Read or set the serialize session snapshot setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current serialize session snapshot value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.serializeSessionSnapshot({
enabled: true,
});
saveSessionSnapshot(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2317
Read or set the save session snapshot setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current save session snapshot value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.saveSessionSnapshot({
enabled: true,
});
restoreSessionSnapshot(snapshot = {}, options = {}) → {this}
Source: src/storage/HeliosStorageManager.js:2360
Updates the session snapshot state on the current instance.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
snapshot | optional | {} | Value passed to restoreSessionSnapshot. | |
options | Object | optional | {} | Options object for this operation. |
Returns
This instance.
TypethisserializeNetworkSnapshot(options = {}) → {Promise<Object>}
Source: src/storage/HeliosStorageManager.js:2456
Serialize a visualization envelope suitable for attachment to a portable network export. The envelope includes the current storageState snapshot.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | Snapshot options forwarded to Helios. |
Returns
Visualization-state envelope.
TypePromise<Object>Example
helios.serializeNetworkSnapshot({
enabled: true,
});
attachVisualizationStateToNetwork(snapshot = null, options = {}) → {Promise<unknown>}
Source: src/storage/HeliosStorageManager.js:2492
Attach a visualization-state envelope to the active network.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
snapshot | Object|null | optional | null | Existing visualization envelope, or null to capture one through storage. |
options | Object | optional | Attachment options. |
Returns
The underlying Helios attachment result.
TypePromise<unknown>saveNetworkSnapshot(format = 'zxnet', options = {}) → {Promise<unknown>}
Source: src/storage/HeliosStorageManager.js:2507
Save the active network with visualization state attached.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
format | string | optional | 'zxnet' | Portable network format. |
options | Object | optional | Save options forwarded to Helios. |
Returns
Serialized network payload.
TypePromise<unknown>restoreNetworkSnapshot(source, options = {}) → {Promise<unknown>}
Source: src/storage/HeliosStorageManager.js:2525
Restore a portable network snapshot through Helios network loading.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
source | unknown | Network payload or file-like source. | ||
options | Object | optional | Restore options forwarded to Helios. |
Returns
Loaded network result.
TypePromise<unknown>restoreSnapshot(snapshot = {}, options = {}) → {this}
Source: src/storage/HeliosStorageManager.js:2533
Updates the snapshot state on the current instance.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
snapshot | optional | {} | Value passed to restoreSnapshot. | |
options | Object | optional | {} | Options object for this operation. |
Returns
This instance.
TypethisloadSession(sessionId = this.sessionId, options = {})
Source: src/storage/HeliosStorageManager.js:2551
Handles session for the current graph or visualization state.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
sessionId | optional | this.sessionId | Value passed to loadSession. | |
options | Object | optional | {} | Options object for this operation. |
restoreActiveSession(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2627
Read or set the restore active session setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current restore active session value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.restoreActiveSession({
enabled: true,
});
saveSession(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2771
Read or set the save session setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current save session value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.saveSession({
enabled: true,
});
restoreSession(sessionIdOrRecord, options = {}) → {this}
Source: src/storage/HeliosStorageManager.js:2867
Updates the session state on the current instance.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
sessionIdOrRecord | Value passed to restoreSession. | |||
options | Object | optional | {} | Options object for this operation. |
Returns
This instance.
TypethisLayout And Positions
Layout selection, position sources, interpolation, and position snapshots. LayoutBehavior handles the built-in layout UI.
markPositionsDirty(reason = 'positions-change')
Source: src/storage/HeliosStorageManager.js:1067
Configures or reads mark positions dirty.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
reason | string | optional | 'positions-change' | Reason for this operation. |
Configuration
General configuration setters and compatibility helpers.
getUnfinishedSessionId()
Source: src/storage/HeliosStorageManager.js:825
Returns the current unfinished session id value or state.
Example
const value = helios.getUnfinishedSessionId();
setUnfinishedSessionId(id) → {this}
Source: src/storage/HeliosStorageManager.js:829
Set the unfinished session id setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to setUnfinishedSessionId. |
Returns
This instance.
TypethissetOverrideTrackingReady(ready = true) → {this}
Source: src/storage/HeliosStorageManager.js:833
Set the override tracking ready setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
ready | optional | true | Value passed to setOverrideTrackingReady. |
Returns
This instance.
TypethisgetPreferences()
Source: src/storage/HeliosStorageManager.js:999
Returns the current preferences value or state.
Example
const value = helios.getPreferences();
setSessionNickname(nickname, id = this.sessionId) → {this}
Source: src/storage/HeliosStorageManager.js:1097
Set the session nickname setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
nickname | Value passed to setSessionNickname. | |||
id | optional | this.sessionId | Value passed to setSessionNickname. |
Returns
This instance.
TypethisgetSession(id)
Source: src/storage/HeliosStorageManager.js:2780
Returns the current session value or state.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to getSession. |
getResumeSessions(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2817
Read or set the get resume sessions setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current get resume sessions value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.getResumeSessions({
enabled: true,
});
getResumePrompt(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2846
Read or set the get resume prompt setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current get resume prompt value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.getResumePrompt({
enabled: true,
});
Utilities
Additional public helpers that do not belong to a narrower API area.
configure(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:944
Read or set the configure setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current configure value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.configure({
enabled: true,
});
updatePreferences(patch = {})
Source: src/storage/HeliosStorageManager.js:1015
Configures or reads update preferences.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
patch | optional | {} | Value passed to updatePreferences. |
acknowledgeSavedSnapshot(reason = 'save-acknowledged', options = {})
Source: src/storage/HeliosStorageManager.js:1558
Configures or reads acknowledge saved snapshot.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
reason | string | optional | 'save-acknowledged' | Reason for this operation. |
options | Object | optional | {} | Options object for this operation. |
debugStats(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:1825
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,
});
status()
Source: src/storage/HeliosStorageManager.js:1892
Configures or reads status.
persistenceStatus()
Source: src/storage/HeliosStorageManager.js:1896
Configures or reads persistence status.
deserializeSessionSnapshot(snapshot = {})
Source: src/storage/HeliosStorageManager.js:2272
Configures or reads deserialize session snapshot.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
snapshot | optional | {} | Value passed to deserializeSessionSnapshot. |
captureSessionThumbnail(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2276
Read or set the capture session thumbnail setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current capture session thumbnail value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.captureSessionThumbnail({
enabled: true,
});
configureSession(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2583
Read or set the configure session setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current configure session value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.configureSession({
enabled: true,
});
startNewSession(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2668
Read or set the start new session setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current start new session value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.startNewSession({
enabled: true,
});
flushPreviousSessionForSwitch(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2704
Read or set the flush previous session for switch setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current flush previous session for switch value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.flushPreviousSessionForSwitch({
enabled: true,
});
listSessions(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2787
Read or set the list sessions setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current list sessions value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.listSessions({
enabled: true,
});
listSessionSummaries(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2810
Read or set the list session summaries setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current list session summaries value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.listSessionSummaries({
enabled: true,
});
resumeSession(sessionId, options = {})
Source: src/storage/HeliosStorageManager.js:2862
Configures or reads resume session.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
sessionId | Value passed to resumeSession. | |||
options | Object | optional | {} | Options object for this operation. |
deleteSession(id)
Source: src/storage/HeliosStorageManager.js:2874
Configures or reads delete session.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to deleteSession. |
markSessionFinished(id = this.sessionId)
Source: src/storage/HeliosStorageManager.js:2885
Configures or reads mark session finished.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | optional | this.sessionId | Value passed to markSessionFinished. |
flush(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2910
Read or set the flush setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current flush value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.flush({
enabled: true,
});
sync(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2948
Read or set the sync setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current sync value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.sync({
enabled: true,
});
flushAutosync(options = {}) → {Object|this}
Source: src/storage/HeliosStorageManager.js:2952
Read or set the flush autosync setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current flush autosync value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.flushAutosync({
enabled: true,
});