refactor(edges): move edge event handlers into Wrapper component

This commit is contained in:
braks
2022-10-10 21:33:44 +02:00
committed by Braks
parent 2684272308
commit 13fed0a3fb
3 changed files with 121 additions and 198 deletions
+3 -1
View File
@@ -4,7 +4,7 @@ import { getElements } from './utils'
const { nodes, edges } = getElements(10, 10)
const { getNode, onPaneReady } = useVueFlow({
const { onPaneReady } = useVueFlow({
nodes,
edges,
})
@@ -13,6 +13,8 @@ onPaneReady((i) => {
i.fitView({
padding: 0.2,
})
console.log(i.getEdges.value)
console.log(i.getElements.value)
})
</script>