Added a few modifications to move the footer when nodes table is too long and recolocate interface text with every movement to see it well
This commit is contained in:
parent
2cd8a790ca
commit
a67d40a447
|
@ -2310,6 +2310,7 @@ function init_drag_and_drop() {
|
||||||
graph.nodes[d.id].py = d.py + delta[1];
|
graph.nodes[d.id].py = d.py + delta[1];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
draw_elements_graph();
|
||||||
set_positions_graph();
|
set_positions_graph();
|
||||||
|
|
||||||
d3.event.sourceEvent.stopPropagation();
|
d3.event.sourceEvent.stopPropagation();
|
||||||
|
@ -2979,8 +2980,27 @@ function draw_elements_graph() {
|
||||||
.attr("xml:space", "preserve")
|
.attr("xml:space", "preserve")
|
||||||
.append("textPath")
|
.append("textPath")
|
||||||
.attr("xlink:href", function(d) {
|
.attr("xlink:href", function(d) {
|
||||||
|
if (d.source.x < d.target.x) {
|
||||||
return "#link_id_text_" + d.id_db + networkmap_id;
|
return "#link_id_text_" + d.id_db + networkmap_id;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return "#link_reverse_id_" + d.id_db + networkmap_id;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
.attr("startOffset", function(d) {
|
||||||
|
if (d.source.x < d.target.x) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return "85%";
|
||||||
|
}})
|
||||||
|
.attr("text-anchor", function(d) {
|
||||||
|
if (d.source.x < d.target.x) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return "end";
|
||||||
|
}})
|
||||||
.append("tspan")
|
.append("tspan")
|
||||||
.attr("style", "font-size: 12px; " +
|
.attr("style", "font-size: 12px; " +
|
||||||
"font-style:normal; " +
|
"font-style:normal; " +
|
||||||
|
@ -3005,8 +3025,27 @@ function draw_elements_graph() {
|
||||||
.attr("xml:space", "preserve")
|
.attr("xml:space", "preserve")
|
||||||
.append("textPath")
|
.append("textPath")
|
||||||
.attr("xlink:href", function(d) {
|
.attr("xlink:href", function(d) {
|
||||||
|
if (d.source.x < d.target.x) {
|
||||||
|
return "#link_id_text_" + d.id_db + networkmap_id;
|
||||||
|
}
|
||||||
|
else {
|
||||||
return "#link_reverse_id_" + d.id_db + networkmap_id;
|
return "#link_reverse_id_" + d.id_db + networkmap_id;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
.attr("startOffset", function(d) {
|
||||||
|
if (d.source.x < d.target.x) {
|
||||||
|
return "85%";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return "";
|
||||||
|
}})
|
||||||
|
.attr("text-anchor", function(d) {
|
||||||
|
if (d.source.x < d.target.x) {
|
||||||
|
return "end";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return "";
|
||||||
|
}})
|
||||||
.append("tspan")
|
.append("tspan")
|
||||||
.attr("style", "font-size: 12px; " +
|
.attr("style", "font-size: 12px; " +
|
||||||
"font-style:normal; " +
|
"font-style:normal; " +
|
||||||
|
|
|
@ -759,3 +759,18 @@ else {
|
||||||
show_networkmap($id, $user_readonly, $nodes_and_relations, $dash_mode, $map_dash_details);
|
show_networkmap($id, $user_readonly, $nodes_and_relations, $dash_mode, $map_dash_details);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("*").on("click", function(){
|
||||||
|
if($("[aria-describedby=dialog_node_edit]").css('display') == 'block'){
|
||||||
|
$('#foot').css({'top':$("[aria-describedby=dialog_node_edit]").height()-150,'position':'relative'});
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$('#foot').css({'position':'','top':'0'});
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Reference in New Issue