How to move node to another one on mindmap

We are currently on version 1.4.19. I want to move node on mindmap to another one. Please advise


I think you can implement in the same way that the Org Chart Editor does so, http://gojs.net/latest/samples/orgcharteditor.html.

Basically that means implementing a GraphObject.mouseDrop event handler on the Node template.

Optionally you can implement GraphObjectc.mouseDragEnter and GraphObject.mouseDragLeave event handlers if you want to show feedback during the drag.

It 's work for me. but i call function do layout then line display is not correct.

It looks like you also need to set the dir property for every dragged node’s data to be the same as the new parent node’s data’s dir property. Call updateNodeDirection to do that.