fix: zoom pan helper

This commit is contained in:
Braks
2021-10-19 20:09:43 +02:00
parent a895853b64
commit c3fb3cd10a
38 changed files with 214 additions and 277 deletions

View File

@@ -15,7 +15,7 @@ const onElementsRemove = (elementsToRemove: Elements) =>
const onConnect = (params: Connection | Edge) => (elements.value = addEdge(params, elements.value as Elements))
</script>
<template>
<Flow :elements="elements" :custom-connection-line="ConnectionLine" @elementsRemove="onElementsRemove" @connect="onConnect">
<Flow :elements="elements" :custom-connection-line="ConnectionLine" @elements-remove="onElementsRemove" @connect="onConnect">
<Background :variant="BackgroundVariant.Lines" />
</Flow>
</template>