Skip to content
ChartForgeX
Class

GraphRepulsionPhysicsOptions

ChartForgeX.Interactivity

Namespace
ChartForgeX.Interactivity
Assembly
ChartForgeX.Interactivity
Modifiers
sealed
Attributes
Fluent

Configures direct distance-limited node repulsion and edge springs.

Inheritance

Usage

Explore 31 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 16

Constructors

public GraphRepulsionPhysicsOptions() #

Creates vis-network-like direct repulsion defaults.

Properties

public double NodeDistance { get; set; } #

Gets or sets the effective radius of each node's repulsion field.

public double Strength { get; set; } #

Gets or sets a multiplier for direct repulsion forces.

Extension Methods

public static GraphRepulsionPhysicsOptions AvoidOverlap(GraphRepulsionPhysicsOptions graphRepulsionPhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.AvoidOverlap: Gets or sets how strongly node dimensions contribute to collision avoidance, from zero to one.

Parameters

graphRepulsionPhysicsOptions ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphRepulsionPhysicsOptions The same instance.

Examples

// C# initializer or property                                                                   // C# fluent
new global::ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions { AvoidOverlap = value };    graphRepulsionPhysicsOptions.AvoidOverlap(value);
public static GraphRepulsionPhysicsOptions CentralGravity(GraphRepulsionPhysicsOptions graphRepulsionPhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.CentralGravity: Gets or sets the attraction toward the graph center.

Parameters

graphRepulsionPhysicsOptions ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphRepulsionPhysicsOptions The same instance.

Examples

// C# initializer or property                                                                     // C# fluent
new global::ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions { CentralGravity = value };    graphRepulsionPhysicsOptions.CentralGravity(value);
public static GraphRepulsionPhysicsOptions Damping(GraphRepulsionPhysicsOptions graphRepulsionPhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.Damping: Gets or sets how much velocity is discarded per simulation tick.

Parameters

graphRepulsionPhysicsOptions ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphRepulsionPhysicsOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions { Damping = value };    graphRepulsionPhysicsOptions.Damping(value);
public static GraphRepulsionPhysicsOptions NodeDistance(GraphRepulsionPhysicsOptions graphRepulsionPhysicsOptions, double value) #

Sets GraphRepulsionPhysicsOptions.NodeDistance: Gets or sets the effective radius of each node's repulsion field.

Parameters

graphRepulsionPhysicsOptions ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphRepulsionPhysicsOptions The same instance.

Examples

// C# initializer or property                                                                   // C# fluent
new global::ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions { NodeDistance = value };    graphRepulsionPhysicsOptions.NodeDistance(value);
public static GraphRepulsionPhysicsOptions SpringConstant(GraphRepulsionPhysicsOptions graphRepulsionPhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.SpringConstant: Gets or sets the strength of edge springs.

Parameters

graphRepulsionPhysicsOptions ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphRepulsionPhysicsOptions The same instance.

Examples

// C# initializer or property                                                                     // C# fluent
new global::ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions { SpringConstant = value };    graphRepulsionPhysicsOptions.SpringConstant(value);
public static GraphRepulsionPhysicsOptions SpringLength(GraphRepulsionPhysicsOptions graphRepulsionPhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.SpringLength: Gets or sets the resting length of physics-enabled edges.

Parameters

graphRepulsionPhysicsOptions ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphRepulsionPhysicsOptions The same instance.

Examples

// C# initializer or property                                                                   // C# fluent
new global::ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions { SpringLength = value };    graphRepulsionPhysicsOptions.SpringLength(value);
public static GraphRepulsionPhysicsOptions Strength(GraphRepulsionPhysicsOptions graphRepulsionPhysicsOptions, double value) #

Sets GraphRepulsionPhysicsOptions.Strength: Gets or sets a multiplier for direct repulsion forces.

Parameters

graphRepulsionPhysicsOptions ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphRepulsionPhysicsOptions The same instance.

Examples

// C# initializer or property                                                               // C# fluent
new global::ChartForgeX.Interactivity.GraphRepulsionPhysicsOptions { Strength = value };    graphRepulsionPhysicsOptions.Strength(value);