- Source:
Methods
cancelFocus()
- Source:
Exit focus mode.
disableEdit()
- Source:
enableEdit()
- Source:
focusNode(el)
- Source:
Enter focus mode, set the target element as root.
Parameters:
Name | Type | Description |
---|---|---|
el |
TargetElement | Target element return by E('...'), default value: currentTarget. |
getAllData() → {Object}
- Source:
Get all node data as object.
Returns:
- Type
- Object
getAllDataMd() → {Object}
- Source:
Get all node data as markdown.
Returns:
- Type
- Object
getAllDataString() → {string}
- Source:
Get all node data as string.
Returns:
- Type
- string
initLeft()
- Source:
Child nodes will distribute on the left side of the root node.
initRight()
- Source:
Child nodes will distribute on the right side of the root node.
initSide()
- Source:
Child nodes will distribute on both left and right side of the root node.
refresh()
- Source:
Refresh mind map, you can use it after modified `this.nodeData`
scale()
- Source:
Change the scale of the mind map.
Parameters:
Type | Description |
---|---|
number |
selectNode(el)
- Source:
Select a node and add solid border to it.
Parameters:
Name | Type | Description |
---|---|---|
el |
TargetElement | Target element return by E('...'), default value: currentTarget. |
setLocale()
- Source:
toCenter()
- Source:
Reset position of the map to center.