GpuForcePositionDelegate
- Kind
- class
- Source
- src/delegates/GpuForcePositionDelegate.js:5279
Description
Position delegate used by GPU force layouts.
Signature
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | GPU force layout delegate options and resource handles. |
Returns
Delegate that synchronizes graph topology to GPU buffers and exposes position snapshots to Helios renderers.
TypeGpuForcePositionDelegateNotes
This is a low-level extension point. Most applications configure it
indirectly through GpuForceLayout or LayoutBehavior.
Filtering And State
Graph filtering and interaction state. When active, FilterBehavior and SelectionBehavior coordinate this area.
resetDynamicStateFromNetwork(context = {}) → {this}
Source: src/delegates/GpuForcePositionDelegate.js:5464
Updates the dynamic state from network state on the current instance.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to resetDynamicStateFromNetwork. |
Returns
This instance.
TypethisNetwork And Persistence
Network replacement, serialization, and visualization state persistence. ExporterBehavior and InterfaceBehavior can surface parts of this flow in the UI.
captureNetworkVersionSnapshot(network)
Source: src/delegates/GpuForcePositionDelegate.js:5523
Configures or reads capture network version snapshot.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
network | HeliosNetwork | Network instance to read from or mutate. |
synchronizeNodePositionsToNetwork(context = {})
Source: src/delegates/GpuForcePositionDelegate.js:6257
Configures or reads synchronize node positions to network.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to synchronizeNodePositionsToNetwork. |
Layout And Positions
Layout selection, position sources, interpolation, and position snapshots. LayoutBehavior handles the built-in layout UI.
getNodePositionView(context = {})
Source: src/delegates/GpuForcePositionDelegate.js:5941
Returns the current node position view value or state.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to getNodePositionView. |
getWebGPUPositionBuffer(context = {})
Source: src/delegates/GpuForcePositionDelegate.js:5954
Returns the current web gpuposition buffer value or state.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to getWebGPUPositionBuffer. |
getWebGLPositionTexture(context = {})
Source: src/delegates/GpuForcePositionDelegate.js:5966
Returns the current web glposition texture value or state.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to getWebGLPositionTexture. |
getGpuPositionResource(context = {})
Source: src/delegates/GpuForcePositionDelegate.js:5979
Returns the current gpu position resource value or state.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to getGpuPositionResource. |
snapshotNodePositions(context = {})
Source: src/delegates/GpuForcePositionDelegate.js:5992
Configures or reads snapshot node positions.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to snapshotNodePositions. |
snapshotNodePositionsById(context = {}, nodeIds = [], options = {})
Source: src/delegates/GpuForcePositionDelegate.js:6079
Configures or reads snapshot node positions by id.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to snapshotNodePositionsById. | |
nodeIds | Array<number>|TypedArray | optional | [] | Node or edge identifiers/indices used by the operation. |
options | Object | optional | {} | Options object for this operation. |
writePositionSnapshot(snapshot, options = {})
Source: src/delegates/GpuForcePositionDelegate.js:6241
Configures or reads write position snapshot.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
snapshot | Value passed to writePositionSnapshot. | |||
options | Object | optional | {} | Options object for this operation. |
Appearance
Visual rendering settings for nodes, edges, labels, legends, density, shading, and background. AppearanceBehavior, LabelsBehavior, and LegendsBehavior cover the built-in controls.
flattenNodeDepthToPlane(context = {}, zValue = 0)
Source: src/delegates/GpuForcePositionDelegate.js:6282
Configures or reads flatten node depth to plane.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to flattenNodeDepthToPlane. | |
zValue | optional | 0 | Value passed to flattenNodeDepthToPlane. |
injectPlanarDepthJitter(context = {}, amplitude = 0)
Source: src/delegates/GpuForcePositionDelegate.js:6323
Configures or reads inject planar depth jitter.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to injectPlanarDepthJitter. | |
amplitude | optional | 0 | Value passed to injectPlanarDepthJitter. |
Configuration
General configuration setters and compatibility helpers.
resetAnnealing() → {this}
Source: src/delegates/GpuForcePositionDelegate.js:5473
Updates the annealing state on the current instance.
Returns
This instance.
TypethisgetCompletedEpochs()
Source: src/delegates/GpuForcePositionDelegate.js:5484
Returns the current completed epochs value or state.
Example
const value = helios.getCompletedEpochs();
Utilities
Additional public helpers that do not belong to a narrower API area.
markTopologyDirty(reason = 'manual')
Source: src/delegates/GpuForcePositionDelegate.js:5343
Configures or reads mark topology dirty.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
reason | string | optional | 'manual' | Reason for this operation. |
didDetach()
Source: src/delegates/GpuForcePositionDelegate.js:5354
Configures or reads did detach.
updateOptions(next = {})
Source: src/delegates/GpuForcePositionDelegate.js:5358
Configures or reads update options.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
next | optional | {} | Value passed to updateOptions. |
dispose()
Source: src/delegates/GpuForcePositionDelegate.js:5427
Configures or reads dispose.
synchronizeTopology(context = {})
Source: src/delegates/GpuForcePositionDelegate.js:5587
Configures or reads synchronize topology.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to synchronizeTopology. |
step(context = {})
Source: src/delegates/GpuForcePositionDelegate.js:5730
Configures or reads step.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to step. |
snapshotNodeCentroidById(context = {}, nodeIds = [], options = {})
Source: src/delegates/GpuForcePositionDelegate.js:6153
Configures or reads snapshot node centroid by id.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context | optional | {} | Value passed to snapshotNodeCentroidById. | |
nodeIds | Array<number>|TypedArray | optional | [] | Node or edge identifiers/indices used by the operation. |
options | Object | optional | {} | Options object for this operation. |