{"expireTime":9007200828541859000,"key":"transformer-remark-markdown-ast-fce4a4bd875a9a549012b69b375ea250-gatsby-remark-prettiergatsby-remark-prismjsgatsby-remark-external-linksgatsby-remark-autolink-headersgatsby-remark-reading-time-","val":{"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"深度相同的节点将会被放置在同一层，与 compactBox 不同的是，布局不会考虑节点的大小。\n","position":{"start":{"line":2,"column":1,"offset":1},"end":{"line":3,"column":1,"offset":49},"indent":[1]}},{"type":"html","value":"<br />","position":{"start":{"line":3,"column":1,"offset":49},"end":{"line":3,"column":7,"offset":55},"indent":[]}},{"type":"text","value":"\n","position":{"start":{"line":3,"column":7,"offset":55},"end":{"line":4,"column":1,"offset":56},"indent":[1]}},{"type":"html","value":"<img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*J1l5RofvbP0AAAAAAAAAAABkARQnAQ' alt='mindmap' width='250'/>","position":{"start":{"line":4,"column":1,"offset":56},"end":{"line":4,"column":125,"offset":180},"indent":[]}}],"position":{"start":{"line":2,"column":1,"offset":1},"end":{"line":4,"column":125,"offset":180},"indent":[1,1]}},{"type":"heading","depth":2,"children":[{"type":"link","url":"#使用指南","title":null,"children":[],"data":{"hProperties":{"aria-label":"使用指南 permalink","class":"anchor"},"hChildren":[{"type":"raw","value":"<svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg>"}]}},{"type":"text","value":"使用指南","position":{"start":{"line":7,"column":4,"offset":186},"end":{"line":7,"column":8,"offset":190},"indent":[]}}],"position":{"start":{"line":7,"column":1,"offset":183},"end":{"line":7,"column":8,"offset":190},"indent":[]},"data":{"id":"使用指南","htmlAttributes":{"id":"使用指南"},"hProperties":{"id":"使用指南"}}},{"type":"paragraph","children":[{"type":"text","value":"脑图树适用于展示树结构数据，配合 TreeGraph 使用。如下面代码所示，可在实例化 TreeGraph 时使用该布局。除此之外，还可以如","position":{"start":{"line":8,"column":1,"offset":191},"end":{"line":8,"column":71,"offset":261},"indent":[]}},{"type":"link","title":null,"url":"https://www.yuque.com/antv/g6/qopkkg#eYZc6","children":[{"type":"text","value":"子图布局","position":{"start":{"line":8,"column":72,"offset":262},"end":{"line":8,"column":76,"offset":266},"indent":[]}}],"position":{"start":{"line":8,"column":71,"offset":261},"end":{"line":8,"column":121,"offset":311},"indent":[]},"data":{"hProperties":{"target":"_self","rel":"nofollow"}}},{"type":"text","value":"所示单独使用布局。","position":{"start":{"line":8,"column":121,"offset":311},"end":{"line":8,"column":130,"offset":320},"indent":[]}}],"position":{"start":{"line":8,"column":1,"offset":191},"end":{"line":8,"column":130,"offset":320},"indent":[]}},{"type":"paragraph","children":[{"type":"text","value":"该布局有以下配置项，Function 类型的配置项可以为不同的元素配置不同的值。具体描述请查看相关教程。","position":{"start":{"line":10,"column":1,"offset":322},"end":{"line":10,"column":53,"offset":374},"indent":[]}}],"position":{"start":{"line":10,"column":1,"offset":322},"end":{"line":10,"column":53,"offset":374},"indent":[]}},{"type":"list","ordered":false,"start":null,"spread":true,"children":[{"type":"listItem","spread":false,"checked":null,"children":[{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"direction","position":{"start":{"line":12,"column":5,"offset":380},"end":{"line":12,"column":14,"offset":389},"indent":[]}}],"position":{"start":{"line":12,"column":3,"offset":378},"end":{"line":12,"column":16,"offset":391},"indent":[]}},{"type":"text","value":":\nString 类型，树的布局方向。可选值有：'H'：根节点的子节点分成两部分横向放置在根节点左右两侧 ，如代码演示 1 | 'V'：将根节点的所有孩子纵向排列。","position":{"start":{"line":12,"column":16,"offset":391},"end":{"line":13,"column":81,"offset":473},"indent":[1]}}],"position":{"start":{"line":12,"column":3,"offset":378},"end":{"line":13,"column":81,"offset":473},"indent":[1]}}],"position":{"start":{"line":12,"column":1,"offset":376},"end":{"line":14,"column":1,"offset":474},"indent":[1,1]}},{"type":"listItem","spread":false,"checked":null,"children":[{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"getWidth","position":{"start":{"line":15,"column":5,"offset":479},"end":{"line":15,"column":13,"offset":487},"indent":[]}}],"position":{"start":{"line":15,"column":3,"offset":477},"end":{"line":15,"column":15,"offset":489},"indent":[]}},{"type":"text","value":":\nNumber | Function 类型，每个节点的宽度。","position":{"start":{"line":15,"column":15,"offset":489},"end":{"line":16,"column":30,"offset":520},"indent":[1]}}],"position":{"start":{"line":15,"column":3,"offset":477},"end":{"line":16,"column":30,"offset":520},"indent":[1]}}],"position":{"start":{"line":15,"column":1,"offset":475},"end":{"line":17,"column":1,"offset":521},"indent":[1,1]}},{"type":"listItem","spread":false,"checked":null,"children":[{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"getHeight","position":{"start":{"line":18,"column":5,"offset":526},"end":{"line":18,"column":14,"offset":535},"indent":[]}}],"position":{"start":{"line":18,"column":3,"offset":524},"end":{"line":18,"column":16,"offset":537},"indent":[]}},{"type":"text","value":":\nNumber | Function 类型，每个节点的高度。","position":{"start":{"line":18,"column":16,"offset":537},"end":{"line":19,"column":30,"offset":568},"indent":[1]}}],"position":{"start":{"line":18,"column":3,"offset":524},"end":{"line":19,"column":30,"offset":568},"indent":[1]}}],"position":{"start":{"line":18,"column":1,"offset":522},"end":{"line":20,"column":1,"offset":569},"indent":[1,1]}},{"type":"listItem","spread":false,"checked":null,"children":[{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"getHGap","position":{"start":{"line":21,"column":5,"offset":574},"end":{"line":21,"column":12,"offset":581},"indent":[]}}],"position":{"start":{"line":21,"column":3,"offset":572},"end":{"line":21,"column":14,"offset":583},"indent":[]}},{"type":"text","value":":\nNumber | Function 类型，每个节点的水平间隙。","position":{"start":{"line":21,"column":14,"offset":583},"end":{"line":22,"column":32,"offset":616},"indent":[1]}}],"position":{"start":{"line":21,"column":3,"offset":572},"end":{"line":22,"column":32,"offset":616},"indent":[1]}}],"position":{"start":{"line":21,"column":1,"offset":570},"end":{"line":23,"column":1,"offset":617},"indent":[1,1]}},{"type":"listItem","spread":false,"checked":null,"children":[{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"getVGap","position":{"start":{"line":24,"column":5,"offset":622},"end":{"line":24,"column":12,"offset":629},"indent":[]}}],"position":{"start":{"line":24,"column":3,"offset":620},"end":{"line":24,"column":14,"offset":631},"indent":[]}},{"type":"text","value":":\nNumber | Function 类型，每个节点的垂直间隙。","position":{"start":{"line":24,"column":14,"offset":631},"end":{"line":25,"column":32,"offset":664},"indent":[1]}}],"position":{"start":{"line":24,"column":3,"offset":620},"end":{"line":25,"column":32,"offset":664},"indent":[1]}}],"position":{"start":{"line":24,"column":1,"offset":618},"end":{"line":26,"column":1,"offset":665},"indent":[1,1]}},{"type":"listItem","spread":false,"checked":null,"children":[{"type":"paragraph","children":[{"type":"strong","children":[{"type":"text","value":"getSide","position":{"start":{"line":27,"column":5,"offset":670},"end":{"line":27,"column":12,"offset":677},"indent":[]}}],"position":{"start":{"line":27,"column":3,"offset":668},"end":{"line":27,"column":14,"offset":679},"indent":[]}},{"type":"text","value":":\nFunction 类型，节点排布在根节点的左侧/右侧。若设置了该值，则所有节点会在根节点同一侧，即 direction = 'H' 不再起效。若该参数为回调函数，则可以指定每一个节点在根节点的左/右侧。如代码演示 2、3、4。","position":{"start":{"line":27,"column":14,"offset":679},"end":{"line":28,"column":114,"offset":794},"indent":[1]}}],"position":{"start":{"line":27,"column":3,"offset":668},"end":{"line":28,"column":114,"offset":794},"indent":[1]}}],"position":{"start":{"line":27,"column":1,"offset":666},"end":{"line":28,"column":114,"offset":794},"indent":[1]}}],"position":{"start":{"line":12,"column":1,"offset":376},"end":{"line":28,"column":114,"offset":794},"indent":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}}],"position":{"start":{"line":1,"column":1,"offset":0},"end":{"line":28,"column":114,"offset":794}}}}