mirror of https://github.com/CIRCL/lookyloo
parent
f77f7188d1
commit
2a91111ac0
|
@ -344,15 +344,18 @@ function text_entry(relative_x_pos, relative_y_pos, onclick_callback, d) {
|
||||||
.style("font-size", "16px")
|
.style("font-size", "16px")
|
||||||
.attr("stroke-width", ".2px")
|
.attr("stroke-width", ".2px")
|
||||||
.style("opacity", .9)
|
.style("opacity", .9)
|
||||||
.attr('cursor', 'pointer')
|
|
||||||
.attr("clip-path", "url(#textOverlay)")
|
.attr("clip-path", "url(#textOverlay)")
|
||||||
.text(d => {
|
.text(d => {
|
||||||
if (d.data.urls_count) {
|
if (d.data.urls_count) {
|
||||||
return d.data.name + ' (' + d.data.urls_count + ')'
|
return d.data.name + ' (' + d.data.urls_count + ')'
|
||||||
}
|
}
|
||||||
return d.data.name
|
return d.data.name
|
||||||
})
|
});
|
||||||
|
if (d.data.name != 'orphan.url'){
|
||||||
|
text_nodes
|
||||||
|
.attr('cursor', 'pointer')
|
||||||
.on('click', onclick_callback);
|
.on('click', onclick_callback);
|
||||||
|
};
|
||||||
return nodeContent.node();
|
return nodeContent.node();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue