(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d238428"],{ff2d:function(s,n,t){"use strict";t.r(n);var a=function(){var s=this;s._self._c;return s._m(0)},i=[function(){var s=this,n=s._self._c;return n("div",[n("h1",[s._v("Drag plugin")]),n("p",[s._v("The "),n("code",[s._v("Drag")]),s._v(" plugin provides the function of node dragging, including:")]),n("p",[s._v("1.Drag the node to move and change its position in the node tree, That is, as a child node, sibling node, etc. of other nodes")]),n("p",[s._v("2.Drag the node to the custom canvas location")]),n("p",[s._v("Please refer to the "),n("a",{attrs:{href:"/mind-map/#/doc/zh/constructor"}},[s._v("Instantiation Options")]),s._v(" of the "),n("code",[s._v("MindMap")]),s._v(" class for configuration.")]),n("h2",[s._v("Register")]),n("pre",{staticClass:"hljs"},[n("code",[n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Drag "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Drag.js'")]),s._v("\n"),n("span",{staticClass:"hljs-comment"},[s._v("// import Drag from 'simple-mind-map/src/Drag.js' Use this path for versions below v0.6.0")]),s._v("\n\nMindMap.usePlugin(Drag)\n")])]),n("p",[s._v("After registration and instantiation of "),n("code",[s._v("MindMap")]),s._v(", the instance can be obtained through "),n("code",[s._v("mindMap.drag")]),s._v(".")])])}],e={},o=e,r=t("2877"),c=Object(r["a"])(o,a,i,!1,null,null,null);n["default"]=c.exports}}]);