@neo4j-nvl/base 0.3.1-bdd0eb1f → 0.3.1-c5733830
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.
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ExternalCallbacks } from './modules/ExternalCallbackHandler';
|
|
2
2
|
import type { ForceDirectedOptions, HierarchicalOptions, Layout, LayoutOptions, NvlOptions, NvlState, Renderer, ZoomOptions } from './modules/state';
|
|
3
3
|
import { ForceDirectedLayoutType, FreeLayoutType, GridLayoutType, HierarchicalLayoutType, d3ForceLayoutType } from './modules/state';
|
|
4
|
+
import type { StyledCaption } from './renderers/canvasrenderer/types';
|
|
4
5
|
import { drawCircleBand } from './renderers/canvasrenderer/util';
|
|
5
6
|
import type { Node, PartialNode, PartialRelationship, Relationship } from './types/graph-element';
|
|
6
7
|
import { CompatibilityError } from './utils/errors';
|
|
@@ -375,5 +376,5 @@ declare const colorMapperFunctions: {
|
|
|
375
376
|
textColorForBackground: (color: string) => string;
|
|
376
377
|
};
|
|
377
378
|
export default NVL;
|
|
378
|
-
export type { NvlOptions, Renderer, Node, Relationship, PartialNode, PartialRelationship, Layout, LayoutOptions, ForceDirectedOptions, HierarchicalOptions, ExternalCallbacks, HitTargets, HitTargetNode, HitTargetRelationship, Point, NvlMouseEvent, ZoomOptions };
|
|
379
|
+
export type { NvlOptions, Renderer, Node, Relationship, PartialNode, PartialRelationship, Layout, LayoutOptions, ForceDirectedOptions, HierarchicalOptions, ExternalCallbacks, HitTargets, HitTargetNode, HitTargetRelationship, Point, NvlMouseEvent, ZoomOptions, StyledCaption };
|
|
379
380
|
export { NVL, colorMapperFunctions, CompatibilityError, ForceDirectedLayoutType, HierarchicalLayoutType, GridLayoutType, FreeLayoutType, d3ForceLayoutType, drawCircleBand };
|
|
@@ -142,7 +142,13 @@ export interface NvlOptions {
|
|
|
142
142
|
* @note will be ignored when {@link renderer} is set
|
|
143
143
|
*/
|
|
144
144
|
useWebGL?: boolean;
|
|
145
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* What renderer to use
|
|
147
|
+
* Possible values are 'webgl' or 'canvas'
|
|
148
|
+
* @defaultValue 'webgl'
|
|
149
|
+
* @note WebGL renderer uses GPU and has better performance.
|
|
150
|
+
* Captions and arrowheads are only displayed when using the canvas renderer.
|
|
151
|
+
*/
|
|
146
152
|
renderer?: Renderer;
|
|
147
153
|
/**
|
|
148
154
|
* @internal
|
|
@@ -29,7 +29,10 @@ interface GraphElement {
|
|
|
29
29
|
* @note Has no affect on self-referring relationships.
|
|
30
30
|
*/
|
|
31
31
|
captionAlign?: 'top' | 'bottom' | 'center';
|
|
32
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* The caption text and font style.
|
|
34
|
+
* @note Captions are only visible when using the 'canvas' renderer.
|
|
35
|
+
*/
|
|
33
36
|
captions?: StyledCaption[];
|
|
34
37
|
/**
|
|
35
38
|
* An icon to be displayed anywhere on top of the graph element.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-nvl/base",
|
|
3
|
-
"version": "0.3.1-
|
|
3
|
+
"version": "0.3.1-c5733830",
|
|
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",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"tsconfig": "./tsconfig.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@neo4j-nvl/layout-workers": "^0.3.1-
|
|
36
|
+
"@neo4j-nvl/layout-workers": "^0.3.1-c5733830",
|
|
37
37
|
"color-string": "^1.9.1",
|
|
38
38
|
"contrast": "1.0.1",
|
|
39
39
|
"d3-force": "^3.0.0",
|