Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dllnaoki opened this issue Oct 25, 2021 · 1 comment
Open

Comments

@dllnaoki
Copy link

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 dllnaoki changed the title v1.5.1 升级到 v2.3.0 ,方法找不到了, 类似Layout.Dagre v1.5.0 升级到 v2.3.0 ,方法找不到了, 类似Layout.Dagre Oct 25, 2021
@pomelo-nwu
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants