@neo4j-nvl/base 2.0.0-55ef4c54 → 2.0.0-8a6da460
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.
|
@@ -54,8 +54,8 @@ export default class NvlController {
|
|
|
54
54
|
private readonly layoutTimeLimit;
|
|
55
55
|
private readonly smoothFrameBudgetMs;
|
|
56
56
|
private pixelRatio;
|
|
57
|
-
private readonly
|
|
58
|
-
private readonly
|
|
57
|
+
private readonly resizeObserver;
|
|
58
|
+
private readonly minimapResizeObserver;
|
|
59
59
|
private pendingZoom;
|
|
60
60
|
private pendingPan;
|
|
61
61
|
private pendingViewportOverride;
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
* it will use the width and height from the style properties.
|
|
9
9
|
*/
|
|
10
10
|
export declare const fitCanvasSizeToParent: (canvas: HTMLCanvasElement) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Calls `callback` whenever the size of `element` changes, using `ResizeObserver`.
|
|
13
|
+
*
|
|
14
|
+
* @returns The observer so the caller can `disconnect()` it.
|
|
15
|
+
*/
|
|
16
|
+
export declare const observeResize: (element: HTMLElement, callback: () => void) => ResizeObserver;
|
|
11
17
|
export declare const addWebGLContextLostListener: (canvas: HTMLCanvasElement, contextLostCallback?: (e: WebGLContextEvent) => void) => void;
|
|
12
18
|
export declare const createCanvasForScreenshot: (fullWidth: number, fullHeight: number) => HTMLCanvasElement;
|
|
13
19
|
export declare const createCanvasForRenderer: (parent?: HTMLElement, onContextLostCallback?: (e: WebGLContextEvent) => void) => HTMLCanvasElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-nvl/base",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-8a6da460",
|
|
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",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "yarn global:tsc &&
|
|
23
|
-
"build:dev": "yarn global:tsc &&
|
|
24
|
-
"watch": "concurrently 'tsc -w' '
|
|
22
|
+
"build": "yarn global:tsc && vite build",
|
|
23
|
+
"build:dev": "yarn global:tsc && vite build --mode development",
|
|
24
|
+
"watch": "concurrently 'tsc -w' 'vite build --watch --mode development' -k -n 'tsc,vite' -c 'cyan,magenta'",
|
|
25
25
|
"test": "yarn global:jest",
|
|
26
26
|
"test:perf": "yarn global:jest --testPathPattern='.bench.' --testPathIgnorePatterns=",
|
|
27
27
|
"eslint": "yarn global:eslint ./src/",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"postpack": "rm LICENSE.txt && rm CHANGELOG.md"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@neo4j-nvl/layout-workers": "2.0.0-
|
|
33
|
+
"@neo4j-nvl/layout-workers": "2.0.0-8a6da460",
|
|
34
34
|
"@segment/analytics-next": "1.81.1",
|
|
35
35
|
"color-string": "1.9.1",
|
|
36
36
|
"d3-force": "3.0.0",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"loglevel": "1.9.2",
|
|
41
41
|
"mobx": "6.15.0",
|
|
42
42
|
"node-pid-controller": "1.0.1",
|
|
43
|
-
"resizelistener": "1.1.0",
|
|
44
43
|
"tinycolor2": "1.6.0",
|
|
45
44
|
"uuid": "14.0.1"
|
|
46
45
|
},
|
|
@@ -51,11 +50,9 @@
|
|
|
51
50
|
"@types/lodash": "4.17.21",
|
|
52
51
|
"@types/segment-analytics": "0.0.38",
|
|
53
52
|
"@types/tinycolor2": "1.4.6",
|
|
54
|
-
"babel-loader": "8.4.1",
|
|
55
|
-
"copy-webpack-plugin": "11.0.0",
|
|
56
53
|
"neo4j-driver": "5.28.2",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
54
|
+
"vite": "7.3.5",
|
|
55
|
+
"vite-plugin-static-copy": "4.1.1"
|
|
59
56
|
},
|
|
60
57
|
"peerDependencies": {
|
|
61
58
|
"neo4j-driver": "*"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The buffer module from node.js, for the browser.
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
-
|
|
10
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
11
|
-
|
|
12
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @license
|
|
16
|
-
* Lodash <https://lodash.com/>
|
|
17
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
18
|
-
* Released under MIT license <https://lodash.com/license>
|
|
19
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
20
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
21
|
-
*/
|