@neo4j-nvl/base 1.2.0-158df7fc → 1.2.0-80937bca

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.
@@ -45,6 +45,7 @@ export declare class PhysLayout {
45
45
  private updateData;
46
46
  private updateShader;
47
47
  private physPositions;
48
+ private physDirty;
48
49
  private springTexture;
49
50
  private sizeTexture;
50
51
  private offsetTexture;
@@ -95,6 +96,11 @@ export declare class PhysLayout {
95
96
  * Stops the layout
96
97
  */
97
98
  terminateUpdate(): void;
99
+ /**
100
+ * Synchronously reads the latest node positions/velocities from the GPU into
101
+ * this.physPositions.
102
+ */
103
+ private readbackPositions;
98
104
  /**
99
105
  * Returns whether the current layout needs to be updated in the next iteration step.
100
106
  * @returns Whether the layout should update in the following step.
@@ -68,6 +68,8 @@ export default class NvlController {
68
68
  private isWithinBudget;
69
69
  private updateMinimapZoom;
70
70
  private startMainLoop;
71
+ private renderNodeHtmlOverlays;
72
+ private renderRelationshipHtmlOverlays;
71
73
  updateHtmlOverlay(): void;
72
74
  dumpNodes(): Node[];
73
75
  dumpRelationships(): Relationship[];
@@ -237,22 +237,21 @@ export interface NvlOptions {
237
237
  minimapViewportBoxColor?: string;
238
238
  };
239
239
  /**
240
- * Target minimum presentation rate (fps) while layout is active.
241
- * Rendering will not drop below this rate at the cost of stabilization speed.
240
+ * Target minimum presentation fps while layout is active, at the cost of stabilization speed when set higher.
241
+ * Budgets layout steps only. Actual fps may undershoot when rendering is expensive.
242
242
  *
243
243
  * @defaultValue 3
244
244
  *
245
- * @note Must be within range of 1 and 120.
245
+ * @note Will be capped between 1 and 120.
246
246
  */
247
247
  minFps?: number;
248
248
  /**
249
- * Target maximum presentation rate (fps) while layout is active.
250
- * Rendering will not go above with rate. Any additional
251
- * computation available is used to speed up layout stabilization.
249
+ * Target maximum presentation fps while layout is active; extra time in the tick goes to layout stabilization.
250
+ * Budgets layout steps only. Actual fps may undershoot when rendering is expensive.
252
251
  *
253
252
  * @defaultValue 30
254
253
  *
255
- * @note Must be within range of 1 and 120.
254
+ * @note Will be capped between 1 and 120.
256
255
  */
257
256
  maxFps?: number;
258
257
  /**
@@ -6,6 +6,7 @@ export declare const Gravity = 25;
6
6
  export declare const SimulationStopVelocity = 0.25;
7
7
  export declare const MappingEnd = 999999;
8
8
  export declare const LayoutStepIntervalMs = 13;
9
+ export declare const MaxLayoutStepsPerFrame = 20;
9
10
  export declare const DefaultMaxFps = 30;
10
11
  export declare const DefaultMinFps = 3;
11
12
  export declare const MinAllowedFps = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-nvl/base",
3
- "version": "1.2.0-158df7fc",
3
+ "version": "1.2.0-80937bca",
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",
@@ -30,7 +30,7 @@
30
30
  "postpack": "rm LICENSE.txt && rm CHANGELOG.md"
31
31
  },
32
32
  "dependencies": {
33
- "@neo4j-nvl/layout-workers": "1.2.0-158df7fc",
33
+ "@neo4j-nvl/layout-workers": "1.2.0-80937bca",
34
34
  "@segment/analytics-next": "1.81.1",
35
35
  "color-string": "1.9.1",
36
36
  "d3-force": "3.0.0",