fix: replace store id with flow id

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent f8a23c59ec
commit 600e3866c4
8 changed files with 24 additions and 34 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ interface NodeWrapperProps {
const props = defineProps<NodeWrapperProps>()
const emit = defineEmits(['update:node'])
const node = useVModel(props, 'node', emit)
const { store } = useVueFlow()
const { id, store } = useVueFlow()
provide(NodeId, props.node.id)
const nodeElement = templateRef<HTMLDivElement>('node-element', null)
@@ -97,7 +97,7 @@ onMounted(() => {
({ width: w, height: h }) => {
nextTick(() => {
if (w > 0 && h > 0) {
const handleBounds = getHandleBounds(nodeElement.value, store.transform[2], store.id)
const handleBounds = getHandleBounds(nodeElement.value, store.transform[2], id)
node.value.dimensions = {
width: w,