diff --git a/dist/vis.js b/dist/vis.js index 3cf99959..c2c4bd28 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -12287,6 +12287,7 @@ var barnesHutMixin = { mass:0, range: {minX:centerX-halfRootSize,maxX:centerX+halfRootSize, minY:centerY-halfRootSize,maxY:centerY+halfRootSize}, + size: rootSize, calcSize: 1 / rootSize, children: {data:null}, @@ -12363,7 +12364,6 @@ var barnesHutMixin = { parentBranch.children[region].children.data.y == node.y) { node.x += Math.random(); node.y += Math.random(); - this._placeInTree(parentBranch,node, true); } else { this._splitBranch(parentBranch.children[region]); diff --git a/src/graph/graphMixins/physics/BarnesHut.js b/src/graph/graphMixins/physics/BarnesHut.js index 5a06e26d..1e21670d 100644 --- a/src/graph/graphMixins/physics/BarnesHut.js +++ b/src/graph/graphMixins/physics/BarnesHut.js @@ -133,6 +133,7 @@ var barnesHutMixin = { mass:0, range: {minX:centerX-halfRootSize,maxX:centerX+halfRootSize, minY:centerY-halfRootSize,maxY:centerY+halfRootSize}, + size: rootSize, calcSize: 1 / rootSize, children: {data:null}, @@ -209,7 +210,6 @@ var barnesHutMixin = { parentBranch.children[region].children.data.y == node.y) { node.x += Math.random(); node.y += Math.random(); - this._placeInTree(parentBranch,node, true); } else { this._splitBranch(parentBranch.children[region]);