Skip to content

Function: useEdge ​

â–¸ useEdge<T>(id?): Object

Access an edge

If no edge id is provided, the edge id is injected from context

Meaning if you do not provide an id, this composable has to be called in a child of your custom edge component, or it will throw

Type parameters ​

NameType
Textends GraphEdge<any, any, string> = GraphEdge<any, any, string>

Parameters ​

NameType
id?string

Returns ​

Object

NameType
edgeundefined | T
edgeElRef<null | SVGElement>
idstring

Released under the MIT License.