@neo4j-nvl/base 0.3.8-cf97142e → 0.3.8-dfca089f
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.
|
@@ -12,9 +12,7 @@ export interface LabelGeometry {
|
|
|
12
12
|
*/
|
|
13
13
|
export default class ArrowBundle {
|
|
14
14
|
key: string;
|
|
15
|
-
rels:
|
|
16
|
-
rel: Relationship;
|
|
17
|
-
}[];
|
|
15
|
+
rels: Map<string, Relationship>;
|
|
18
16
|
waypointPath: WaypointPath;
|
|
19
17
|
readonly selfReferring: boolean;
|
|
20
18
|
fromId: string;
|
|
@@ -33,6 +31,7 @@ export default class ArrowBundle {
|
|
|
33
31
|
*/
|
|
34
32
|
insert(rel: Relationship): void;
|
|
35
33
|
setLabelInfo(relId: string, labelInfo: LabelGeometry): void;
|
|
34
|
+
has({ id }: Relationship): boolean;
|
|
36
35
|
/**
|
|
37
36
|
* Remove an arrow from the bundle
|
|
38
37
|
* @param {Relationship} rel - The arrow to remove
|
|
@@ -43,6 +42,7 @@ export default class ArrowBundle {
|
|
|
43
42
|
* @returns {number} The size of the arrow bundle
|
|
44
43
|
*/
|
|
45
44
|
size(): number;
|
|
45
|
+
relArray(): Relationship[];
|
|
46
46
|
/**
|
|
47
47
|
* Get the maximum font size of the arrows in the bundle
|
|
48
48
|
* @returns {number} The maximum font size of the arrows in the bundle
|
|
@@ -17,7 +17,7 @@ export default class ArrowBundler {
|
|
|
17
17
|
* @param {Record<string, Relationship>} removedRels - The removed relations
|
|
18
18
|
* @param {Record<string, WaypointPath>} waypoints - The waypoints
|
|
19
19
|
*/
|
|
20
|
-
updateData(addedRels: Record<string, Relationship>, removedRels: Record<string, Relationship>, waypoints: Record<string, WaypointPath>): void;
|
|
20
|
+
updateData(addedRels: Record<string, Relationship>, removedRels: Record<string, Relationship>, updatedRels: Record<string, Relationship>, waypoints: Record<string, WaypointPath>): void;
|
|
21
21
|
/**
|
|
22
22
|
* Updates the positions of the arrow bundles based on the provided `positionMap`.
|
|
23
23
|
* @param positionMap A map of node IDs to positions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-nvl/base",
|
|
3
|
-
"version": "0.3.8-
|
|
3
|
+
"version": "0.3.8-dfca089f",
|
|
4
4
|
"license": "SEE LICENSE IN 'LICENSE.txt'",
|
|
5
5
|
"homepage": "https://neo4j.com/docs/nvl/current/",
|
|
6
6
|
"description": "Base library for the Neo4j Visualization Library",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "yarn global:tsc && webpack",
|
|
23
|
-
"
|
|
23
|
+
"build:dev": "yarn global:tsc && webpack --mode development",
|
|
24
|
+
"watch": "concurrently 'tsc -w' 'webpack -w --mode development' -k -n 'tsc,webpack' -c 'cyan,magenta'",
|
|
24
25
|
"test": "yarn global:jest",
|
|
25
26
|
"eslint": "yarn global:eslint ./src/",
|
|
26
27
|
"coverage": "yarn test --coverage --silent",
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
"postpack": "rm LICENSE.txt && rm CHANGELOG.md"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@neo4j-nvl/layout-workers": "0.3.8-
|
|
32
|
+
"@neo4j-nvl/layout-workers": "0.3.8-dfca089f",
|
|
32
33
|
"@segment/analytics-next": "^1.70.0",
|
|
33
34
|
"color-string": "^1.9.1",
|
|
34
35
|
"d3-force": "^3.0.0",
|