idea: Tags appear as hollow circles on the graph (#1129)
* Tags appear as hollow circles on the graph Added a few lines to make tags appear as hollow circles on the graph, as opposed to pages which are plain circles, for better visual separation. * Applied Prettier code style
This commit is contained in:
parent
73a5ec87f1
commit
244801af65
@ -282,6 +282,13 @@ async function renderGraph(container: string, fullSlug: FullSlug) {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
.call(drag(simulation))
|
.call(drag(simulation))
|
||||||
|
|
||||||
|
// make tags hollow circles
|
||||||
|
node
|
||||||
|
.filter((d) => d.id.startsWith("tags/"))
|
||||||
|
.attr("stroke", color)
|
||||||
|
.attr("stroke-width", 2)
|
||||||
|
.attr("fill", "var(--light)")
|
||||||
|
|
||||||
// draw labels
|
// draw labels
|
||||||
const labels = graphNode
|
const labels = graphNode
|
||||||
.append("text")
|
.append("text")
|
||||||
|
Loading…
Reference in New Issue
Block a user