UNPKG

@antv/g6

Version:

graph visualization frame work

1 lines 4.12 kB
{"expireTime":9007200828528711000,"key":"transformer-remark-markdown-ast-79523bf8145a133d5044992a2226a455-gatsby-remark-prettiergatsby-remark-prismjsgatsby-remark-external-linksgatsby-remark-autolink-headersgatsby-remark-reading-time-","val":{"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"Grid 网格布局根据参数指定的排序方式对节点进行排序后,将节点排列在网格上。","position":{"start":{"line":2,"column":1,"offset":1},"end":{"line":2,"column":40,"offset":40},"indent":[]}}],"position":{"start":{"line":2,"column":1,"offset":1},"end":{"line":2,"column":40,"offset":40},"indent":[]}},{"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":4,"column":4,"offset":45},"end":{"line":4,"column":8,"offset":49},"indent":[]}}],"position":{"start":{"line":4,"column":1,"offset":42},"end":{"line":4,"column":8,"offset":49},"indent":[]},"data":{"id":"使用指南","htmlAttributes":{"id":"使用指南"},"hProperties":{"id":"使用指南"}}},{"type":"paragraph","children":[{"type":"text","value":"G6 内置的 Grid 网格布局可在实例化 Graph 时使用该布局。除此之外,还可以如","position":{"start":{"line":6,"column":1,"offset":51},"end":{"line":6,"column":45,"offset":95},"indent":[]}},{"type":"link","title":null,"url":"https://www.yuque.com/antv/g6/qopkkg#eYZc6","children":[{"type":"text","value":"子图布局","position":{"start":{"line":6,"column":46,"offset":96},"end":{"line":6,"column":50,"offset":100},"indent":[]}}],"position":{"start":{"line":6,"column":45,"offset":95},"end":{"line":6,"column":95,"offset":145},"indent":[]},"data":{"hProperties":{"target":"_self","rel":"nofollow"}}},{"type":"text","value":"所示单独使用布局。该布局可以通过配置调整节点排序方式、行数、列数、节点不重叠等。","position":{"start":{"line":6,"column":95,"offset":145},"end":{"line":6,"column":135,"offset":185},"indent":[]}}],"position":{"start":{"line":6,"column":1,"offset":51},"end":{"line":6,"column":135,"offset":185},"indent":[]}},{"type":"list","ordered":false,"start":null,"spread":false,"children":[{"type":"listItem","spread":false,"checked":null,"children":[{"type":"paragraph","children":[{"type":"text","value":"代码演示 1 :基本的网格布局,节点根据在数据中的顺序排列。","position":{"start":{"line":8,"column":3,"offset":189},"end":{"line":8,"column":33,"offset":219},"indent":[]}}],"position":{"start":{"line":8,"column":3,"offset":189},"end":{"line":8,"column":33,"offset":219},"indent":[]}}],"position":{"start":{"line":8,"column":1,"offset":187},"end":{"line":8,"column":33,"offset":219},"indent":[]}},{"type":"listItem","spread":false,"checked":null,"children":[{"type":"paragraph","children":[{"type":"text","value":"代码演示 2 :节点根据数据中的 cluster 属性排序。","position":{"start":{"line":9,"column":3,"offset":222},"end":{"line":9,"column":33,"offset":252},"indent":[]}}],"position":{"start":{"line":9,"column":3,"offset":222},"end":{"line":9,"column":33,"offset":252},"indent":[]}}],"position":{"start":{"line":9,"column":1,"offset":220},"end":{"line":9,"column":33,"offset":252},"indent":[]}}],"position":{"start":{"line":8,"column":1,"offset":187},"end":{"line":9,"column":33,"offset":252},"indent":[1]}}],"position":{"start":{"line":1,"column":1,"offset":0},"end":{"line":10,"column":1,"offset":253}}}}