(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e9742"],{"8e32":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this;e._self._c;return e._m(0)},d=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Render instance")]),t("p",[e._v("The "),t("code",[e._v("render")]),e._v(" instance is responsible for the entire rendering process and can be accessed through "),t("code",[e._v("mindMap.renderer")]),e._v(".")]),t("h2",[e._v("Properties")]),t("h3",[e._v("activeNodeList")]),t("p",[e._v("Gets the current list of active nodes")]),t("h3",[e._v("root")]),t("p",[e._v("Gets the root node of the node tree")]),t("h2",[e._v("Methods")]),t("h3",[e._v("clearActive()")]),t("p",[e._v("Clears the currently active node")]),t("h3",[e._v("clearAllActive()")]),t("p",[e._v("Clears all currently active nodes and triggers the "),t("code",[e._v("node_active")]),e._v(" event")]),t("h3",[e._v("startTextEdit()")]),t("blockquote",[t("p",[e._v("v0.1.6+")])]),t("p",[e._v("If there is a text editing requirement, this method can be called to disable the enter key and delete key related shortcuts to prevent conflicts")]),t("h3",[e._v("endTextEdit()")]),t("blockquote",[t("p",[e._v("v0.1.6+")])]),t("p",[e._v("End text editing, restore enter key and delete key related shortcuts")]),t("h3",[e._v("addActiveNode(node)")]),t("p",[e._v("Add a node to the active list")]),t("h3",[e._v("removeActiveNode(node)")]),t("p",[e._v("Remove a node from the active list")]),t("h3",[e._v("findActiveNodeIndex(node)")]),t("p",[e._v("Search for the index of a node in the active list")]),t("h3",[e._v("getNodeIndex(node)")]),t("p",[e._v("Get the position index of a node among its siblings")]),t("h3",[e._v("removeOneNode(node)")]),t("p",[e._v("Delete a specific node")]),t("h3",[e._v("copyNode()")]),t("p",[e._v("Copy a node, the active node is the node to be operated on, if there are multiple active nodes, only the first node will be operated on")]),t("h3",[e._v("setNodeDataRender(node, data)")]),t("p",[e._v("Set node "),t("code",[e._v("data")]),e._v(", i.e. the data in the data field, and will determine whether the node needs to be re-rendered based on whether the node size has changed, "),t("code",[e._v("data")]),e._v(" is an object, e.g. "),t("code",[e._v("{text: 'I am new text'}")])]),t("h3",[e._v("moveNodeTo(node, toNode)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Move a node as a child of another node")]),t("h3",[e._v("insertBefore(node, exist)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Move a node in front of another node")]),t("h3",[e._v("insertAfter(node, exist)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Move a node behind another node")]),t("h3",[e._v("moveNodeToCenter(node)")]),t("blockquote",[t("p",[e._v("v0.2.17+")])]),t("p",[e._v("Move a node to the center of the canvas.")]),t("p",[e._v("Currently, if there is zoom, returning to the center will reset the zoom.")])])}],v={},r=v,i=o("2877"),a=Object(i["a"])(r,n,d,!1,null,null,null);t["default"]=a.exports}}]);