(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d7809"],{"76a5":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this;t._self._c;return t._m(0)},a=[function(){var t=this,e=t._self._c;return e("div",[e("h1",[t._v("Painter plugin")]),e("blockquote",[e("p",[t._v("v0.6.12+")])]),e("p",[t._v("Node format brush plugin.")]),e("h2",[t._v("Register")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),e("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),e("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map'")]),t._v("\n"),e("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" Painter "),e("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),e("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map/src/plugins/Painter.js'")]),t._v("\nMindMap.usePlugin(Painter)\n")])]),e("p",[t._v("After registration and instantiation of "),e("code",[t._v("MindMap")]),t._v(", the instance can be obtained through "),e("code",[t._v("mindMap.painter")]),t._v(".")]),e("h2",[t._v("Event")]),e("blockquote",[e("p",[t._v("You can use mindMap.on('event name', () => {}) method to listen events.")])]),e("h3",[t._v("painter_start")]),e("p",[t._v("The event of painter start.")]),e("h3",[t._v("painter_end")]),e("p",[t._v("The event of painter end.")]),e("h2",[t._v("Method")]),e("h3",[t._v("startPainter()")]),e("p",[t._v("Start painter.")]),e("p",[t._v("After calling this method, if there is currently an active node, the first active node will be taken as the specified node by default. After clicking on other nodes, the style of that node will be applied to the other nodes being clicked. When clicking on the canvas, the format brushing operation ends.")])])}],i={},r=i,o=n("2877"),l=Object(o["a"])(r,s,a,!1,null,null,null);e["default"]=l.exports}}]);