chore: fix typo

This commit is contained in:
William Chan 2020-03-13 19:45:42 +08:00 committed by Yanyan Wang
parent 957c417dfd
commit 7cafd8c547
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -52,7 +52,7 @@ function getEDistance(p1: IPointTuple, p2: IPointTuple) {
}
/**
*
*
*/
export default class RadialLayout extends BaseLayout {
/** 布局中心 */