regression(nodes,edges): removing nodes/edges breaks renderer

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 0bfca93a7b
commit 528cac5d33
4 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -1,20 +1,20 @@
<script lang="ts" setup>
import { useHandle, useVueFlow } from '../../composables'
import { ConnectionMode, Position } from '../../types'
import { ConnectionMode, GraphEdge, Position } from '../../types'
import { getEdgePositions, getHandle, getMarkerId } from '../../utils'
import EdgeAnchor from './EdgeAnchor.vue'
interface EdgeWrapper {
id: string
name: string
edge: GraphEdge
selectable?: boolean
updatable?: boolean
}
const props = defineProps<EdgeWrapper>()
const { store } = useVueFlow()
const edge = computed(() => store.getEdge(props.id)!)
if (!edge.value) throw new Error(`Edge with ${props.id} not found!`)
const edge = useVModel(props, 'edge')
const updating = ref(false)