-
Notifications
You must be signed in to change notification settings - Fork 268
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
请问怎么控制一个节点和一个节点之间只能连接一条线? #44
Comments
可以实现啊,可以在dragEdge控制连线,或者hoverNodeActived中控制是否显示anchor |
我要怎么判断已经连了一次线了呢? |
node有getOutEdges()方法可以获取出去的线,线又可以获取源节点和目的节点 |
感谢解答,现在还有个需求就是,给 线 插入两个id,分别是源节点自定义的id和目标节点的自定义id,请问有没有什么好的实现方法呢? |
edge上可以拿到source和target这俩就是源和目标节点的id啊 |
|
获取ID可以了,但是 控制线只可以 这个需求不知道怎么实现。。 如果直接在dragEdgs.js里面控制 |
控制线只可以
节点1=>节点2;节点2=>节点1
只可以一次来回,节点1只允许连接一次节点2,节点2也是只可以连接一次节点1
如果还有节点3也可以连接节点3,但是也是只可以连接一次
请问这样的可以实现吗
The text was updated successfully, but these errors were encountered: