Skip to main content

components_Graph._internal_

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

Namespace: <internal>#

components/Graph.

Table of contents#

Type aliases#

Type aliases#

GraphConfig#

Ƭ GraphConfig: Object

Type declaration#

NameTypeDescription
backgroundColor?numberViewport background color
clusters?Cluster[]Cluster config data
edges?GraphEdgesConfigGraph edge data list
graphId?stringRelated graph id, if not set, it will be generated
layout?typeof default["cose"] & { expansion?: number ; runLayout?: boolean }Calculate the layout of the graph and set the node positions.
nodes?GraphNodesConfigGraph node data list
theme?ThemeTheme for graph stage and elements
transform?ObjectViewport transform data
transform.pivotX?number-
transform.pivotY?number-
transform.rotation?number-
transform.scaleX?number-
transform.scaleY?number-
transform.skewX?number-
transform.skewY?number-
transform.x?number-
transform.y?number-
zoom?numberViewport zoom level

Defined in#

type/index.ts:487


GraphEdgesConfig#

Ƭ GraphEdgesConfig: EdgeConfig & { ids?: { [id: string]: EdgeConfig; } }

Defined in#

type/index.ts:481


GraphNodesConfig#

Ƭ GraphNodesConfig: NodeConfig & { ids?: { [id: string]: NodeConfig; } }

Defined in#

type/index.ts:475


OnBoxSelection#

Ƭ OnBoxSelection: (event: OnBoxSelectionEvent) => void

Type declaration#

â–¸ (event): void

Parameters#
NameType
eventOnBoxSelectionEvent
Returns#

void

Defined in#

type/index.ts:904


OnBoxSelectionEvent#

Ƭ OnBoxSelectionEvent: Object

Type declaration#

NameTypeDescription
boundingBoxBoundingBoxSelected boundingBox
elementscytoscape.CollectionSelected elements
eventPIXI.InteractionEventOriginal Event
itemIdsstring[]Selected elements ids

Defined in#

type/index.ts:885


RenderNode#

Ƭ RenderNode<Additional>: (c: { config: NodeConfig ; context: NodeContext ; element: NodeElement ; item: NodeData } & RenderElementParams & Additional) => React.ReactElement

Type parameters#

NameType
Additionalextends Record<string, any> = {}

Type declaration#

â–¸ (c): React.ReactElement

Parameters#
NameType
c{ config: NodeConfig ; context: NodeContext ; element: NodeElement ; item: NodeData } & RenderElementParams & Additional
Returns#

React.ReactElement

Defined in#

type/index.ts:294