HtmlForgeX

API Reference

Class

VisNetworkFitOptions

Namespace HtmlForgeX
Assembly HtmlForgeX

Options for the fit() method.

Inheritance

  • Object
  • VisNetworkFitOptions

Constructors

public VisNetworkFitOptions() #

Methods

WithAnimation 2 overloads
public VisNetworkFitOptions WithAnimation(Action<VisNetworkAnimationOptions> configure) #
Returns: VisNetworkFitOptions

Enables animation with default settings.

Parameters

enabled System.Boolean = true requiredposition: 0
WithAnimation(System.Action{HtmlForgeX.VisNetworkAnimationOptions} configure) #

Configures animation options.

Parameters

configure System.Action{HtmlForgeX.VisNetworkAnimationOptions} required
public VisNetworkFitOptions WithMaxZoomLevel(Double maxZoom) #
Returns: VisNetworkFitOptions

Sets the maximum zoom level.

Parameters

maxZoom System.Double requiredposition: 0
public VisNetworkFitOptions WithMinZoomLevel(Double minZoom) #
Returns: VisNetworkFitOptions

Sets the minimum zoom level.

Parameters

minZoom System.Double requiredposition: 0
public VisNetworkFitOptions WithNodes(params Object[] nodeIds) #
Returns: VisNetworkFitOptions

Sets the nodes to fit. If not specified, fits all nodes.

Parameters

nodeIds System.Object[] requiredposition: 0

Properties

public Object[] Nodes { get; set; } #
JsonPropertyName("nodes") JsonIgnore(Condition = 3)

Gets or sets the node identifiers to fit. When null, all nodes are used.

public Nullable<Double> MinZoomLevel { get; set; } #
JsonPropertyName("minZoomLevel") JsonIgnore(Condition = 3)

Gets or sets the minimum zoom level.

public Nullable<Double> MaxZoomLevel { get; set; } #
JsonPropertyName("maxZoomLevel") JsonIgnore(Condition = 3)

Gets or sets the maximum zoom level.

public Object Animation { get; set; } #
JsonPropertyName("animation") JsonIgnore(Condition = 3)

Gets or sets the animation configuration. Can be a boolean or a complex options object.