mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed identical text to multiple links delimiter
This commit is contained in:
parent
9512d61e16
commit
311143067a
@ -172,7 +172,6 @@ function delete_link(source_id, source_module_id, target_id, target_module_id, i
|
|||||||
init_drag_and_drop();
|
init_drag_and_drop();
|
||||||
set_positions_graph();
|
set_positions_graph();
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#dialog_node_edit").dialog("close");
|
$("#dialog_node_edit").dialog("close");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -1188,8 +1187,8 @@ function set_positions_graph() {
|
|||||||
var arcScale = d3.scale.ordinal()
|
var arcScale = d3.scale.ordinal()
|
||||||
.domain(siblings)
|
.domain(siblings)
|
||||||
.rangePoints([1, siblingCount]);
|
.rangePoints([1, siblingCount]);
|
||||||
drx = drx/(1 + (1/siblingCount) * (arcScale(d.text_start) - 1));
|
drx = drx/(1 + (1/siblingCount) * (arcScale(d.text_start + d.id_db + networkmap_id) - 1));
|
||||||
dry = dry/(1 + (1/siblingCount) * (arcScale(d.text_start) - 1));
|
dry = dry/(1 + (1/siblingCount) * (arcScale(d.text_start + d.id_db + networkmap_id) - 1));
|
||||||
|
|
||||||
return "M" + x1 + "," + y1 + "A" + drx + ", " + dry + " " + xRotation + ", " + largeArc + ", " + sweep + " " + x2 + "," + y2;
|
return "M" + x1 + "," + y1 + "A" + drx + ", " + dry + " " + xRotation + ", " + largeArc + ", " + sweep + " " + x2 + "," + y2;
|
||||||
}
|
}
|
||||||
@ -1216,7 +1215,7 @@ function set_positions_graph() {
|
|||||||
var siblings = [];
|
var siblings = [];
|
||||||
for(var i = 0; i < graph.links.length; ++i){
|
for(var i = 0; i < graph.links.length; ++i){
|
||||||
if( (graph.links[i].source.id == source.id && graph.links[i].target.id == target.id) || (graph.links[i].source.id == target.id && graph.links[i].target.id == source.id) )
|
if( (graph.links[i].source.id == source.id && graph.links[i].target.id == target.id) || (graph.links[i].source.id == target.id && graph.links[i].target.id == source.id) )
|
||||||
siblings.push(graph.links[i].text_start);
|
siblings.push(graph.links[i].text_start + graph.links[i].id_db + networkmap_id);
|
||||||
}
|
}
|
||||||
return siblings;
|
return siblings;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user