chore(examples): cleanup examples

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-25 16:17:04 +01:00
committed by Braks
parent bac98930da
commit 48c4f0a0eb
4 changed files with 9 additions and 12 deletions
+2 -7
View File
@@ -67,21 +67,16 @@ onMounted(() => {
]
})
const { onPaneReady } = useVueFlow({
useVueFlow({
connectionMode: ConnectionMode.Loose,
connectionLineStyle,
snapToGrid: true,
snapGrid,
defaultZoom: 1.5,
})
onPaneReady((i) => {
i.fitView()
console.log('flow loaded:', i)
})
</script>
<template>
<VueFlow v-model="elements" :style="{ backgroundColor: bgColor }">
<VueFlow v-model="elements" fit-view-on-init :style="{ backgroundColor: bgColor }">
<template #node-selectorNode="props">
<ColorSelectorNode v-bind="props" />
</template>