react-digraph
Advanced tools
Comparing version 8.0.0-alpha.0 to 8.0.0-alpha.1
{ | ||
"name": "react-digraph", | ||
"description": "directed graph react component", | ||
"version": "8.0.0-alpha.0", | ||
"version": "8.0.0-alpha.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "uber-library", |
@@ -114,7 +114,7 @@ # react-digraph | ||
edgeTypes={EdgeTypes} | ||
onSelectNode={this.onSelectNode} | ||
allowMultiselect={true} | ||
onSelect={this.onSelect} | ||
onCreateNode={this.onCreateNode} | ||
onUpdateNode={this.onUpdateNode} | ||
onDeleteNode={this.onDeleteNode} | ||
onSelectEdge={this.onSelectEdge} | ||
onCreateEdge={this.onCreateEdge} | ||
@@ -213,3 +213,3 @@ onSwapEdge={this.onSwapEdge} | ||
| `onSelect` | `func` | `false` | Called when nodes are selected when `allowMultiselect` is true. Is passed an object with nodes and edges included. | | ||
| `onSelectNode` | `func` | `false` | Called when a node is selected. | | ||
| `onSelectNode` | `func` | `false` | To be Deprecated: Called when a node is selected. | | ||
| `onCreateNode` | `func` | `true` | Called when a node is created. | | ||
@@ -219,3 +219,3 @@ | `onContextMenu` | `func` | `true` | Called when contextmenu event triggered. | | ||
| `onDeleteNode` | `func` | `true` | Called when a node is deleted. This function should also delete connected edges. | | ||
| `onSelectEdge` | `func` | `true` | Called when an edge is selected. | | ||
| `onSelectEdge` | `func` | `true` | To be Deprecated: Called when an edge is selected. | | ||
| `onCreateEdge` | `func` | `true` | Called when an edge is created. | | ||
@@ -222,0 +222,0 @@ | `onSwapEdge` | `func` | `true` | Called when an edge `'target'` is swapped. | |
@@ -97,2 +97,7 @@ /* | ||
export type SelectionT = { | ||
nodes: Map<string, INode> | null, | ||
edges: Map<string, INode> | null | ||
}; | ||
export const Edge: React.Component<IEdgeProps>; | ||
@@ -147,3 +152,3 @@ | ||
) => void, | ||
onSelect?: (selected: { nodes: Map<string, INode> | null, edges: Map<string, IEdge> | null }) => void; | ||
onSelect?: (selected: SelectionT) => void; | ||
onSelectEdge?: (selectedEdge: IEdge) => void; | ||
@@ -150,0 +155,0 @@ onSelectNode?: (node: INode | null, event: any) => void; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2042681
1618