Skip to content

GpuForcePositionDelegate

class

Back to Helios Web API

Kind
class
Source
src/delegates/GpuForcePositionDelegate.js:5279

Description

Position delegate used by GPU force layouts.

Signature

export class GpuForcePositionDelegate extends PositionDelegate {

Parameters

NameTypeAttributesDefaultDescription
optionsObjectoptionalGPU force layout delegate options and resource handles.

Returns

Delegate that synchronizes graph topology to GPU buffers and exposes position snapshots to Helios renderers.

Type GpuForcePositionDelegate

Notes

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

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to resetDynamicStateFromNetwork.

Returns

This instance.

Type this

Network 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

NameTypeAttributesDefaultDescription
networkHeliosNetworkNetwork instance to read from or mutate.

synchronizeNodePositionsToNetwork(context = {})

Source: src/delegates/GpuForcePositionDelegate.js:6257

Configures or reads synchronize node positions to network.

Parameters

NameTypeAttributesDefaultDescription
contextoptional{}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

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to getNodePositionView.

getWebGPUPositionBuffer(context = {})

Source: src/delegates/GpuForcePositionDelegate.js:5954

Returns the current web gpuposition buffer value or state.

Parameters

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to getWebGPUPositionBuffer.

getWebGLPositionTexture(context = {})

Source: src/delegates/GpuForcePositionDelegate.js:5966

Returns the current web glposition texture value or state.

Parameters

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to getWebGLPositionTexture.

getGpuPositionResource(context = {})

Source: src/delegates/GpuForcePositionDelegate.js:5979

Returns the current gpu position resource value or state.

Parameters

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to getGpuPositionResource.

snapshotNodePositions(context = {})

Source: src/delegates/GpuForcePositionDelegate.js:5992

Configures or reads snapshot node positions.

Parameters

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to snapshotNodePositions.

snapshotNodePositionsById(context = {}, nodeIds = [], options = {})

Source: src/delegates/GpuForcePositionDelegate.js:6079

Configures or reads snapshot node positions by id.

Parameters

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to snapshotNodePositionsById.
nodeIdsArray<number>|TypedArrayoptional[]Node or edge identifiers/indices used by the operation.
optionsObjectoptional{}Options object for this operation.

writePositionSnapshot(snapshot, options = {})

Source: src/delegates/GpuForcePositionDelegate.js:6241

Configures or reads write position snapshot.

Parameters

NameTypeAttributesDefaultDescription
snapshotValue passed to writePositionSnapshot.
optionsObjectoptional{}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

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to flattenNodeDepthToPlane.
zValueoptional0Value passed to flattenNodeDepthToPlane.

injectPlanarDepthJitter(context = {}, amplitude = 0)

Source: src/delegates/GpuForcePositionDelegate.js:6323

Configures or reads inject planar depth jitter.

Parameters

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to injectPlanarDepthJitter.
amplitudeoptional0Value 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.

Type this

getCompletedEpochs()

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

NameTypeAttributesDefaultDescription
reasonstringoptional'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

NameTypeAttributesDefaultDescription
nextoptional{}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

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to synchronizeTopology.

step(context = {})

Source: src/delegates/GpuForcePositionDelegate.js:5730

Configures or reads step.

Parameters

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to step.

snapshotNodeCentroidById(context = {}, nodeIds = [], options = {})

Source: src/delegates/GpuForcePositionDelegate.js:6153

Configures or reads snapshot node centroid by id.

Parameters

NameTypeAttributesDefaultDescription
contextoptional{}Value passed to snapshotNodeCentroidById.
nodeIdsArray<number>|TypedArrayoptional[]Node or edge identifiers/indices used by the operation.
optionsObjectoptional{}Options object for this operation.