diff --git a/src/Visualisations/ForceDirectedG.ts b/src/Visualisations/ForceDirectedG.ts index dedea21a..428b712c 100644 --- a/src/Visualisations/ForceDirectedG.ts +++ b/src/Visualisations/ForceDirectedG.ts @@ -152,8 +152,21 @@ export const forceDirectedG = ( .selectAll("circle") .data(nodes) .join("circle") + .attr("stroke", (d) => { + if (nameFromIndex(d) === currFile.basename) { + return "#ffffff"; + } else { + return nodeColour; + } + }) .attr("r", 5) - .attr("fill", nodeColour) + .attr("fill", (d) => { + if (nameFromIndex(d) === currFile.basename) { + return "#ffffff"; + } else { + return nodeColour; + } + }) .call(drag(simulation)); node.attr("aria-label", (d: d3Node) => d.name);