New networkmaps in progress... (Parameters in scale)
This commit is contained in:
parent
53b0934c3e
commit
8b004f4808
|
@ -13,7 +13,7 @@ function draw_minimap() {
|
||||||
var relation_minimap_h = 2;
|
var relation_minimap_h = 2;
|
||||||
if (graph.nodes.length > 100) {
|
if (graph.nodes.length > 100) {
|
||||||
relation_min_nodes = 0.01;
|
relation_min_nodes = 0.01;
|
||||||
relation_minimap_w = 2.5;
|
relation_minimap_w = (graph.nodes.length / 100) * 2.5;
|
||||||
relation_minimap_h = 1.5;
|
relation_minimap_h = 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -920,7 +920,7 @@ function hide_labels_function() {
|
||||||
|
|
||||||
function show_labels_function() {
|
function show_labels_function() {
|
||||||
show_labels = true;
|
show_labels = true;
|
||||||
console.log("PINTA");
|
|
||||||
//Change the image arrow
|
//Change the image arrow
|
||||||
$("#hide_labels > a").attr("title", "Hide Labels");
|
$("#hide_labels > a").attr("title", "Hide Labels");
|
||||||
$("#image_hide_show_labels").attr("src", "images/icono_delete_networkmaps.png");
|
$("#image_hide_show_labels").attr("src", "images/icono_delete_networkmaps.png");
|
||||||
|
@ -1106,10 +1106,7 @@ function set_positions_graph() {
|
||||||
return d.y - (d.image_height / 2);
|
return d.y - (d.image_height / 2);
|
||||||
});
|
});
|
||||||
|
|
||||||
var position_text = 40;
|
var position_text = node_radius * 0.6;
|
||||||
if (node_radius > 100) {
|
|
||||||
position_text = 60;
|
|
||||||
}
|
|
||||||
|
|
||||||
node.selectAll(".node_text")
|
node.selectAll(".node_text")
|
||||||
.attr("x", function(d) {
|
.attr("x", function(d) {
|
||||||
|
@ -2724,10 +2721,7 @@ function draw_elements_graph() {
|
||||||
node_temp.append("title")
|
node_temp.append("title")
|
||||||
.text(function(d) {return d.text; });
|
.text(function(d) {return d.text; });
|
||||||
|
|
||||||
var font_size = "32px";
|
var font_size = node_radius / 1.8 + "px";
|
||||||
if (node_radius > 100) {
|
|
||||||
font_size = "64px";
|
|
||||||
}
|
|
||||||
|
|
||||||
node_temp.append("text")
|
node_temp.append("text")
|
||||||
.attr("class", "node_text")
|
.attr("class", "node_text")
|
||||||
|
|
Loading…
Reference in New Issue