Skip to content

Function: useNode

â–¸ useNode<Data, CustomEvents>(id?): Object

Type parameters

NameType
Dataany
CustomEventsextends Record<string, CustomEvent<any[], any>> = any

Parameters

NameType
id?string

Returns

Object

NameType
connectedEdgesComputedRef<GraphEdge<any, any>[]>
idstring
nodeGraphNode<Data, CustomEvents>
nodeElnull | Ref<HTMLDivElement>
parentNodeComputedRef<undefined | GraphNode<any, any>>

Released under the MIT License.