three-forcegraph
Advanced tools
Comparing version 1.16.0 to 1.16.1
@@ -987,3 +987,3 @@ 'use strict'; | ||
var maxDepth = Math.max.apply(Math, _toConsumableArray(Object.values(nodeDepths || []))); | ||
var dagLevelDistance = state.dagLevelDistance || state.graphData.nodes.length / maxDepth * DAG_LEVEL_NODE_RATIO * (['radialin', 'radialout'].indexOf(state.dagMode) !== -1 ? 0.7 : 1); // Fix nodes to x,y,z for dag mode | ||
var dagLevelDistance = state.dagLevelDistance || state.graphData.nodes.length / (maxDepth || 1) * DAG_LEVEL_NODE_RATIO * (['radialin', 'radialout'].indexOf(state.dagMode) !== -1 ? 0.7 : 1); // Fix nodes to x,y,z for dag mode | ||
@@ -990,0 +990,0 @@ if (state.dagMode) { |
@@ -983,3 +983,3 @@ import { schemePaired } from 'd3-scale-chromatic'; | ||
var maxDepth = Math.max.apply(Math, _toConsumableArray(Object.values(nodeDepths || []))); | ||
var dagLevelDistance = state.dagLevelDistance || state.graphData.nodes.length / maxDepth * DAG_LEVEL_NODE_RATIO * (['radialin', 'radialout'].indexOf(state.dagMode) !== -1 ? 0.7 : 1); // Fix nodes to x,y,z for dag mode | ||
var dagLevelDistance = state.dagLevelDistance || state.graphData.nodes.length / (maxDepth || 1) * DAG_LEVEL_NODE_RATIO * (['radialin', 'radialout'].indexOf(state.dagMode) !== -1 ? 0.7 : 1); // Fix nodes to x,y,z for dag mode | ||
@@ -986,0 +986,0 @@ if (state.dagMode) { |
{ | ||
"name": "three-forcegraph", | ||
"version": "1.16.0", | ||
"version": "1.16.1", | ||
"description": "Force-directed graph as a ThreeJS 3d object", | ||
@@ -5,0 +5,0 @@ "unpkg": "dist/three-forcegraph.min.js", |
@@ -631,3 +631,3 @@ import { | ||
const dagLevelDistance = state.dagLevelDistance || ( | ||
state.graphData.nodes.length / maxDepth * DAG_LEVEL_NODE_RATIO | ||
state.graphData.nodes.length / (maxDepth || 1) * DAG_LEVEL_NODE_RATIO | ||
* (['radialin', 'radialout'].indexOf(state.dagMode) !== -1 ? 0.7 : 1) | ||
@@ -634,0 +634,0 @@ ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1362921