fix: Make orphan.url node non-clickable.

Fix #32
pull/62/head
Raphaël Vinot 2019-06-27 16:15:53 +02:00
parent f77f7188d1
commit 2a91111ac0
1 changed files with 6 additions and 3 deletions

View File

@ -344,15 +344,18 @@ function text_entry(relative_x_pos, relative_y_pos, onclick_callback, d) {
.style("font-size", "16px")
.attr("stroke-width", ".2px")
.style("opacity", .9)
.attr('cursor', 'pointer')
.attr("clip-path", "url(#textOverlay)")
.text(d => {
if (d.data.urls_count) {
return d.data.name + ' (' + d.data.urls_count + ')'
}
return d.data.name
})
.on('click',onclick_callback);
});
if (d.data.name != 'orphan.url'){
text_nodes
.attr('cursor', 'pointer')
.on('click', onclick_callback);
};
return nodeContent.node();
}