@neo4j-nvl/interaction-handlers 0.3.0 → 0.3.1-016fc371
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +1 -1
- package/README.md +3 -3
- package/lib/interaction-handlers/base.d.ts +1 -1
- package/lib/interaction-handlers/box-select-interaction.d.ts +1 -1
- package/lib/interaction-handlers/click-interaction.d.ts +2 -2
- package/lib/interaction-handlers/click-interaction.js +1 -1
- package/lib/interaction-handlers/drag-node-interaction.d.ts +1 -1
- package/lib/interaction-handlers/draw-interaction.d.ts +1 -1
- package/lib/interaction-handlers/hover-interaction.d.ts +1 -1
- package/lib/interaction-handlers/lasso-interaction.d.ts +1 -1
- package/lib/interaction-handlers/pan-interaction.d.ts +1 -1
- package/lib/interaction-handlers/utils.d.ts +1 -1
- package/lib/interaction-handlers/zoom-interaction.d.ts +1 -1
- package/package.json +14 -6
package/LICENSE.txt
CHANGED
|
@@ -20,7 +20,7 @@ Effects of Termination. Upon termination of this Agreement: (i) the Software lic
|
|
|
20
20
|
CONFIDENTIALITY & FEEDBACK
|
|
21
21
|
Confidentiality. “Confidential Information” means any proprietary information received by the other party during, or prior to entering into, this Agreement that a party should know is confidential or proprietary based on the circumstances surrounding the disclosure including, without limitation, the Software and any non-public technical and business information. Confidential Information does not include information that (a) is or becomes generally known to the public through no fault of or breach of this Agreement by the receiving party; (b) is rightfully known by the receiving party at the time of disclosure without an obligation of confidentiality; (c) is independently developed by the receiving party without use of the disclosing party’s Confidential Information; or (d) the receiving party rightfully obtains from a third party without restriction on use or disclosure. Licensee and Neo4j will maintain the confidentiality of Confidential Information. The receiving party of any Confidential Information of the other party agrees not to use such Confidential Information for any purpose except as necessary to fulfill its obligations and exercise its rights under this Agreement. The receiving party shall protect the secrecy of and prevent disclosure and unauthorized use of the disclosing party’s Confidential Information using the same degree of care that it takes to protect its own confidential information and in no event shall use less than reasonable care. The receiving party may disclose the Confidential Information of the disclosing party if required by judicial or administrative process, provided that the receiving party first provides to the disclosing party prompt notice of such required disclosure to enable the disclosing party to seek a protective order. Upon termination or expiration of this Agreement, the receiving party will, at the disclosing party’s option, promptly return or destroy (and provide written certification of such destruction) the disclosing party’s Confidential Information.
|
|
22
22
|
Feedback To the extent Licensee sends or transmits any communications, comments, questions, suggestions, or related materials to Neo4j, whether by letter, e-mail, telephone, or otherwise (“Feedback”) suggesting or recommending changes to the Software, including, without limitation, new features or functionality relating thereto, Licensee hereby grants Neo4j a perpetual, irrevocable, non-exclusive, royalty-free, fully-paid-up, fully-transferable, worldwide license (with rights to sublicense through multiple tiers of sublicensees) under Licensee’s and its licensors’ intellectual property rights to reproduce, prepare derivative works of, distribute, perform, display, and otherwise fully use, practice and exploit such Feedback for any purpose whatsoever, including but not limited to, developing, manufacturing, having manufactured, licensing, marketing, and selling, directly or indirectly, products and services using such Feedback. Licensee agrees and understands that Neo4j is not obligated to use, display, reproduce, or distribute any such ideas, know-how, concepts, or techniques contained in the Feedback, and Licensee has no right to compel such use, display, reproduction, or distribution.
|
|
23
|
-
Neo4j collects metadata on use of the Software by all customers and uses de-identified data about such use, in aggregated and anonymous form, to compile and analyze statistical and performance information about the Software and general usage patterns. Collected metadata includes reporting the instantiation of the
|
|
23
|
+
Neo4j collects metadata on use of the Software by all customers and uses de-identified data about such use, in aggregated and anonymous form, to compile and analyze statistical and performance information about the Software and general usage patterns. Collected metadata includes reporting the instantiation of the base library, the basic wrapper or interactive react wrapper as well as when data was added to the graph including the number of nodes, relationships and the layout that was selected to display the graph. Licensee acknowledges and agrees that the Software may include such usage reporting functionality (which the Licensee may disable at its option). Neo4j may publish such aggregated and anonymous information so long as it does not contain any customer data or identify any individual.
|
|
24
24
|
|
|
25
25
|
WARRANTIES, SUPPORT & DISCLAIMER OF WARRANTIES. 4.1 Warranties. Each party represents and warrants to the other party that: (i) it has the full power and authority to enter into this Agreement and to carry out its obligations under this Agreement; and (ii) it has complied, and will in the future comply, with all laws, rules and regulations applicable to it in connection with its execution, delivery and performance of this Agreement. Neo4j represents and warrants to Licensee that the Software will materially conform to Neo4j’s Documentation for a period of ninety (90) calendar days from the date the Software is first made available to Subscriber (the “Warranty Period”). Licensee’s sole and exclusive remedy, and Neo4j’s sole and exclusive liability for any breach of this warranty will be, at Neo4j’s sole discretion, to either fix the Software or refund the applicable Software license fees paid by Subscriber, in each case on condition that Subscriber notifies Neo4j in writing of any alleged breach of this warranty within the Warranty Period. This warranty is null and void to the extent the Software: (i) fails to conform with this warranty as a result of its use with any third-party hardware, software, or services; (ii) is not upgraded to the currently supported version; or (iii) is used other than in accordance with the Documentation or is otherwise used in breach of this Agreement.
|
|
26
26
|
4.2 Support. Neo4j may provide You with support on the use of the Software as set forth in the applicable Order Form. Before using the Software Licensee should back up all of Licensee’s data and regularly back up data while using the Software.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Welcome to NVL (Neo4j Visualization Library). NVL is a collection of libraries that can be used to build custom graph visualizations like [Neo4j Bloom](https://neo4j.com/product/bloom/). The NVL library is also available as a React component that can be used in React applications.
|
|
4
4
|
|
|
5
|
-
This module is a collection of decorator classes that can be used to add interaction events to an NVL instance. The decorators are applied to the NVL class. You can find more information about the NVL class in the
|
|
5
|
+
This module is a collection of decorator classes that can be used to add interaction events to an NVL instance. The decorators are applied to the NVL class. You can find more information about the NVL class in the base library documentation.
|
|
6
6
|
|
|
7
7
|
## Consuming the library
|
|
8
8
|
|
|
@@ -23,7 +23,7 @@ Heres is an example on how to use an interaction handler with the NVL class:
|
|
|
23
23
|
|
|
24
24
|
```ts
|
|
25
25
|
import { ClickInteraction } from '@neo4j-nvl/interaction-handlers'
|
|
26
|
-
import { NVL } from '@neo4j-nvl/
|
|
26
|
+
import { NVL } from '@neo4j-nvl/base'
|
|
27
27
|
*
|
|
28
28
|
const nvl = new NVL(nodes, relationships, options)
|
|
29
29
|
const clickInteraction = new ClickInteraction(nvl)
|
|
@@ -34,4 +34,4 @@ clickInteraction.updateCallback('onNodeClick', (node) => {
|
|
|
34
34
|
|
|
35
35
|
If you are using React and want to add interactivity to your graph, you can also make use of the InteractiveReactWrapper.
|
|
36
36
|
|
|
37
|
-
You can find more instructions and examples on how to use NVL in the docs.
|
|
37
|
+
You can find more instructions and examples on how to use NVL interaction handlers in the [docs](https://neo4j.com/docs/nvl/current/interaction-handlers/).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HitTargets, NVL, Node, Relationship } from '@neo4j-nvl/
|
|
1
|
+
import type { HitTargets, NVL, Node, Relationship } from '@neo4j-nvl/base';
|
|
2
2
|
import { BaseInteraction } from './base';
|
|
3
3
|
/**
|
|
4
4
|
* Options for the click interaction handler to customize its behavior.
|
|
@@ -79,7 +79,7 @@ export type ClickInteractionCallbacks = {
|
|
|
79
79
|
* @example
|
|
80
80
|
* ```ts
|
|
81
81
|
* import { ClickInteraction } from '@neo4j-nvl/interaction-handlers'
|
|
82
|
-
* import { NVL } from '@neo4j-nvl/
|
|
82
|
+
* import { NVL } from '@neo4j-nvl/base'
|
|
83
83
|
*
|
|
84
84
|
* const nvl = new NVL(nodes, relationships, options)
|
|
85
85
|
* const clickInteraction = new ClickInteraction(nvl)
|
|
@@ -7,7 +7,7 @@ import { isDraggingMovement } from './utils';
|
|
|
7
7
|
* @example
|
|
8
8
|
* ```ts
|
|
9
9
|
* import { ClickInteraction } from '@neo4j-nvl/interaction-handlers'
|
|
10
|
-
* import { NVL } from '@neo4j-nvl/
|
|
10
|
+
* import { NVL } from '@neo4j-nvl/base'
|
|
11
11
|
*
|
|
12
12
|
* const nvl = new NVL(nodes, relationships, options)
|
|
13
13
|
* const clickInteraction = new ClickInteraction(nvl)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HitTargets, NVL, Node, Relationship } from '@neo4j-nvl/
|
|
1
|
+
import type { HitTargets, NVL, Node, Relationship } from '@neo4j-nvl/base';
|
|
2
2
|
import { BaseInteraction } from './base';
|
|
3
3
|
/**
|
|
4
4
|
* Options for the click interaction handler to customize its behavior.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NVL, Point } from '@neo4j-nvl/
|
|
1
|
+
import type { NVL, Point } from '@neo4j-nvl/base';
|
|
2
2
|
export declare const generateUniqueId: (digit: number) => string;
|
|
3
3
|
export declare const isDraggingMovement: (event: MouseEvent, originalPosition: Point) => boolean;
|
|
4
4
|
export declare const getCanvasPosition: (canvas: HTMLElement, mouseEvent: MouseEvent) => Point;
|
package/package.json
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-nvl/interaction-handlers",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1-016fc371",
|
|
4
4
|
"license": "SEE LICENSE IN 'LICENSE.txt'",
|
|
5
|
+
"homepage": "https://neo4j.com/docs/nvl/current/",
|
|
6
|
+
"description": "Interaction handlers for the Neo4j Visualization Library",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"neo4j",
|
|
9
|
+
"visualization",
|
|
10
|
+
"graph"
|
|
11
|
+
],
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://community.neo4j.com/c/neo4j-graph-platform/neo4j-bloom"
|
|
14
|
+
},
|
|
5
15
|
"main": "lib/index.js",
|
|
6
16
|
"types": "lib/index.d.ts",
|
|
7
17
|
"files": [
|
|
@@ -20,11 +30,8 @@
|
|
|
20
30
|
"displayName": "Interaction Handlers",
|
|
21
31
|
"tsconfig": "./tsconfig.json"
|
|
22
32
|
},
|
|
23
|
-
"engines": {
|
|
24
|
-
"yarn": "^4.1.1"
|
|
25
|
-
},
|
|
26
33
|
"dependencies": {
|
|
27
|
-
"@neo4j-nvl/
|
|
34
|
+
"@neo4j-nvl/base": "^0.3.1-016fc371",
|
|
28
35
|
"concaveman": "^1.2.1",
|
|
29
36
|
"lodash": "4.17.21"
|
|
30
37
|
},
|
|
@@ -39,5 +46,6 @@
|
|
|
39
46
|
"peerDependencies": {
|
|
40
47
|
"jest": "*",
|
|
41
48
|
"typescript": "*"
|
|
42
|
-
}
|
|
49
|
+
},
|
|
50
|
+
"stableVersion": "0.3.1"
|
|
43
51
|
}
|