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

refactor: propose G6 layout standard and adapt antv/layout #5704

Merged
merged 7 commits into from
May 7, 2024

Conversation

Aarebecca
Copy link
Contributor

@Aarebecca Aarebecca commented May 7, 2024

  • 定义 G6 的布局标准接口,如下 / Define the layout standard interfaces for G6 as follows
interface BaseLayout {
  execute(model: GraphData, options?: STDLayoutOptions): Promise<GraphData>;

  // suitable for iterative layouts
  stop?: () => void;
  tick?: (data: GraphData) => void;
}
  • 适配 @antv/layout 为 G6 布局 / Adapt @antv/layout to G6 layout
  • 流水线布局属性 nodesFilter 变更为 nodeFilter / The property of pipeline layout nodesFilter is renamed to nodeFilter
  • 添加了自定义布局示例 / Add demo that custom layout

@Aarebecca Aarebecca changed the title refactor: propose G6 layout interface and adapt antv/layout refactor: propose G6 layout standard and adapt antv/layout May 7, 2024
@Aarebecca Aarebecca requested review from yvonneyx and hustcc May 7, 2024 06:44
@Aarebecca Aarebecca merged commit 76908bb into v5 May 7, 2024
3 of 5 checks passed
@Aarebecca Aarebecca deleted the refactor/layout branch May 7, 2024 11:55
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

Successfully merging this pull request may close these issues.

None yet

2 participants