mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36: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
|
||||
.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
|
||||
const labels = graphNode
|
||||
.append("text")
|
||||
|
|
Loading…
Reference in a new issue