{"componentChunkName":"component---node-modules-snfe-gatsby-theme-mtdv-site-templates-document-tsx","path":"/docs/manual/plugins/layoutForce","result":{"data":{"site":{"siteMetadata":{"isChartSite":false,"isGraphSite":true,"title":"MTDV","docs":[{"slug":"manual/force-graph-vis","title":"关联图","order":1},{"slug":"manual/api","title":"API","order":2},{"slug":"manual/plugins","title":"拓展能力","order":3},{"slug":"manual/flow-graph-g6","title":"编排图","order":99}]},"pathPrefix":""},"markdownRemark":{"htmlAst":{"type":"root","children":[{"type":"element","tagName":"blockquote","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"demo @/demo/force-graph-vis-demo/demo-layout/layout-force.vue"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"code-classlanguage-textgraphlayoutforcecode","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#code-classlanguage-textgraphlayoutforcecode","ariaLabel":"code classlanguage textgraphlayoutforcecode permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"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"},"children":[]}]}]},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"graph.layoutForce()"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"Function"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"对图谱进行力导向布局"}]}],"data":{"quirksMode":false}},"tableOfContents":"
","fields":{"slug":"/docs/manual/plugins/layoutForce","readingTime":{"text":"1 min read","time":4800}},"frontmatter":{"title":"力导向布局"},"parent":{"__typename":"File","relativePath":"manual/plugins/layoutForce.md"}},"allMarkdownRemark":{"edges":[{"node":{"fields":{"slug":"/docs/manual/api/graph"},"frontmatter":{"title":"图谱实例","order":0}}},{"node":{"fields":{"slug":"/docs/manual/flow-graph-g6/intro"},"frontmatter":{"title":"简介","order":0}}},{"node":{"fields":{"slug":"/docs/manual/plugins/bezierCurveController"},"frontmatter":{"title":"贝塞尔曲线控制点","order":0}}},{"node":{"fields":{"slug":"/docs/manual/force-graph-vis/intro"},"frontmatter":{"title":"简介","order":0}}},{"node":{"fields":{"slug":"/docs/manual/api/render"},"frontmatter":{"title":"渲染","order":1}}},{"node":{"fields":{"slug":"/docs/manual/flow-graph-g6/flow-graph-g6"},"frontmatter":{"title":"入门教程","order":1}}},{"node":{"fields":{"slug":"/docs/manual/force-graph-vis/begin"},"frontmatter":{"title":"入门教程","order":1}}},{"node":{"fields":{"slug":"/docs/manual/plugins/colorPalette"},"frontmatter":{"title":"颜色板","order":1}}},{"node":{"fields":{"slug":"/docs/manual/api/simulation"},"frontmatter":{"title":"力学模拟","order":2}}},{"node":{"fields":{"slug":"/docs/manual/flow-graph-g6/main-concept"},"frontmatter":{"title":"核心概念","order":2}}},{"node":{"fields":{"slug":"/docs/manual/force-graph-vis/main-concept"},"frontmatter":{"title":"核心概念","order":2}}},{"node":{"fields":{"slug":"/docs/manual/plugins/dynamicLoadData"},"frontmatter":{"title":"动态加载","order":2}}},{"node":{"fields":{"slug":"/docs/manual/api/zoom"},"frontmatter":{"title":"平移缩放","order":3}}},{"node":{"fields":{"slug":"/docs/manual/flow-graph-g6/API"},"frontmatter":{"title":"API","order":3}}},{"node":{"fields":{"slug":"/docs/manual/force-graph-vis/options"},"frontmatter":{"title":"图谱配置项","order":3}}},{"node":{"fields":{"slug":"/docs/manual/plugins/highlight"},"frontmatter":{"title":"高亮","order":3}}},{"node":{"fields":{"slug":"/docs/manual/api/eventEmitter"},"frontmatter":{"title":"事件","order":4}}},{"node":{"fields":{"slug":"/docs/manual/flow-graph-g6/example"},"frontmatter":{"title":"示例","order":4}}},{"node":{"fields":{"slug":"/docs/manual/plugins/layoutForce"},"frontmatter":{"title":"力导向布局","order":4}}},{"node":{"fields":{"slug":"/docs/manual/plugins/layoutLayer"},"frontmatter":{"title":"层次布局","order":5}}},{"node":{"fields":{"slug":"/docs/manual/plugins/layoutRing"},"frontmatter":{"title":"环形布局","order":6}}},{"node":{"fields":{"slug":"/docs/manual/plugins/occlusionDetection"},"frontmatter":{"title":"遮挡检测","order":7}}},{"node":{"fields":{"slug":"/docs/manual/plugins/RectSelection"},"frontmatter":{"title":"框选工具","order":8}}},{"node":{"fields":{"slug":"/docs/manual/plugins/selector"},"frontmatter":{"title":"快捷选择器","order":9}}},{"node":{"fields":{"slug":"/docs/manual/plugins/globalGraphHelper"},"frontmatter":{"title":"工具函数","order":10}}},{"node":{"fields":{"slug":"/docs/manual/plugins/minimap"},"frontmatter":{"title":"缩略图","order":11}}},{"node":{"fields":{"slug":"/docs/manual/plugins/customPlugin"},"frontmatter":{"title":"如何开发一个插件","order":12}}},{"node":{"fields":{"slug":"/docs/common/design-principle"},"frontmatter":{"title":"","order":null}}}]}},"pageContext":{"examples":[{"relativePath":"force-graph-vis/demo/VueGraphDemo.vue","absolutePath":"/opt/meituan/tmp/21274111_60216501/examples/force-graph-vis/demo/VueGraphDemo.vue","order":-1,"filename":"VueGraphDemo.vue","source":"\n \n\n\n\n\n\n","babeledSource":"\n \n\n\n\n\n\n"},{"relativePath":"flow-graph-g6/layout/demo/node.vue","absolutePath":"/opt/meituan/tmp/21274111_60216501/examples/flow-graph-g6/layout/demo/node.vue","order":0,"filename":"node.vue","title":"自定义节点","screenshot":"https://s3plus.meituan.net/v1/mss_c9d411db85ec4b59aaebc4dfca416c55/picture/docs/node-demo.png","source":"\n \n\n\n\n\n\n","babeledSource":"\n \n\n\n\n\n\n"},{"relativePath":"flow-graph-g6/layout/demo/combo.vue","absolutePath":"/opt/meituan/tmp/21274111_60216501/examples/flow-graph-g6/layout/demo/combo.vue","order":2,"filename":"combo.vue","title":"自定义combo","screenshot":"https://s3plus.meituan.net/v1/mss_c9d411db85ec4b59aaebc4dfca416c55/picture/docs/combo.png","source":"\n \n\n\n\n\n\n","babeledSource":"\n \n\n\n\n\n\n"},{"relativePath":"flow-graph-g6/orientation/demo/orientation-TB.vue","absolutePath":"/opt/meituan/tmp/21274111_60216501/examples/flow-graph-g6/orientation/demo/orientation-TB.vue","order":1,"filename":"orientation-TB.vue","title":"竖向排列","screenshot":"https://s3plus.meituan.net/v1/mss_c9d411db85ec4b59aaebc4dfca416c55/picture/docs/orientation-TB.png","source":"\n \n\n\n\n\n\n","babeledSource":"\n \n\n\n\n\n\n"},{"relativePath":"flow-graph-g6/orientation/demo/orientation-LR.vue","absolutePath":"/opt/meituan/tmp/21274111_60216501/examples/flow-graph-g6/orientation/demo/orientation-LR.vue","order":0,"filename":"orientation-LR.vue","title":"横向排列","screenshot":"https://s3plus.meituan.net/v1/mss_c9d411db85ec4b59aaebc4dfca416c55/picture/docs/orientation-LR.png","source":"\n \n\n\n\n\n\n","babeledSource":"\n \n\n\n\n\n\n"},{"relativePath":"flow-graph-g6/vis/demo/demo.vue","absolutePath":"/opt/meituan/tmp/21274111_60216501/examples/flow-graph-g6/vis/demo/demo.vue","order":0,"filename":"demo.vue","title":"基本编排图","screenshot":"https://s3plus.meituan.net/v1/mss_c9d411db85ec4b59aaebc4dfca416c55/picture/docs/base-demo.png","source":"\n \n\n\n\n\n\n","babeledSource":"\n \n\n\n\n\n\n"},{"relativePath":"flow-graph-g6/orientation/demo/orientation-drage.vue","absolutePath":"/opt/meituan/tmp/21274111_60216501/examples/flow-graph-g6/orientation/demo/orientation-drage.vue","order":2,"filename":"orientation-drage.vue","title":"drage","screenshot":"https://s3plus.meituan.net/v1/mss_c9d411db85ec4b59aaebc4dfca416c55/picture/docs/orientation-drage.png","source":"\n \n\n\n\n\n\n","babeledSource":"\n \n\n\n\n\n\n"},{"relativePath":"flow-graph-g6/vis/demo/drage.vue","absolutePath":"/opt/meituan/tmp/21274111_60216501/examples/flow-graph-g6/vis/demo/drage.vue","order":1,"filename":"drage.vue","title":"流程图","screenshot":"https://s3plus.meituan.net/v1/mss_c9d411db85ec4b59aaebc4dfca416c55/picture/docs/drage.png","source":"\n \n\n\n\n\n\n","babeledSource":"\n \n\n\n\n\n\n"},{"relativePath":"force-graph-vis/custom-styles/demo/StyleLinkArrow.vue","absolutePath":"/opt/meituan/tmp/21274111_60216501/examples/force-graph-vis/custom-styles/demo/StyleLinkArrow.vue","order":3,"filename":"StyleLinkArrow.vue","title":"自定义边箭头","screenshot":"https://s3plus.sankuai.com/v1/mss_c9d411db85ec4b59aaebc4dfca416c55/picture/docs/linkArrow.png","source":"\n