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

connecting/validateXXX #3981

Open
ajaxpost opened this issue Oct 18, 2023 · 2 comments
Open

connecting/validateXXX #3981

ajaxpost opened this issue Oct 18, 2023 · 2 comments
Labels
type: feature 新功能 Feature/enhancement requests

Comments

@ajaxpost
Copy link

ajaxpost commented Oct 18, 2023

功能描述

官方链接:https://x6.antv.antgroup.com/tutorial/basic/interacting#validatexxx

目前 validateXXX 只支持同步程序,我想从服务端获取某个节点的依赖关系,从而判断是否可以进行连线

目前是做不到这个功能的

期望解决方案

希望 validateXXX 函数们 可以支持返回一个 Promise 如果 reslove 代表即可连线 如果返回的 reject 代表不可以连线

@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 18, 2023

👋 @ajaxpost

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@NewByVector
Copy link
Contributor

好建议,欢迎提 PR。可以暂时通过下面方法解决:

  1. edge:connected 事件中发送请求到服务端
  2. 如果验证失败,则将这条边删除

@NewByVector NewByVector added the type: feature 新功能 Feature/enhancement requests label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature 新功能 Feature/enhancement requests
Projects
None yet
Development

No branches or pull requests

2 participants