如何根据不同节点展示不同的连线样式? #4175
-
我自定义了几个节点,有不同的shape。 目前,我是在
但是,我不知道如何动态设置这个 stroke |
Beta Was this translation helpful? Give feedback.
Answered by
LuoYuChenZhou
Jan 23, 2024
Replies: 2 comments
-
原来createEdge这个方法,可以拿到起点元素的样式呀。
不过,还有个小问题,这样的话,只能拿到起点的shape,终点的有办法拿到吗? |
Beta Was this translation helpful? Give feedback.
0 replies
-
找到另外个方法了,上面说的createEdge中,不设置特殊逻辑了,改成在连线的时候加监听实现了
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LuoYuChenZhou
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
找到另外个方法了,上面说的createEdge中,不设置特殊逻辑了,改成在连线的时候加监听实现了