Function: useEdge ​
â–¸ useEdge<Data
, CustomEvents
>(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 ​
Name | Type |
---|---|
Data | any |
CustomEvents | extends Record <string , CustomEvent <any [], any >> = any |
Parameters ​
Name | Type |
---|---|
id? | string |
Returns ​
Object
Name | Type |
---|---|
edge | undefined | GraphEdge <Data , CustomEvents , string > |
edgeEl | null | Ref <SVGElement > |
id | string |