Tag Rendering
Tags are pseudo-nodes that are created when a page has tags associated with it (either via frontmatter or tagRules
).
They can either be rendered as individual nodes, or affect the style of the nodes they are associated with.
Tags
Tag Rendering Mode
The tagRenderMode
option determines how tags are rendered in the graph:
none
: Tags are not rendered in the graph.node
: Tags are rendered as individual nodes in the graph, connected to all nodes that have the corresponding tag. The style of the tags is determined by thetagStyles
option.same
: Nodes assume the style of the associated tag(s) defined intagStyles
. Nodes with multiple tags will assume the style of the first tag in the list.both
: Tags are rendered as individual nodes in the graph, connected to all nodes that have the corresponding tag, and the nodes themselves assume the style of the associated tag(s) defined intagStyles
.
Tag Styles
The tagStyles
option is an object that defines the style of tags in the graph.
Each key in the object corresponds to a tag name, and the value corresponds to a Node Style object.
Nodes copy styles from the associated tag(s) based on the order in which they are specified in the node’s tags
list.