@neo4j-nvl/react 0.3.9-9edeba96 → 0.3.9-ce347313
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.
|
@@ -17,19 +17,21 @@ export interface BasicReactWrapperProps {
|
|
|
17
17
|
nvlCallbacks?: ExternalCallbacks;
|
|
18
18
|
/** An object containing options for the Nvl instance */
|
|
19
19
|
nvlOptions?: NvlOptions;
|
|
20
|
-
/** Sets the positions of the nodes in the graph using the
|
|
20
|
+
/** Sets the positions of the nodes in the graph using the setNodePositions method. */
|
|
21
21
|
positions?: Node[];
|
|
22
22
|
/**
|
|
23
|
-
* Sets the zoom level of the viewport using the
|
|
24
|
-
* @
|
|
23
|
+
* Sets the zoom level of the viewport using the setZoom method.
|
|
24
|
+
* @remarks If both zoom and pan are provided, the setZoomAndPan method will be used.
|
|
25
25
|
*/
|
|
26
26
|
zoom?: number;
|
|
27
27
|
/**
|
|
28
|
-
* Sets the pan coordinates of the viewport using the
|
|
29
|
-
* @
|
|
28
|
+
* Sets the pan coordinates of the viewport using the setPan method.
|
|
29
|
+
* @remarks If both zoom and pan are provided, the setZoomAndPan method will be used.
|
|
30
30
|
*/
|
|
31
31
|
pan?: {
|
|
32
|
+
/** The x coordinate of the pan. */
|
|
32
33
|
x: number;
|
|
34
|
+
/** The y coordinate of the pan. */
|
|
33
35
|
y: number;
|
|
34
36
|
};
|
|
35
37
|
/** A callback to handle any errors that happen during NVL initialization */
|
|
@@ -37,7 +39,7 @@ export interface BasicReactWrapperProps {
|
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
*
|
|
40
|
-
* A basic React wrapper that wraps the base
|
|
42
|
+
* A basic React wrapper that wraps the NVL base library within a React component.
|
|
41
43
|
* It takes the class' arguments as properties, which are passed to the NVL constructor.
|
|
42
44
|
* Any changes in properties will be reflected in the NVL instance by calling the corresponding methods.
|
|
43
45
|
*
|
|
@@ -6,7 +6,7 @@ import { getMapDifferences, getNodeAttributeDifferences } from '../utils/graph-c
|
|
|
6
6
|
import { useDeepCompareEffect } from '../utils/hooks';
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
|
-
* A basic React wrapper that wraps the base
|
|
9
|
+
* A basic React wrapper that wraps the NVL base library within a React component.
|
|
10
10
|
* It takes the class' arguments as properties, which are passed to the NVL constructor.
|
|
11
11
|
* Any changes in properties will be reflected in the NVL instance by calling the corresponding methods.
|
|
12
12
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-nvl/react",
|
|
3
|
-
"version": "0.3.9-
|
|
3
|
+
"version": "0.3.9-ce347313",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"homepage": "https://neo4j.com/docs/nvl/current/",
|
|
6
6
|
"license": "SEE LICENSE IN 'LICENSE.txt'",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"react-dom": "^19.1.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@neo4j-nvl/base": "0.3.9-
|
|
40
|
-
"@neo4j-nvl/interaction-handlers": "0.3.9-
|
|
39
|
+
"@neo4j-nvl/base": "0.3.9-ce347313",
|
|
40
|
+
"@neo4j-nvl/interaction-handlers": "0.3.9-ce347313",
|
|
41
41
|
"lodash": "4.17.21"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|