Working in the networkmap nodes.

This commit is contained in:
mdtrooper 2016-04-05 12:35:22 +02:00
parent 6d265e78ae
commit 7229b5ecd9
1 changed files with 9 additions and 1 deletions

View File

@ -430,7 +430,7 @@ NetworkmapController.prototype.paint_node = function(g_node, node) {
//Title position
var title_bbox = d3_node_title.node().getBBox();
console.log(node['title'], title_bbox);
var x = node['width'] / 2 - title_bbox.width / 2;
var y = node['height'] - title_bbox.y;
@ -439,6 +439,14 @@ NetworkmapController.prototype.paint_node = function(g_node, node) {
d3_node
.style("fill", node['color']);
d3_node
.append("image")
.attr("xlink:href", "http://192.168.70.147/pandora_console/images/networkmap/so_linux.png")
.attr("x", 0)
.attr("y", 0)
.attr("height", node['height'])
.attr("width", node['width']);
}
/**