components_EdgeContainer
perfect-graph / Modules / components/EdgeContainer
Module: components/EdgeContainer#
Table of contents#
Namespaces#
Type aliases#
Variables#
Functions#
Type aliases#
EdgeContainerProps#
Ƭ EdgeContainerProps: Object
Type declaration#
| Name | Type | Description |
|---|---|---|
children | RenderEdge | - |
config | EdgeConfig | Edge config data |
drawLine? | DrawLine | Draw line function for edge connection vector |
graphID | string | Related graph id |
graphRef | React.RefObject<GraphRef> | Related graph instance ref |
item | any | Edge data |
Defined in#
components/EdgeContainer/index.tsx:21
EdgeContainerType#
Ƭ EdgeContainerType: React.FC<EdgeContainerProps>
Defined in#
components/EdgeContainer/index.tsx:45
Variables#
EdgeContainer#
• EdgeContainer: FC<EdgeContainerProps>
The container for Edge Elements. It facilitates drawLine, visibility, and other operations.
Defined in#
components/EdgeContainer/index.tsx:321
Functions#
calculateEdgeGroupInfo#
â–¸ Const calculateEdgeGroupInfo(edge): Object
The calculator for the edges connection info.
Parameters#
| Name | Type |
|---|---|
edge | EdgeSingular |
Returns#
Object
| Name | Type |
|---|---|
count | number |
index | number |
sortedIndex | number |
Defined in#
components/EdgeContainer/index.tsx:52
calculateVectorInfo#
â–¸ Const calculateVectorInfo(source, to): Object
The calculator for the edge connection vector.
Parameters#
| Name | Type |
|---|---|
source | NodeSingular |
to | NodeSingular |
Returns#
Object
| Name | Type |
|---|---|
distanceVector | Victor |
fromPosition | Victor |
midpointPosition | Victor |
normVector | Victor |
toPosition | Victor |
undirectedNormVector | Victor |
undirectedUnitVector | Victor |
unitVector | Victor |