Skip to main content

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#

NameTypeDescription
childrenRenderEdge-
configEdgeConfigEdge config data
drawLine?DrawLineDraw line function for edge connection vector
graphIDstringRelated graph id
graphRefReact.RefObject<GraphRef>Related graph instance ref
itemanyEdge 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#

NameType
edgeEdgeSingular

Returns#

Object

NameType
countnumber
indexnumber
sortedIndexnumber

Defined in#

components/EdgeContainer/index.tsx:52


calculateVectorInfo#

â–¸ Const calculateVectorInfo(source, to): Object

The calculator for the edge connection vector.

Parameters#

NameType
sourceNodeSingular
toNodeSingular

Returns#

Object

NameType
distanceVectorVictor
fromPositionVictor
midpointPositionVictor
normVectorVictor
toPositionVictor
undirectedNormVectorVictor
undirectedUnitVectorVictor
unitVectorVictor

Defined in#

components/EdgeContainer/index.tsx:84