@neo4j-nvl/base 0.3.8-dfca089f → 0.3.8-e5dee203

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.
@@ -7,7 +7,7 @@
7
7
 
8
8
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
9
9
 
10
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
10
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
11
11
 
12
12
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
13
13
 
@@ -1,5 +1,5 @@
1
1
  import { type ExternalCallbacks } from './ExternalCallbackHandler';
2
- type CallbackFunction = ExternalCallbacks['onError'] | ExternalCallbacks['onLayoutComputing'] | ExternalCallbacks['onLayoutDone'] | ExternalCallbacks['onLayoutStep'];
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-dfca089f",
3
+ "version": "0.3.8-e5dee203",
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-dfca089f",
32
+ "@neo4j-nvl/layout-workers": "0.3.8-e5dee203",
33
33
  "@segment/analytics-next": "^1.70.0",
34
34
  "color-string": "^1.9.1",
35
35
  "d3-force": "^3.0.0",