mirror of
https://gitee.com/antv/g6.git
synced 2024-12-03 20:28:36 +08:00
chore: fix typo
This commit is contained in:
parent
957c417dfd
commit
7cafd8c547
@ -10,7 +10,7 @@ import { BaseLayout } from './layout';
|
||||
import { isNumber } from '@antv/util';
|
||||
|
||||
/**
|
||||
* 随机布局
|
||||
* 层次布局
|
||||
*/
|
||||
export default class DagreLayout extends BaseLayout {
|
||||
/** layout 方向, 可选 TB, BT, LR, RL */
|
||||
@ -88,8 +88,8 @@ export default class DagreLayout extends BaseLayout {
|
||||
});
|
||||
edges.forEach(edge => {
|
||||
// dagrejs Wiki https://github.com/dagrejs/dagre/wiki#configuring-the-layout
|
||||
g.setEdge(edge.source, edge.target, {
|
||||
weight: edge.weight || 1
|
||||
g.setEdge(edge.source, edge.target, {
|
||||
weight: edge.weight || 1
|
||||
});
|
||||
});
|
||||
dagre.layout(g);
|
||||
|
@ -52,7 +52,7 @@ function getEDistance(p1: IPointTuple, p2: IPointTuple) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 随机布局
|
||||
* 辐射状布局
|
||||
*/
|
||||
export default class RadialLayout extends BaseLayout {
|
||||
/** 布局中心 */
|
||||
|
Loading…
Reference in New Issue
Block a user