Each node will instantiate a node instance
The real data corresponding to this node
The unique identifier of this node
Whether it is the root node
Node level
Width of the node
Height of the node
left position of the node
top position of the node
Parent node of the node
List of child nodes of the node
Node is the content container, svg object
v0.1.5+
Whether the node is currently being dragged
v0.6.2+
Gets whether a custom style has been set.
Update the width and height of the node by recreating the node content, and return a Boolean value indicating whether the width and height have changed
Recursively render this node and all its child nodes
v0.5.0+
Update node shape nodes. For example, when the node status changes, call this method to display or deactivate the style.
Recursive deletion, which is only deleted from the canvas. The node container is still present, and can be reinserted back into the canvas in the future
v0.5.0+
Destroying a node will not only delete it from the canvas, but also directly empty the original node, which cannot be inserted back into the canvas in the future
Re-render the line from this node to its child nodes
Remove the line from this node to its child nodes
Render the content of the expand/collapse button
Remove the expand/collapse button
Get the final style value applied to this node
prop: the style property to get
root: whether it is the root node, default false
isActive: whether the value being fetched is the active state style value,
default false
Modify a style of the node, a shortcut method for the SET_NODE_STYLE command
Get the specified value in the data object of the node's real data nodeData,
if key is not passed, return the data object
Set the value of the specified key in the data object of the node's real data
nodeData, SET_NODE_DATA command's shortcut method
richText: v0.4.2+,Boolean, If you want to set rich text content, that is, html character, richText needs to be passed trueSetting the node text, a shortcut for the SET_NODE_TEXT command
Setting the node image, a shortcut for the SET_NODE_IMAGE command
Setting the node icon, a shortcut for the SET_NODE_ICON command
Setting the node hyperlink, a shortcut for the SET_NODE_HYPERLINK command
Setting the node note, a shortcut for the SET_NODE_NOTE command
Setting the node tag, a shortcut for the SET_NODE_TAG command"
v0.1.5+
Hide node and its sub-nodes
v0.1.5+
Show node and its sub-nodes
v0.1.5+
Check if the current node is an ancestor of a certain node
v0.1.5+
Check if the current node is a sibling of a certain node
v0.2.0+
Check if there is a summary
v0.2.0+
Hide summary node
v0.2.0+
Show summary node
v0.2.0+
Update summary node
v0.2.0+
Check if the node has custom data
v0.2.0+
Check if there is an ancestor node with custom position
v0.2.4+
Get node shape
v0.2.4+
Set node shape, a shortcut method for the SET_NODE_SHAPE command
v0.2.5+
Get the node's own custom style
v0.2.5+
Get the custom style of the nearest ancestor node with its own custom style
v0.2.5+
Get the node's own inheritable custom style