New networkmaps in progress... (Changed some visual styles)

This commit is contained in:
Arturo Gonzalez 2016-10-04 12:40:03 +02:00
parent 6f21649bb2
commit 50bdad682d
3 changed files with 9 additions and 12 deletions

View File

@ -1353,7 +1353,7 @@ function networkmap_create_pandora_node ($name, $font_size = 10, $simple = 0, $s
}
$stats_json = base64_encode(json_encode($summary));
$img_src = "images/networkmap/pandora_node.png";
$img_src = "images/networkmap/bola_pandora_network_maps.png";
if (defined('METACONSOLE')) {
$url_tooltip = '../../ajax.php?' .
@ -1372,11 +1372,11 @@ function networkmap_create_pandora_node ($name, $font_size = 10, $simple = 0, $s
if ($hack_networkmap_mobile) {
$img = '<TR><TD>' .
"<img src='" . $config['homedir'] . '/' . "images/networkmap/pandora_node.png' />" .
"<img src='" . $config['homedir'] . '/' . "images/networkmap/bola_pandora_network_maps.png' />" .
'</TD></TR>';
}
else {
$image = html_print_image("images/networkmap/pandora_node.png", true, false, false, true);
$image = html_print_image("images/networkmap/bola_pandora_network_maps.png", true, false, false, true);
//$image = str_replace('"',"'",$image);
$img = '<TR><TD>' . $image . '</TD></TR>';
}

View File

@ -1088,7 +1088,7 @@ function show_networkmap($id = 0, $user_readonly = false, $nodes_and_relations =
echo '<div id="networkconsole" style="position: relative; overflow: hidden; background: #FAFAFA">';
echo '<canvas id="minimap"
style="position: absolute; left: 0px; top: 0px; border: 1px solid #3a4a70;">
style="position: absolute; left: 0px; top: 0px; border: 1px solid #bbbbbb;">
</canvas>';
echo '<div id="arrow_minimap" style="position: absolute; left: 0px; top: 0px;">
@ -1111,7 +1111,7 @@ function show_networkmap($id = 0, $user_readonly = false, $nodes_and_relations =
}
.node_selected {
stroke:#000096;
stroke:#999;
stroke-width:3;
}

View File

@ -8,7 +8,6 @@ function draw_minimap() {
context_minimap.fillStyle = "#ddd";
context_minimap.fillRect(0, 0, minimap_w, minimap_h);
//Draw the items and lines
jQuery.each(graph.nodes, function (key, value) {
if (typeof(value) == 'undefined') return;
@ -32,7 +31,7 @@ function draw_minimap() {
//Draw the rect of viewport
context_minimap.beginPath();
context_minimap.strokeStyle = "#f00";
context_minimap.strokeStyle = "#3f3f3f";
context_minimap.strokeRect(
(-translation[0] / scale) * minimap_relation,
(-translation[1] / scale) * minimap_relation,
@ -40,7 +39,7 @@ function draw_minimap() {
height_svg * minimap_relation / scale);
context_minimap.beginPath();
context_minimap.strokeStyle = "#0f0";
context_minimap.strokeStyle = "#82B92E";
context_minimap.strokeRect(
(networkmap_dimensions[0] + node_radius - holding_area_dimensions[0]) * minimap_relation,
(networkmap_dimensions[1] + node_radius - holding_area_dimensions[1]) * minimap_relation,
@ -863,8 +862,7 @@ function add_agent_node(agents) {
}
}
function toggle_minimap() {
function toggle_minimap() {
if (show_minimap) {
function_close_minimap();
}
@ -1910,7 +1908,7 @@ function init_graph(parameter_object) {
window.show_minimap = false;
window.context_minimap;
window.holding_area_dimensions = [100, 100];
window.holding_area_dimensions = [200, 200];
if (typeof(parameter_object.holding_area_dimensions) != "undefined") {
window.holding_area_dimensions = parameter_object.holding_area_dimensions;
}
@ -2707,7 +2705,6 @@ function choose_group_for_show_agents() {
}
}
////////////////////////////////////////////////////////////////////////
// Old code for the details node
////////////////////////////////////////////////////////////////////////