UNPKG

@antv/g6

Version:

graph visualization frame work

1 lines 6.31 kB
{"expireTime":9007200828528711000,"key":"transformer-remark-markdown-html-b8771b53621ff3ed897730d6d7531d56-gatsby-remark-prettiergatsby-remark-prismjsgatsby-remark-external-linksgatsby-remark-autolink-headersgatsby-remark-reading-time-","val":"<h2 id=\"direction\"><a href=\"#direction\" aria-label=\"direction permalink\" class=\"anchor\"><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></a>direction</h2>\n<p><strong>类型</strong>:String<br /><strong>可选值</strong>:'LR' | 'RL' | 'TB' | 'BT' | 'H' | 'V'<br /><strong>默认值</strong>:'LR'<br /><strong>是否必须</strong>:false<br /><strong>说明</strong>:树布局的方向,默认为,其他选项说明</p>\n<ul>\n<li>TB —— 根节点在上,往下布局</li>\n</ul>\n<p><img src=\"https://cdn.nlark.com/yuque/0/2019/png/156681/1571832831947-89713eef-7898-446b-9edc-604ed63b77d4.png#align=left&#x26;display=inline&#x26;height=48&#x26;name=image.png&#x26;originHeight=760&#x26;originWidth=1784&#x26;search=&#x26;size=518414&#x26;status=done&#x26;width=112\" alt=\"image.png\"></p>\n<ul>\n<li>BT —— 根节点在下,往上布局</li>\n</ul>\n<p><img src=\"https://cdn.nlark.com/yuque/0/2019/png/156681/1571832849059-ada0d199-ca15-4ce0-83e0-de00f9482c0b.png#align=left&#x26;display=inline&#x26;height=50&#x26;name=image.png&#x26;originHeight=786&#x26;originWidth=1814&#x26;search=&#x26;size=517688&#x26;status=done&#x26;width=115\" alt=\"image.png\"></p>\n<ul>\n<li>LR —— 根节点在左,往右布局</li>\n</ul>\n<p><img src=\"https://cdn.nlark.com/yuque/0/2019/png/156681/1571832767625-ad86a4b6-dabb-4f53-9800-31bb3fef88c6.png#align=left&#x26;display=inline&#x26;height=114&#x26;name=image.png&#x26;originHeight=896&#x26;originWidth=408&#x26;search=&#x26;size=214689&#x26;status=done&#x26;width=52\" alt=\"image.png\"></p>\n<ul>\n<li>RL —— 根节点在右,往左布局</li>\n</ul>\n<p><img src=\"https://cdn.nlark.com/yuque/0/2019/png/156681/1571832804357-6b4c6e65-22fe-45b1-ab9f-bf954cdb0b13.png#align=left&#x26;display=inline&#x26;height=116&#x26;name=image.png&#x26;originHeight=912&#x26;originWidth=410&#x26;search=&#x26;size=213061&#x26;status=done&#x26;width=52\" alt=\"image.png\"></p>\n<ul>\n<li>H —— 根节点在中间,水平对称布局</li>\n</ul>\n<p><img src=\"https://cdn.nlark.com/yuque/0/2019/png/156681/1571832893099-55fa98c8-30f2-49c6-b582-76dd69de7b4a.png#align=left&#x26;display=inline&#x26;height=104&#x26;name=image.png&#x26;originHeight=892&#x26;originWidth=712&#x26;search=&#x26;size=279079&#x26;status=done&#x26;width=83\" alt=\"image.png\"></p>\n<ul>\n<li>V —— 根节点在中间,垂直对称布局</li>\n</ul>\n<p><img src=\"https://cdn.nlark.com/yuque/0/2019/png/156681/1571832910720-f3d479c3-b822-4123-b207-a81e22fad324.png#align=left&#x26;display=inline&#x26;height=91&#x26;name=image.png&#x26;originHeight=922&#x26;originWidth=1172&#x26;search=&#x26;size=366086&#x26;status=done&#x26;width=116\" alt=\"image.png\"></p>\n<h2 id=\"nodesep\"><a href=\"#nodesep\" aria-label=\"nodesep permalink\" class=\"anchor\"><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></a>nodeSep</h2>\n<p><strong>类型</strong>:Number<br /><strong>默认值</strong>:0<br /><strong>是否必须</strong>:false<br /><strong>说明</strong>:节点间距</p>\n<h2 id=\"ranksep\"><a href=\"#ranksep\" aria-label=\"ranksep permalink\" class=\"anchor\"><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></a>rankSep</h2>\n<p><strong>类型</strong>:Number<br /><strong>默认值</strong>:0<br /><strong>是否必须</strong>:false<br /><strong>说明</strong>:层与层之间的间距</p>\n<h2 id=\"radial\"><a href=\"#radial\" aria-label=\"radial permalink\" class=\"anchor\"><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></a>radial</h2>\n<p><strong>类型</strong>:Boolean<br /><strong>默认值</strong>:false<br /><strong>是否必须</strong>:false<br /><strong>说明</strong>:是否按照辐射状布局。若 <code class=\"language-text\">radial</code><code class=\"language-text\">true</code>,建议 <code class=\"language-text\">direction</code> 设置为 <code class=\"language-text\">&#39;LR&#39;</code><code class=\"language-text\">&#39;RL&#39;</code><br /><img src=\"https://cdn.nlark.com/yuque/0/2019/png/156681/1571833294684-7874d71d-fb44-4340-95d0-c03b56c67a18.png#align=left&#x26;display=inline&#x26;height=172&#x26;name=image.png&#x26;originHeight=926&#x26;originWidth=922&#x26;search=&#x26;size=286654&#x26;status=done&#x26;width=171\" alt=\"image.png\"></p>"}