components_Graph._internal_
perfect-graph / Modules / components/Graph / <internal>
#
Namespace: <internal>#
Table of contents#
Type aliases#
Type aliases#
GraphConfigƬ GraphConfig: Object
#
Type declarationName | Type | Description |
---|---|---|
backgroundColor? | number | Viewport background color |
clusters? | Cluster [] | Cluster config data |
edges? | GraphEdgesConfig | Graph edge data list |
graphId? | string | Related 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? | GraphNodesConfig | Graph node data list |
theme? | Theme | Theme for graph stage and elements |
transform? | Object | Viewport 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? | number | Viewport zoom level |
#
Defined in#
GraphEdgesConfigƬ GraphEdgesConfig: EdgeConfig
& { ids?
: { [id: string]: EdgeConfig
; } }
#
Defined in#
GraphNodesConfigƬ GraphNodesConfig: NodeConfig
& { ids?
: { [id: string]: NodeConfig
; } }
#
Defined in#
OnBoxSelectionƬ OnBoxSelection: (event
: OnBoxSelectionEvent
) => void
#
Type declarationâ–¸ (event
): void
#
ParametersName | Type |
---|---|
event | OnBoxSelectionEvent |
#
Returnsvoid
#
Defined in#
OnBoxSelectionEventƬ OnBoxSelectionEvent: Object
#
Type declarationName | Type | Description |
---|---|---|
boundingBox | BoundingBox | Selected boundingBox |
elements | cytoscape.Collection | Selected elements |
event | PIXI.InteractionEvent | Original Event |
itemIds | string [] | Selected elements ids |
#
Defined in#
RenderNodeƬ RenderNode<Additional
>: (c
: { config
: NodeConfig
; context
: NodeContext
; element
: NodeElement
; item
: NodeData
} & RenderElementParams
& Additional
) => React.ReactElement
#
Type parametersName | Type |
---|---|
Additional | extends Record <string , any > = {} |
#
Type declarationâ–¸ (c
): React.ReactElement
#
ParametersName | Type |
---|---|
c | { config : NodeConfig ; context : NodeContext ; element : NodeElement ; item : NodeData } & RenderElementParams & Additional |
#
ReturnsReact.ReactElement