Graph
A React component to create a Graph View easily, you can just pass data and render methods.
#
Examples#
Reference#
PropsName | Type | Description |
---|---|---|
children? | 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 |