Socket
Socket
Sign inDemoInstall

react-digraph

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-digraph - npm Package Compare versions

Comparing version 8.0.0-alpha.0 to 8.0.0-alpha.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc