(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2244e0"],{e021:function(s,n,t){"use strict";t.r(n);var v=function(){var s=this;s._self._c;return s._m(0)},a=[function(){var s=this,n=s._self._c;return n("div",[n("h1",[s._v("TouchEvent插件")]),n("blockquote",[n("p",[s._v("v0.6.0+")])]),n("p",[s._v("该插件用户支持移动端触摸事件。原理是监听移动端的"),n("code",[s._v("touchstart")]),s._v("、"),n("code",[s._v("touchmove")]),s._v("、"),n("code",[s._v("touchend")]),s._v("事件，然后派发对应的鼠标事件。")]),n("p",[s._v("目前支持单指触摸移动画布、点击激活节点，双指缩放画布，单指双击复位和编辑节点。")]),n("h2",[s._v("注册")]),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(" TouchEvent "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/TouchEvent.js'")]),s._v("\n\nMindMap.usePlugin(TouchEvent)\n")])]),n("p",[s._v("注册完且实例化"),n("code",[s._v("MindMap")]),s._v("后可通过"),n("code",[s._v("mindMap.touchEvent")]),s._v("获取到该实例。")])])}],e={},c=e,o=t("2877"),_=Object(o["a"])(c,v,a,!1,null,null,null);n["default"]=_.exports}}]);