Added the border to the nodes.

This commit is contained in:
mdtrooper 2016-05-17 11:46:07 +02:00
parent ce06e95900
commit cd6e8490fb
1 changed files with 8 additions and 2 deletions

View File

@ -910,14 +910,18 @@ NetworkmapController.prototype.paint_node = function(g_node, node) {
.attr("height", node['height']) .attr("height", node['height'])
.attr("width", node['width']) .attr("width", node['width'])
.attr("x", 0) .attr("x", 0)
.attr("y", 0); .attr("y", 0)
.style("stroke", "#000000")
.style("stroke-width", 1);
break; break;
case 'circle': case 'circle':
d3_node.append("circle") d3_node.append("circle")
.attr("r", node['width'] / 2) .attr("r", node['width'] / 2)
.attr("transform", "translate(" + .attr("transform", "translate(" +
node['width'] / 2 + " " + node['width'] / 2 + " " +
node['height'] / 2 + ")"); node['height'] / 2 + ")")
.style("stroke", "#000000")
.style("stroke-width", 1);
break; break;
case 'rhombus': case 'rhombus':
d3_node.append("rect") d3_node.append("rect")
@ -927,6 +931,8 @@ NetworkmapController.prototype.paint_node = function(g_node, node) {
.attr("width", node['width']) .attr("width", node['width'])
.attr("x", 0) .attr("x", 0)
.attr("y", 0) .attr("y", 0)
.style("stroke", "#000000")
.style("stroke-width", 1);
break; break;
} }