refactor(core): change nodeEl and edgeEl type to allow ref(null)

This commit is contained in:
braks
2023-07-10 19:20:26 +02:00
committed by Braks
parent 11f584a08a
commit 435cb9b687
9 changed files with 12 additions and 13 deletions
@@ -64,7 +64,7 @@ const NodeWrapper = defineComponent({
const connectedEdges = computed(() => getConnectedEdges([node.value], edges.value))
const nodeElement = ref<HTMLDivElement>()
const nodeElement = ref<HTMLDivElement | null>(null)
provide(NodeRef, nodeElement)