Graphin icon indicating copy to clipboard operation
Graphin copied to clipboard

v1.5.0 升级到 v2.3.0 ,方法找不到了, 类似Layout.Dagre

Open dllnaoki opened this issue 4 years ago • 1 comments

Describe the bug 升级之后,一些方法都找不到了 看了一下包

  • graphin v1.5.0 对应版本 antv/g6 v3.8.1
  • graphin v2.3.0 对应版本 antv/g6 v4.3.4
import { Layout } from '@antv/graphin';
// ......
// Dagre布局,返回布局后各个节点坐标
const layoutedNodes = Layout.Dagre({ nodes: lodash.values(dagreNodesMap), edges: dagreEdges }, { rankdir: 'LR', nodesep: V_GAP, ranksep: H_GAP });
  

Expected behavior 请问目前是否有解决方案,还是说必须重构代码了

dllnaoki avatar Oct 25 '21 07:10 dllnaoki

@LiangLuDeng Graphin2.x移除了所有的 layout,统一走@antv/layout这个库了

pomelo-nwu avatar Nov 30 '21 11:11 pomelo-nwu