Namespace

MapInteraction

MapInteraction

Methods

# cancelFocus()

Exit focus mode.

View Source interact.ts, line 256

# focusNode(el)

Enter focus mode, set the target element as root.
Parameters:
Name Type Description
el TargetElement Target element return by E('...'), default value: currentTarget.

View Source interact.ts, line 234

# getAllData() → {Object}

Get all node data as object.

View Source interact.ts, line 140

Object

# getAllDataMd() → {String}

Get all node data as markdown.

View Source interact.ts, line 163

String

# getAllDataString() → {string}

Get all node data as string.

View Source interact.ts, line 117

string

# initLeft()

Child nodes will distribute on the left side of the root node.

View Source interact.ts, line 273

# initRight()

Child nodes will distribute on the right side of the root node.

View Source interact.ts, line 284

# initSide()

Child nodes will distribute on both left and right side of the root node.

View Source interact.ts, line 295

# refresh()

Refresh mind map, you can use it after modified `this.nodeData`

View Source interact.ts, line 333

# scale()

Change the scale of the mind map.
Parameters:
Type Description
number

View Source interact.ts, line 209

# selectNode(el)

Select a node and add solid border to it.
Parameters:
Name Type Description
el TargetElement Target element return by E('...'), default value: currentTarget.

View Source interact.ts, line 14

# toCenter()

Reset position of the map to center.

View Source interact.ts, line 221