diff --git a/docs/network/index.html b/docs/network/index.html index fc55fa87..80b8ac47 100644 --- a/docs/network/index.html +++ b/docs/network/index.html @@ -1021,13 +1021,13 @@ var locales = {

The options object supplied to the cluster functions can contain these properties:

- + - + - + - + - +
NameName Type Description
joinCondition(
  nodeOptions: Object
)
FunctionFunction Optional for all but the cluster method. The cluster module loops over all nodes that are selected to be in the cluster and calls this function with their data as argument. If this function returns true, this node will be added to the cluster. You have access to all @@ -1056,7 +1056,7 @@ network.clustering.cluster(options);
processProperties(
  nodeOptions: Object
)
FunctionFunction Optional. Before creating the new cluster node, this (optional) function will be called with the properties supplied by you (clusterNodeProperties), all contained nodes and all @@ -1069,12 +1069,15 @@ network.clustering.cluster(options); cluster:
 var options = {
-  processProperties: function (clusterOptions, childNodes, childEdges) {
+  processProperties: function (clusterOptions,
+      childNodes, childEdges) {
     var totalMass = 0;
     var totalValue = 0;
     for (var i = 0; i < childNodes.length; i++) {
-        totalMass += childNodes[i].mass;
-        totalValue = childNodes[i].value ? totalValue + childNodes[i].value : totalValue;
+      totalMass += childNodes[i].mass;
+      totalValue = childNodes[i].value
+        ? totalValue + childNodes[i].value
+        : totalValue;
     }
     clusterOptions.mass = totalMass;
     if (totalValue > 0) {
@@ -1088,7 +1091,7 @@ var options = {
             
clusterNodePropertiesObjectObject Optional. This is an object containing the options for the cluster node. All options described in the nodes module are allowed. This allows you to style your cluster @@ -1100,7 +1103,7 @@ var options = {
clusterEdgePropertiesObjectObject Optional. This is an object containing the options for the edges connected to the cluster. All options described in the edges module are allowed. Using this, you can