API Reference
Class
VisNetworkFitOptions
Options for the fit() method.
Inheritance
- Object
- VisNetworkFitOptions
Constructors
public VisNetworkFitOptions() #Methods
WithAnimation 2 overloads
public VisNetworkFitOptions WithAnimation(Action<VisNetworkAnimationOptions> configure) #Returns:
VisNetworkFitOptionsEnables animation with default settings.
Parameters
- enabled System.Boolean = true
WithAnimation(System.Action{HtmlForgeX.VisNetworkAnimationOptions} configure) #Configures animation options.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkAnimationOptions}
public VisNetworkFitOptions WithMaxZoomLevel(Double maxZoom) #Returns:
VisNetworkFitOptionsSets the maximum zoom level.
Parameters
- maxZoom System.Double
public VisNetworkFitOptions WithMinZoomLevel(Double minZoom) #Returns:
VisNetworkFitOptionsSets the minimum zoom level.
Parameters
- minZoom System.Double
public VisNetworkFitOptions WithNodes(params Object[] nodeIds) #Returns:
VisNetworkFitOptionsSets the nodes to fit. If not specified, fits all nodes.
Parameters
- nodeIds System.Object[]
Inherited Methods
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.