@neo4j-nvl/base 0.3.6-f1ebcb95 → 0.3.7

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +123 -0
  2. package/README.md +1 -0
  3. package/dist/base.mjs +1 -1
  4. package/dist/types/index.d.ts +2 -2
  5. package/dist/types/layouts/animatedlayout/AnimatedLayout.d.ts +1 -1
  6. package/dist/types/layouts/forcedirectedlayout/cosebilkentlayout/CoseBilkentLayout.d.ts +2 -2
  7. package/dist/types/layouts/forcedirectedlayout/physlayout/PhysLayout.d.ts +1 -1
  8. package/dist/types/layouts/freeLayout/FreeLayout.d.ts +1 -1
  9. package/dist/types/layouts/hierarchicallayout/HierarchicalLayout.d.ts +2 -2
  10. package/dist/types/layouts/hierarchicallayout/constants.d.ts +1 -1
  11. package/dist/types/modules/NvlController.d.ts +2 -1
  12. package/dist/types/modules/ZoomTransitionHandler.d.ts +1 -1
  13. package/dist/types/modules/state/constants.d.ts +9 -0
  14. package/dist/types/modules/state/state.d.ts +8 -0
  15. package/dist/types/modules/{state.d.ts → state/types.d.ts} +54 -17
  16. package/dist/types/modules/state/utils.d.ts +44 -0
  17. package/dist/types/modules/state/utils.test.d.ts +1 -0
  18. package/dist/types/renderers/canvasrenderer/CanvasRenderer.d.ts +1 -1
  19. package/dist/types/renderers/canvasrenderer/arrows/arrows.d.ts +8 -5
  20. package/dist/types/renderers/canvasrenderer/arrows/constants.d.ts +1 -1
  21. package/dist/types/renderers/canvasrenderer/nodes/nodes.d.ts +2 -2
  22. package/dist/types/renderers/webglrenderer/Controller.d.ts +1 -1
  23. package/dist/types/renderers/webglrenderer/Renderer.d.ts +1 -1
  24. package/dist/types/renderers/webglrenderer/node-fragment-point.d.ts +1 -1
  25. package/dist/types/renderers/webglrenderer/node-vertex-point.d.ts +1 -1
  26. package/dist/types/renderers/webglrenderer/viewport-box-fragment.d.ts +1 -1
  27. package/dist/types/renderers/webglrenderer/viewport-box-vertex.d.ts +1 -1
  28. package/dist/types/utils/ariaUtils.d.ts +3 -0
  29. package/dist/types/utils/ariaUtils.test.d.ts +1 -0
  30. package/dist/types/utils/colorUtils.d.ts +14 -0
  31. package/dist/types/utils/colorUtils.test.d.ts +1 -0
  32. package/dist/types/utils/constants.d.ts +6 -4
  33. package/dist/types/utils/hittest.d.ts +1 -1
  34. package/dist/types/utils/webWorkerUtils.d.ts +3 -0
  35. package/dist/types/utils/webWorkerUtils.test.d.ts +1 -0
  36. package/package.json +5 -6
  37. package/dist/types/utils/colorMapperFunctions.d.ts +0 -6
  38. /package/dist/types/modules/{state.test.d.ts → state/state.test.d.ts} +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,123 @@
1
+ # Changelog
2
+
3
+ All notable changes to NVL will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
+
5
+ ## [0.3.6] - 2025-02-21
6
+
7
+ NVL 0.3.6 improves the API docs and adds a result transformer for the Neo4j JavaScript Driver, as well as small improvements and bug fixes.
8
+
9
+ ### Added
10
+
11
+ - [result transformer for the Neo4j JavaScript Driver](https://neo4j.com/docs/api/nvl/current/functions/_neo4j_nvl_base.nvlResultTransformer.html)
12
+ - [option](https://neo4j.com/docs/api/nvl/current/types/_neo4j_nvl_base.ZoomOptions.html) to disable transition when fitting nodes
13
+
14
+ ### Fixed
15
+
16
+ - lasso handler issues during initialization
17
+
18
+ ## [0.3.5] - 2025-02-20
19
+
20
+ NVL 0.3.5 contains several bug fixes and changes the default rendering method of NVL from "webgl" to "canvas".
21
+
22
+ ### Changed
23
+
24
+ - Change default value for renderer to canvas
25
+
26
+ ### Fixed
27
+
28
+ - Self-referring relationship overlay icon rotation position issue
29
+ - Invalid lasso area calculation when segment from first to last point intersects
30
+
31
+ ## [0.3.4] - 2025-02-19
32
+
33
+ With this release, we are updating our docs and READMEs and publishing NVL's API documentation and examples on neo4j.com/docs/api/nvl/current.
34
+
35
+ ### Added
36
+
37
+ - NVL's API documentation and examples on [neo4j.com/docs/api/nvl/current](http://neo4j.com/docs/api/nvl/current).
38
+ - A fallback implementation for web workers when they aren't avilable in the current environment.
39
+ - A new onDrawStarted callback for the [draw interaction handler](https://neo4j.com/docs/api/nvl/current/classes/_neo4j_nvl_interaction_handlers.DrawInteraction.html)
40
+
41
+ ### Fixed
42
+
43
+ - Issues with lasso shape when parts of it are close to each other
44
+ - NVL crash when sometimes position map and nodeToBundle are out of sync
45
+
46
+ ## [0.3.3] - 2025-02-18
47
+
48
+ This is a patch release to address a dependency issue in 0.3.2
49
+
50
+ ### Fixed
51
+
52
+ - Move Segment dependency from dev dependencies
53
+ - Ensure workspace version references point to exact version
54
+
55
+ ## [0.3.2] - 2025-02-17
56
+
57
+ This is our first patch release since going GA in May.
58
+
59
+ ### Added
60
+
61
+ - [Telemetry](https://neo4j.com/docs/api/nvl/current/interfaces/_neo4j_nvl_base.NvlOptions.html#disableTelemetry)
62
+ - [Examples](https://neo4j.com/docs/api/nvl/current/examples.html) in API documentation
63
+ - More information in package.json files
64
+ - Overlay icons for nodes and relationships
65
+ - Links to documentation websites in readme
66
+
67
+ ### Fixed
68
+
69
+ - Fixed zoom to fit for self relationships
70
+ - Aalign selected border color
71
+ - Issues with WebGL error propagation
72
+ - Issue with key captures on mouse click in draw-interactions
73
+ - Zoom to fit finishing too early
74
+ - Improve imagecache error handling
75
+ - Minimap viewport box not rendering
76
+
77
+ ## [0.3.1] - 2025-02-16
78
+
79
+ This is our first GA release of NVL.
80
+
81
+ ### Added
82
+
83
+ - Expose callback types through interactive react wrapper
84
+ - Feature/adv interaction fw drag callbacks amendments
85
+ - Add [lasso select interaction module](https://neo4j.com/docs/api/nvl/current/classes/_neo4j_nvl_interaction_handlers.LassoInteraction.html)
86
+ - Configurable node ring styles
87
+ - Support React concurrent mode in React wrappers
88
+ - [`renderer`](https://neo4j.com/docs/api/nvl/current/interfaces/_neo4j_nvl_base.NvlOptions.html#renderer) and [`setRenderer`](https://neo4j.com/docs/api/nvl/current/classes/_neo4j_nvl_base.NVL.html#setRenderer) API option and method
89
+
90
+ ### Deprecated
91
+
92
+ - `useWebGL` and `setUseWebGL` (use `renderer` and `setRenderer` instead).
93
+
94
+ ### Changed
95
+
96
+ - Core library is now named "base" library
97
+ - All packages are published publicly
98
+ - Refactor rel validation method to improve performance
99
+ - Convert layout web workers to shared workers
100
+ - Don't check for WebGL availability if WebGL is disabled by NVL [`disableWebGL`](https://neo4j.com/docs/api/nvl/current/interfaces/_neo4j_nvl_base.NvlOptions.html#disableWebGL) option
101
+
102
+ ### Removed
103
+
104
+ - Remove deprecated elements
105
+
106
+ ### Fixed
107
+
108
+ - Wrong directions in a relationship bundle
109
+ - Issues with node and relationship id handling when strings are not numeric
110
+ - Zoom/pan jitter removal
111
+ - Ensure all interaction handlers return mouse events
112
+ - Cytoscape behaviour fixes
113
+ - Drag triggers too early
114
+ - Fix issue where right clicking sometime also triggers mouseup event
115
+ - Issues in dynamic zoom boundaries
116
+ - Don't trigger panning when mouse down was outside of NVL
117
+ - Only register callbacks if provided
118
+ - Ensure fit operation does not keep going on when zoom limit is reached
119
+ - Only update hover effect of elements when graph is not empty
120
+ - Ensure zoom to fit continues if panning has not finished yet
121
+ - Improve html overlay scaling
122
+ - Ensure Webgl context is released when NVL instance is destroyed
123
+ - Emoji in captions not rendering correctly
package/README.md CHANGED
@@ -44,3 +44,4 @@ In order to improve the library we are collecting some information about the usa
44
44
 
45
45
  - NVL documentation: https://neo4j.com/docs/nvl/current/
46
46
  - NVL API docs: https://neo4j.com/docs/api/nvl/current/
47
+ - NVL code examples: https://neo4j.com/docs/api/nvl/current/examples.html