ConnectionMode
ConnectionMode
枚举为 React Flow 中的连接行为提供了两种选项:
¥The ConnectionMode
enum provides two options for connection behavior in React Flow:
-
Strict
:连接只能从源句柄开始,到目标句柄结束。¥
Strict
: Connections can only be made starting from a source handle and ending on a target handle -
Loose
:任何句柄之间都可以建立连接,无论类型如何。¥
Loose
: Connections can be made between any handles, regardless of type
enum ConnectionMode {
Strict = 'strict',
Loose = 'loose',
}
Last updated on