feat(core): add isValidConnection prop

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-08 16:32:11 +01:00
committed by Braks
parent 7519b31b8f
commit 05bc748100
6 changed files with 37 additions and 11 deletions
@@ -29,6 +29,7 @@ const EdgeWrapper = defineComponent({
removeSelectedEdges,
findEdge,
findNode,
isValidConnection,
} = useVueFlow()
const hooks = useEdgeHooks(props.edge, emits)
@@ -60,7 +61,7 @@ const EdgeWrapper = defineComponent({
nodeId,
handleId,
type,
isValidConnection: undefined,
isValidConnection: isValidConnection.value,
edgeUpdaterType,
onEdgeUpdate,
onEdgeUpdateEnd,