Browse Source

tweaked function naming

flowchartTest
Alex de Mulder 9 years ago
parent
commit
ba6ba69602
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/network/modules/LayoutEngine.js

+ 3
- 3
lib/network/modules/LayoutEngine.js View File

@ -331,7 +331,7 @@ class LayoutEngine {
if (this.body.nodes.hasOwnProperty(nodeId)) {
node = this.body.nodes[nodeId];
if (node.edges.length === hubSize) {
this._setLevel(0, node);
this._setLevelByHubsize(0, node);
}
}
}
@ -347,7 +347,7 @@ class LayoutEngine {
* @param parentId
* @private
*/
_setLevel(level, node) {
_setLevelByHubsize(level, node) {
if (this.hierarchicalLevels[node.id] !== undefined)
return;
@ -360,7 +360,7 @@ class LayoutEngine {
else {
childNode = node.edges[i].to;
}
this._setLevel(level + 1, childNode);
this._setLevelByHubsize(level + 1, childNode);
}
}

Loading…
Cancel
Save