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.9.9+
Obtain a list of ancestor node instances.
v0.9.8+
Highlight node.
v0.9.8+
Unhighlight node.
v0.9.0+
removeActiveState:Is remove the activation status of the node
removeId:Is remove the uid of the node
Serialize a node to obtain its pure data, excluding references to node instances.
v0.9.0+
val:Number, 0-1,OpacitySet the transparency of summary nodes and curves.
v0.9.0+
Obtain node summary data.
v0.9.0+
Gets the index of the node in the sibling node list.
v0.9.0+
Obtain the size and position information of the node. The width and height are the actual width and height after applying the scaling effect, and the position information is relative to the canvas.
v0.8.1+
Obtain the size and position information of the node. The width and height are the actual width and height after applying the scaling effect, and the position is relative to the upper left corner of the browser window.
v0.8.1+
Check if there are ancestor nodes with a summary.
v0.8.1+
Obtain the display position of node comments. When a node has comments and is displaying a state, dragging or zooming will cause the comment floating layer to detach from the node. This method can be used to obtain a new position and update the comment floating layer.
v0.8.0+
active:Boolean, active status.Update nodes based on whether they are activated or not. The main task is to update the display and hiding of the expand and collapse buttons for nodes.
v0.7.2+
val: Opacity value,0-1Set node transparency, including connecting lines and child nodes.
v0.7.2+
Hide subordinate nodes.
v0.7.2+
Display subordinate nodes.
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: v0.7.0+has been abandoned, whether the value being fetched is the active state style value,
default false
isActive: v0.7.0+has been abandonedModify a style of the node, a shortcut method for the SET_NODE_STYLE command
v0.6.12+
isActive: v0.7.0+has been abandonedModify multiple styles of nodes, a shortcut method for the SET_NODE_STYLES 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. This method and command will not update the view, so if you want to modify the text, use the 'setText' method or use the command pointing to the text.
richText: v0.4.2+,Boolean, If you want to set rich text content, that is, html character, richText needs to be passed true. After version 0.9.3+, if this parameter is not passed, it will use previous value.
resetRichText: v0.6.10+, Boolean, whether to reset rich text, The default is 'false'. If 'true' is passed, the style of the rich text node will be reset
Setting 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
v0.9.10+
url:Attachment url;
name:Attachment name, optional
Set node attachments, a shortcut for the SET_NODE_ATTACHMENT 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+:Detect whether the current node is an ancestor node of a certain node
v0.8.1+:Detect whether the current node is the parent node of a certain node
v0.8.1+
Detect whether the current node is an ancestor node 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.9.0+
Check if there is a summary of oneself, not a sub node interval 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