Optional
activatedWhether or not the current node is activated.
Optional
captionThe text to display inside on node or relationship.
Use captions instead.
Optional
captionThe caption align. Has no affect on self-referring relationships.
Optional
captionThe caption text size.
Optional
captionsThe caption text and font style. Captions are only visible when using the 'canvas' renderer.
Optional
colorOptional
disabledWhether or not the current node or relationship is disabled.
Optional
hoveredWhether or not the current node or relationship is hovered.
Optional
Experimental
htmlThe DOM element to display on top of a node.
Optional
iconThe url to an icon to display inside the node. Icons are expected to be black. If the node's background color is dark, the icon will be inverted to white. Icons are expected to be square.
Readonly
idThe 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.
Optional
overlayAn icon to be displayed anywhere on top of the graph element. Icons are expected to be square.
Optional
position?: 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.
Optional
size?: 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.
Optional
pinnedWhether or not the current node is pinned.
Optional
selectedWhether or not the current node or relationship is selected.
Optional
sizeThe size of the node.
A node inside the graph visualization.