Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improved cose settings for hrr<100
  • Loading branch information
proost committed Nov 20, 2017
1 parent cf6bed0 commit 5bb35fb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions conekt/static/js/planet_graph.js
Expand Up @@ -71,8 +71,8 @@ $(function () { // on dom ready
elements: url !== undefined ? $.getJSON(url) : graph_data,
layout: {
name: 'cose',
padding: 30,
minNodeSpacing: 10,
padding: 60,
minNodeSpacing: 30,
avoidOverlap: false
},
ready: function () {
Expand Down Expand Up @@ -433,15 +433,15 @@ $(function () { // on dom ready
var layout = $(this).attr('layout');

cy.layout({name: layout,
padding: 30,
minNodeSpacing: 10,
padding: 60,
minNodeSpacing: 30,
animate: true,
avoidOverlap: false,
animationThreshold: 250,
//cose settings
nodeOverlap: 1,
idealEdgeLength: 5,
edgeElasticity: 10,
nodeOverlap: 8,
idealEdgeLength: 32,
edgeElasticity: 32,
numIter: 1000,
maxSimulationTime: 2000,
lengthFactor: 100
Expand Down

0 comments on commit 5bb35fb

Please sign in to comment.