Skip to main content

components_EdgeContainer._internal_

perfect-graph / Modules / components/EdgeContainer / <internal>

Namespace: <internal>#

components/EdgeContainer.

Table of contents#

Type aliases#

Type aliases#

DrawLine#

Ƭ DrawLine: (arg: Parameters<RenderEdge>[0] & { from: Position ; graphics: PIXI.Graphics ; to: Position }) => void

Type declaration#

â–¸ (arg): void

Graph drawLine function for edge vectors

Parameters#
NameType
argParameters<RenderEdge>[0] & { from: Position ; graphics: PIXI.Graphics ; to: Position }
Returns#

void

Defined in#

type/index.ts:676


EdgeConfig#

Ƭ EdgeConfig: { view: { alpha: number ; fill: { default: number ; hovered: number ; nodeSelected: number ; selected: number } ; labelVisible: boolean ; lineType: EdgeLineType ; width: number } } & ElementConfig<EdgeElement>

Defined in#

type/index.ts:432


EdgeContext#

Ƭ EdgeContext: ElementContext<EdgeElementSettings> & { element: EdgeElement }

Defined in#

type/index.ts:143


EdgeLineType#

Ƭ EdgeLineType: "bezier" | "segments" | "line"

Defined in#

type/index.ts:430


RenderEdge#

Ƭ RenderEdge<Additional>: (c: { config: EdgeConfig ; context: EdgeContext ; count: number ; element: EdgeElement ; from: Position ; index: number ; item: EdgeData ; sortedIndex: number ; sourceElement: NodeElement ; targetElement: NodeElement ; to: Position } & RenderElementParams & Additional) => React.ReactElement

Type parameters#

NameType
Additionalextends Record<string, any> = {}

Type declaration#

â–¸ (c): React.ReactElement

Parameters#
NameType
c{ config: EdgeConfig ; context: EdgeContext ; count: number ; element: EdgeElement ; from: Position ; index: number ; item: EdgeData ; sortedIndex: number ; sourceElement: NodeElement ; targetElement: NodeElement ; to: Position } & RenderElementParams & Additional
Returns#

React.ReactElement

Defined in#

type/index.ts:247