components_Graph
perfect-graph / Modules / components/Graph
#
Module: components/Graph#
Table of contents#
References#
Namespaces#
Type aliases#
Variables#
References#
DefaultRenderClusterNodeRe-exports DefaultRenderClusterNode
#
DefaultRenderEdgeRe-exports DefaultRenderEdge
#
DefaultRenderNodeRe-exports DefaultRenderNode
#
Type aliases#
GraphPropsƬ GraphProps: Object
#
Type declarationName | Type | Description |
---|---|---|
children? | React.ReactNode | - |
config? | GraphConfig | All graph config for nodes and edges |
drawLine? | DrawLine | The function to draw line for edge connection vectors |
edges | EdgeData [] | Edge data list to render |
extraData? | any | To rerender the graph when the extra data changes |
nodes | NodeData [] | Node data list to render |
onBoxSelection? | OnBoxSelection | Event handler for box selection event. It gives the selected nodes |
onPress? | ViewportOnPress | Event handler for graph canvas background |
renderClusterNode? | RenderClusterNode | It returns a PIXI.DisplayObject instance as React.Node for the cluster node |
renderEdge? | RenderEdge | It returns a PIXI.DisplayObject instance as React.Node for the edge |
renderNode? | RenderNode | It returns a PIXI.DisplayObject instance as React.Node for the node |
selectedElementIds? | string [] | It gives the selected nodes. It is used for selected node highlighting and DataBar |
style? | ViewProps ["style" ] | Style for graph container view |
#
Defined in#
Variables#
Graph• Graph: FC
<PropsWithRef
<GraphRef
, GraphProps
>>
The stage creator for the network graph. It handles rendering operations of nodes and edges.