Skip to content

Access handle of custom node #1491

Answered by bcakmakoglu
SelfMade2001 asked this question in Q&A
Discussion options

You must be logged in to vote

Well, I guess since you've seemingly never touched TypeScript enums aren't a familiar concept (yet?) ^^

You import this, same as Position for <Handle>, from @vue-flow/core.

<script lang="ts" setup>
import { ConnectionMode, VueFlow } from '@vue-flow/core'

const nodes = ref([])
</script>

<template>
	<VueFlow :nodes="nodes" :connection-mode="ConnectionMode.Strict" />
</template>

Second of all, I would really appreciate an explanation of how to access handles in VueFlow and how they are stored?

What exactly are you looking for?
"Handles" aren't stored anywhere, VueFlow stores handle bounds which isn't the same thing.
What are you trying to achieve?
Describe the problem you are trying to s…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SelfMade2001
Comment options

@bcakmakoglu
Comment options

Answer selected by SelfMade2001
@SelfMade2001
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants