You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
1.5 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2299c3"],{ddd1:function(s,t,e){"use strict";e.r(t);var n=function(){var s=this;s._self._c;return s._m(0)},i=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("Select plugin")]),t("p",[s._v("The "),t("code",[s._v("Select")]),s._v(" plugin provides the function of select multiple nodes.")]),t("h2",[s._v("Register")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Select "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Select.js'")]),s._v("\n"),t("span",{staticClass:"hljs-comment"},[s._v("// import Select from 'simple-mind-map/src/Select.js' Use this path for versions below v0.6.0")]),s._v("\n\nMindMap.usePlugin(Select)\n")])]),t("p",[s._v("After registration and instantiation of "),t("code",[s._v("MindMap")]),s._v(", the instance can be obtained through "),t("code",[s._v("mindMap.select")]),s._v(".")]),t("h2",[s._v("Method")]),t("h3",[s._v("toPos(x, y)")]),t("p",[s._v("Convert mouse position to position relative to the container "),t("code",[s._v("el")])])])}],o={},a=o,l=e("2877"),c=Object(l["a"])(a,n,i,!1,null,null,null);t["default"]=c.exports}}]);