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

如何知道哪个锚点连到了哪个锚点 #33

Open
amoalys opened this issue Jun 10, 2021 · 1 comment
Open

如何知道哪个锚点连到了哪个锚点 #33

amoalys opened this issue Jun 10, 2021 · 1 comment

Comments

@amoalys
Copy link

amoalys commented Jun 10, 2021

jsplumb并不知道你的数据结构。

当某个连线被建立时,会触发connection事件。

你需要订阅这个事件。这个事件会告诉你很多信息,包括从哪个点连接到哪个点。

告诉的信息是哪个节点与哪个节点相连了 ,怎么知道这个节点的下的锚点与另一个节点下的锚点相连了 ? 可以给锚点设置名字吗?

@wangduanduan
Copy link
Owner

建议你把connnection事件打印出来,里边肯定是有锚点的信息的。因为连线就是从一个锚点到另一个锚点的。

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