New networkmaps in progress... (Added parameter to node distances)

This commit is contained in:
Arturo Gonzalez 2016-10-07 14:13:16 +02:00
parent b20ecce66a
commit 969c80ee87
2 changed files with 9 additions and 3 deletions

View File

@ -1467,10 +1467,9 @@ function networkmap_open_graph ($layout, $nooverlap, $pure, $zoom,
$head .= "outputorder=edgesfirst;";
}
$head .= "ranksep=0.05;";
$head .= "ratio=fill;";
$head .= "root=0;";
$head .= "nodesep=0.5;";
$head .= "nodesep=\"0.5\";";
$head .= "size=\"$size\";";
$head .= "\n";

View File

@ -1334,7 +1334,14 @@ function show_menu(item, data) {
}
},
"callback": function(key, options) {
set_parent(data);
var selection = d3.selectAll('.node_selected');
selection = selection[0];
if (selection.length > 1) {
alert("Yo no tengo dedo, por eso no poido trabajo");
}
else {
set_parent(data);
}
}
};
}