components_EdgeContainer
perfect-graph / Modules / components/EdgeContainer
#
Module: components/EdgeContainer#
Table of contents#
Namespaces#
Type aliases#
Variables#
Functions#
Type aliases#
EdgeContainerPropsƬ EdgeContainerProps: Object
#
Type declarationName | 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 incomponents/EdgeContainer/index.tsx:21
#
EdgeContainerTypeƬ EdgeContainerType: React.FC
<EdgeContainerProps
>
#
Defined incomponents/EdgeContainer/index.tsx:45
#
Variables#
EdgeContainer• EdgeContainer: FC
<EdgeContainerProps
>
The container for Edge Elements. It facilitates drawLine, visibility, and other operations.
#
Defined incomponents/EdgeContainer/index.tsx:321
#
Functions#
calculateEdgeGroupInfoâ–¸ Const
calculateEdgeGroupInfo(edge
): Object
The calculator for the edges connection info.
#
ParametersName | Type |
---|---|
edge | EdgeSingular |
#
ReturnsObject
Name | Type |
---|---|
count | number |
index | number |
sortedIndex | number |
#
Defined incomponents/EdgeContainer/index.tsx:52
#
calculateVectorInfoâ–¸ Const
calculateVectorInfo(source
, to
): Object
The calculator for the edge connection vector.
#
ParametersName | Type |
---|---|
source | NodeSingular |
to | NodeSingular |
#
ReturnsObject
Name | Type |
---|---|
distanceVector | Victor |
fromPosition | Victor |
midpointPosition | Victor |
normVector | Victor |
toPosition | Victor |
undirectedNormVector | Victor |
undirectedUnitVector | Victor |
unitVector | Victor |