mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
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
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue