The render instance is responsible for the entire rendering process and can be
accessed through mindMap.renderer.
Gets the current list of active nodes
Gets the root node of the node tree
Clears the currently active node
Clears all currently active nodes and triggers the node_active event
v0.1.6+
If there is a text editing requirement, this method can be called to disable the enter key and delete key related shortcuts to prevent conflicts
v0.1.6+
End text editing, restore enter key and delete key related shortcuts
Add a node to the active list
Remove a node from the active list
Search for the index of a node in the active list
Get the position index of a node among its siblings
Delete a specific node
Copy a node, the active node is the node to be operated on, if there are multiple active nodes, only the first node will be operated on
notRender: v0.6.9+, Boolean, Default is false, Do not trigger rendering.Set node data, i.e. the data in the data field, and will determine whether the
node needs to be re-rendered based on whether the node size has changed, data
is an object, e.g. {text: 'I am new text'}
v0.1.5+
Move a node as a child of another node
v0.1.5+
Move a node in front of another node
v0.1.5+
Move a node behind another node
v0.2.17+
Move a node to the center of the canvas.
Currently, if there is zoom, returning to the center will reset the zoom.
v0.6.7+
uid: uid of node
callback: Expand completed callback function
Expand to the node of the specified uid.
v0.6.7+
uid: uid of nodeFind the corresponding node instance based on the uid.
v0.6.8+
Copy nodes. After calling this method, the current activated node data will be stored. Multiple activated nodes will only operate on the first node, and subsequent calls to the 'paste()' method can be pasted.
v0.6.8+
Cut a node. After calling this method, the currently active node will be cut and the node data will be stored. Multiple nodes will only operate on the first node, and subsequent calls to the 'paste()' method can be pasted.
v0.6.8+
Pasting nodes can be done by calling the 'copy()' or 'cut()' method after calling it. This method does not support pasting data from the user's clipboard. Please use the built-in 'Ctrl+v' shortcut key.