@neo4j-nvl/base 0.3.8-dd6ab0e2 → 0.3.8-e4acdb02
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ExternalCallbacks } from './ExternalCallbackHandler';
|
|
2
|
-
type CallbackFunction = ExternalCallbacks[
|
|
2
|
+
type CallbackFunction = ExternalCallbacks[keyof ExternalCallbacks];
|
|
3
3
|
/**
|
|
4
4
|
* A class for registering and calling callbacks
|
|
5
5
|
* @example
|
|
@@ -9,6 +9,8 @@ export interface ExternalCallbacks {
|
|
|
9
9
|
onLayoutStep?: (p: Node[]) => void;
|
|
10
10
|
/** Triggered when NVL throws an error after initialization. */
|
|
11
11
|
onError?: (error: Error) => void;
|
|
12
|
+
/** Triggered when NVL is initialized. */
|
|
13
|
+
onInitialization?: () => void;
|
|
12
14
|
/** Triggered when a asynchronous layout calculation starts/stops. */
|
|
13
15
|
onLayoutComputing?: (isComputing: boolean) => void;
|
|
14
16
|
onWebGLContextLost?: (webGLContextEvent: WebGLContextEvent) => void;
|
|
@@ -20,6 +22,7 @@ export declare const isExternalCallback: (callback: unknown) => callback is keyo
|
|
|
20
22
|
export default class ExternalCallbackHandler {
|
|
21
23
|
callbacks: ExternalCallbacks;
|
|
22
24
|
constructor(externalCallbacks?: ExternalCallbacks);
|
|
25
|
+
onInitialization(): void;
|
|
23
26
|
onZoomTransitionDone(): void;
|
|
24
27
|
onLayoutDone(): void;
|
|
25
28
|
onLayoutStep(p: Node[]): void;
|
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-e4acdb02",
|
|
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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"postpack": "rm LICENSE.txt && rm CHANGELOG.md"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@neo4j-nvl/layout-workers": "0.3.8-
|
|
32
|
+
"@neo4j-nvl/layout-workers": "0.3.8-e4acdb02",
|
|
33
33
|
"@segment/analytics-next": "^1.70.0",
|
|
34
34
|
"color-string": "^1.9.1",
|
|
35
35
|
"d3-force": "^3.0.0",
|