Skip to content

Commit

Permalink
Updated layout options to improve relative location of nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffyactive committed Sep 26, 2023
1 parent 7e07d58 commit 64f4038
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/charlotte.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ let charlotte = (function() {
animate: true,
animationDuration: 1600,
randomize: true,
idealEdgeLength: (edge) => {
return Math.max(1, MAX_EXPECTED_RSSI - edge.data('rssi'));
},
nodeRepulsion: (node) => { return 9000; },
edgeElasticity: (edge) => {
return 0.45 * MAX_EXPECTED_RSSI /
Math.min(MAX_EXPECTED_RSSI, edge.data('rssi')); },
padding: 24,
fixedNodeConstraint: []
};
Expand Down

0 comments on commit 64f4038

Please sign in to comment.