|
@ -12287,6 +12287,7 @@ var barnesHutMixin = { |
|
|
mass:0, |
|
|
mass:0, |
|
|
range: {minX:centerX-halfRootSize,maxX:centerX+halfRootSize, |
|
|
range: {minX:centerX-halfRootSize,maxX:centerX+halfRootSize, |
|
|
minY:centerY-halfRootSize,maxY:centerY+halfRootSize}, |
|
|
minY:centerY-halfRootSize,maxY:centerY+halfRootSize}, |
|
|
|
|
|
|
|
|
size: rootSize, |
|
|
size: rootSize, |
|
|
calcSize: 1 / rootSize, |
|
|
calcSize: 1 / rootSize, |
|
|
children: {data:null}, |
|
|
children: {data:null}, |
|
@ -12363,7 +12364,6 @@ var barnesHutMixin = { |
|
|
parentBranch.children[region].children.data.y == node.y) { |
|
|
parentBranch.children[region].children.data.y == node.y) { |
|
|
node.x += Math.random(); |
|
|
node.x += Math.random(); |
|
|
node.y += Math.random(); |
|
|
node.y += Math.random(); |
|
|
this._placeInTree(parentBranch,node, true); |
|
|
|
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
this._splitBranch(parentBranch.children[region]); |
|
|
this._splitBranch(parentBranch.children[region]); |
|
|