fix: node not updating handlebounds when handle pos changes

* watch source & target pos and update node dimensions on next tick
This commit is contained in:
Braks
2021-10-22 08:16:32 +02:00
parent 9532615cfd
commit 26b3901bd5
4 changed files with 44 additions and 25 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ const init = (opts: typeof props) => {
onBeforeUnmount(() => store?.$dispose())
watch(props, (val) => init(val))
onMounted(() => init(props))
init(props)
const nodeTypes = createNodeTypes({ ...defaultNodeTypes, ...props.nodeTypes })
const edgeTypes = createEdgeTypes({ ...defaultEdgeTypes, ...props.edgeTypes })