如何监听到连接桩连接到画布空白处? #2251
-
需求背景:从连接桩拖出连接线到画布空白处时,给一个快速创建节点的弹框。类似processon的功能,如下。 问题是,开启了connecting.allowBlank,怎么才能监听到触发了连接到空白处的事件呢? |
Beta Was this translation helpful? Give feedback.
Answered by
NewByVector
Jun 22, 2022
Replies: 1 comment
-
可以在 validateEdge 里面根据 edge 的 target 来判断是否连接到空白处。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
G-Veigar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以在 validateEdge 里面根据 edge 的 target 来判断是否连接到空白处。