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

feat: migrating bundling plugin to v5 #5116

Merged
merged 6 commits into from
Dec 8, 2023
Merged

feat: migrating bundling plugin to v5 #5116

merged 6 commits into from
Dec 8, 2023

Conversation

drl990114
Copy link
Contributor

@drl990114 drl990114 commented Nov 6, 2023

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Description of change

fix #4583
原来的 options onTickonLayoutEnd 没有添加,目前还不清楚这两个函数的触发条件,看4.x的文档 https://g6.antv.antgroup.com/en/manual/middle/plugins/plugins#edge-bundling 中也没有提到这两个,帮忙确认下是否需要添加和调整。

@Yanyan-Wang
Copy link
Contributor

可以加一下效果截图吗

}

if (self.ticking) {
self.ticking = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个好像没有看到哪里设置 true 的~ 可能和之前正在布局的判断方式不同了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这块我先去掉了,在 master 和 v5 分支上的 layoutController 上没有找到相关的代码,在其他插件里也没有看到有类似逻辑的,如果有其他方式可以跟我说下大概的位置,我再改下。

packages/g6/src/stdlib/plugin/edgeBundling/index.ts Outdated Show resolved Hide resolved
@drl990114
Copy link
Contributor Author

image

@Aarebecca
Copy link
Contributor

relative issuehunt issue: #4583

@Aarebecca
Copy link
Contributor

麻烦补充一下对应的文档呢,位于 site/docs/plugins 下 🥰,可以参考其他插件文档的格式

@Aarebecca
Copy link
Contributor

onTick: 边绑定算法每次迭代完成时执行的回调

该回调执行时机位于 bundling 方法中的迭代循环内

onLayoutEnd: 这个可以不需要

@drl990114
Copy link
Contributor Author

@Aarebecca 后续调整改好了,有空了瞅下。

@Aarebecca Aarebecca added this to the [2023/12]Issue Hunt milestone Dec 8, 2023
@Aarebecca Aarebecca merged commit a18d168 into antvis:v5 Dec 8, 2023
2 checks passed
@Aarebecca
Copy link
Contributor

你好,这个 PR 先合并了,后续期望能够提供一个官网的 Demo ~ 🎉

@Aarebecca Aarebecca mentioned this pull request Dec 8, 2023
@drl990114
Copy link
Contributor Author

你好,这个 PR 先合并了,后续期望能够提供一个官网的 Demo ~ 🎉

ok

@Aarebecca Aarebecca mentioned this pull request Mar 18, 2024
1 task
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

3 participants