API Reference
VisNetworkClusteringOptions
Represents clustering configuration for VisNetwork.
Inheritance
- Object
- VisNetworkClusteringOptions
Constructors
public VisNetworkClusteringOptions() #Methods
public VisNetworkClusteringOptions WithClusterEdgeProperties(Action<VisNetworkEdgeOptions> configure) #VisNetworkClusteringOptionsSets the properties for edges connected to the cluster.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkEdgeOptions}
public VisNetworkClusteringOptions WithClusterNodeProperties(Action<VisNetworkNodeOptions> configure) #VisNetworkClusteringOptionsSets the properties for the cluster node.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkNodeOptions}
public VisNetworkClusteringOptions WithJoinCondition(String jsFunction) #VisNetworkClusteringOptionsSets the join condition function that determines which nodes to include in the cluster.
Parameters
- jsFunction System.String
- JavaScript function that receives (nodeOptions, childNodeOptions) and returns boolean
public VisNetworkClusteringOptions WithProcessProperties(String jsFunction) #VisNetworkClusteringOptionsSets the process properties function that modifies cluster node properties based on contained nodes.
Parameters
- jsFunction System.String
- JavaScript function that receives (clusterOptions, childNodesOptions, childEdgesOptions)
Inherited Methods
Properties
public VisNetworkNodeOptions ClusterNodeProperties { get; set; } #JsonPropertyName("clusterNodeProperties") JsonIgnore(Condition = 3)Gets or sets the cluster node properties that will be applied to the created cluster.
public VisNetworkEdgeOptions ClusterEdgeProperties { get; set; } #JsonPropertyName("clusterEdgeProperties") JsonIgnore(Condition = 3)Gets or sets the cluster edge properties that will be applied to edges connected to the cluster.
public String JoinCondition { get; set; } #JsonIgnoreGets or sets the JavaScript function that determines which nodes to include in the cluster. The function should return true to include the node.
public String ProcessProperties { get; set; } #JsonIgnoreGets or sets the JavaScript function that processes cluster node properties. This allows dynamic modification of cluster properties based on contained nodes.