(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d207d47"],{a1cd:function(s,n,t){"use strict";t.r(n);var e=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("TouchEvent plugin")]),n("blockquote",[n("p",[s._v("v0.6.0+")])]),n("p",[s._v("This plugin supports mobile touch events for users. The principle is to listen for 'touchstart', 'touchmove', and 'touchend' events on the mobile end, and then dispatch corresponding mouse events.")]),n("p",[s._v("Currently, it supports single finger touch to move the canvas, click to activate nodes, double finger zoom the canvas, single finger double-click to reset and edit nodes.")]),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(" 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("After registration and instantiation of "),n("code",[s._v("MindMap")]),s._v(", the instance can be obtained through "),n("code",[s._v("mindMap.touchEvent")]),s._v(".")])])}],o={},a=o,c=t("2877"),r=Object(c["a"])(a,e,i,!1,null,null,null);n["default"]=r.exports}}]);