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
+2 -2
View File
@@ -3,7 +3,7 @@ import type { VueFlowStore } from '~/types'
export const VueFlow: InjectionKey<VueFlowStore> = Symbol('vueFlow')
export const NodeId: InjectionKey<string> = Symbol('nodeId')
export const NodeRef: InjectionKey<Ref<HTMLDivElement>> = Symbol('nodeRef')
export const NodeRef: InjectionKey<Ref<HTMLDivElement | null>> = Symbol('nodeRef')
export const EdgeId: InjectionKey<string> = Symbol('edgeId')
export const EdgeRef: InjectionKey<Ref<SVGElement>> = Symbol('edgeRef')
export const EdgeRef: InjectionKey<Ref<SVGElement | null>> = Symbol('edgeRef')
export const Slots: InjectionKey<TSlots> = Symbol('slots')