Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Commit

Permalink
generated dist files for v4.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamberk committed Oct 12, 2017
1 parent 3a2cf84 commit 0017167
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/vis-graph3d.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/vis-network.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vis-timeline-graph2d.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 15 additions & 10 deletions dist/vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* A dynamic, browser-based visualization library.
*
* @version 4.20.1-SNAPSHOT
* @version 4.21.0
* @date 2017-10-12
*
* @license
Expand Down Expand Up @@ -51009,6 +51009,20 @@ var ClusterEngine = function () {
value: function _cluster(childNodesObj, childEdgesObj, options) {
var refreshData = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;

// Remove nodes which are already clustered
var tmpNodesToRemove = [];
for (var _nodeId in childNodesObj) {
if (childNodesObj.hasOwnProperty(_nodeId)) {
if (this.clusteredNodes[_nodeId] !== undefined) {
tmpNodesToRemove.push(_nodeId);
}
}
}

for (var n = 0; n < tmpNodesToRemove.length; ++n) {
delete childNodesObj[tmpNodesToRemove[n]];
}

// kill condition: no nodes don't bother
if ((0, _keys2['default'])(childNodesObj).length == 0) {
return;
Expand All @@ -51019,15 +51033,6 @@ var ClusterEngine = function () {
return;
}

// check if this cluster call is not trying to cluster anything that is in another cluster.
for (var _nodeId in childNodesObj) {
if (childNodesObj.hasOwnProperty(_nodeId)) {
if (this.clusteredNodes[_nodeId] !== undefined) {
return;
}
}
}

var clusterNodeProperties = util.deepExtend({}, options.clusterNodeProperties);

// construct the clusterNodeProperties
Expand Down
2 changes: 1 addition & 1 deletion dist/vis.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/vis.min.js

Large diffs are not rendered by default.

0 comments on commit 0017167

Please sign in to comment.