OptionalactivatedWhether or not the current node is activated.
OptionalcaptionThe text to display on the node or relationship.
OptionalcaptionThe caption align. Has no affect on self-referring relationships.
OptionalcaptionsMultiple captions with individual text styles.
Only drawn by the 'canvas' renderer. For a single unstyled caption use caption.
OptionalcaptionThe caption text size.
OptionalcolorThe color of the graph element.
OptionaldisabledWhether or not the current node or relationship is disabled.
OptionalhoveredWhether or not the current node or relationship is hovered.
Optional ExperimentalhtmlThe DOM element to display on top of a node. Positioned by NVL on every frame.
Any HTML overlay disables the WebGL renderer's GPU fast path because node positions must be available on the CPU every frame. Prefer icon or overlayIcon for many nodes.
OptionaliconThe url to an icon to display inside the node. Icons are expected to be black and square. If the node's background color is dark, the icon will be inverted to white. Works with both renderers.
ReadonlyidThe id of the current node or relationship. Ids need to be unique across all nodes and relationships. Ids need to be strings and cannot be empty.
OptionaloverlayAn icon to be displayed anywhere on top of the graph element. Icons are expected to be square. Works with both renderers.
Optionalposition?: number[]The position of the icon relative to the node or relationship.
The position is a percentage of the node or relationship size.
[1, 1] is the bottom right corner of the node or relationship.
[-1, -1] is the top left corner of the node or relationship.
Optionalsize?: numberThe size of the icon relative to the node size or relationship caption size. The size is a percentage of the node size or relationship caption size.
The url to the icon.
OptionalpinnedWhether or not the current node is pinned.
OptionalselectedWhether or not the current node or relationship is selected.
OptionalsizeThe size of the node.
A node inside the graph visualization.