@neo4j-nvl/base 1.1.0-e5f94955 → 1.1.0-e61ddd81
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/base.mjs +1 -1
- package/dist/types/modules/NvlController.d.ts +1 -1
- package/dist/types/renderers/domrenderer/BaseRenderer.test.d.ts +1 -0
- package/dist/types/renderers/domrenderer/svgrenderer/SvgRenderer.d.ts +1 -0
- package/dist/types/renderers/domrenderer/svgrenderer/arrowDrawing.d.ts +2 -1
- package/dist/types/renderers/domrenderer/svgrenderer/svgUtils.d.ts +20 -0
- package/package.json +3 -3
|
@@ -37,7 +37,7 @@ export default class NvlController {
|
|
|
37
37
|
private readonly c2dCanvas;
|
|
38
38
|
private readonly svg;
|
|
39
39
|
private isInRenderSwitchAnimation;
|
|
40
|
-
private
|
|
40
|
+
private previousRenderer;
|
|
41
41
|
private justSwitchedLayout;
|
|
42
42
|
private layoutUpdating;
|
|
43
43
|
private layoutComputing;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,7 @@ export default class SvgRenderer extends BaseRenderer {
|
|
|
6
6
|
private svg;
|
|
7
7
|
private measurementContext;
|
|
8
8
|
constructor(svg: SVGSVGElement, state: NvlState, options?: RendererOptions);
|
|
9
|
+
clear(): void;
|
|
9
10
|
render(positionArray: Node[], positionBoundaries?: {
|
|
10
11
|
centerX: number;
|
|
11
12
|
centerY: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BorderStyles, DisabledItemStyles } from '../../../modules/state/types';
|
|
2
2
|
import type { Point } from '../../../utils/geometry';
|
|
3
|
+
import type ImageCache from '../shared/ImageCache';
|
|
3
4
|
import type ArrowBundler from '../shared/arrows/ArrowBundler';
|
|
4
5
|
import type { RelationshipToRender } from '../shared/types';
|
|
5
6
|
/**
|
|
@@ -55,4 +56,4 @@ export declare const getCorrectLabelAngle: (angle: number) => number;
|
|
|
55
56
|
* @param relationshipBorderStyles - Border/ring styles for relationships
|
|
56
57
|
* @param measurementContext - Canvas 2D context for text measurement
|
|
57
58
|
*/
|
|
58
|
-
export declare const renderSvgRelationships: (relationshipsToRender: RelationshipToRender[], svg: SVGElement, drawCurves: boolean, arrowBundler: ArrowBundler, disabledItemStyles: DisabledItemStyles, defaultRelationshipColor: string, relationshipBorderStyles: BorderStyles, measurementContext: CanvasRenderingContext2D) => void;
|
|
59
|
+
export declare const renderSvgRelationships: (relationshipsToRender: RelationshipToRender[], svg: SVGElement, drawCurves: boolean, arrowBundler: ArrowBundler, disabledItemStyles: DisabledItemStyles, defaultRelationshipColor: string, relationshipBorderStyles: BorderStyles, measurementContext: CanvasRenderingContext2D, imageCache: ImageCache) => void;
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates an SVG image element for an icon
|
|
3
|
+
*
|
|
4
|
+
* @param nodeX - The x-coordinate of the node
|
|
5
|
+
* @param nodeY - The y-coordinate of the node
|
|
6
|
+
* @param iconXPos - The x-position of the icon relative to the node
|
|
7
|
+
* @param iconYPos - The y-position of the icon relative to the node
|
|
8
|
+
* @param iconSize - The size of the icon
|
|
9
|
+
* @param image - The image to use for the icon
|
|
10
|
+
* @param isDisabled - Whether the icon should be disabled
|
|
11
|
+
*/
|
|
12
|
+
export declare const createSvgIconElement: (options: {
|
|
13
|
+
nodeX: number;
|
|
14
|
+
nodeY: number;
|
|
15
|
+
iconXPos: number;
|
|
16
|
+
iconYPos: number;
|
|
17
|
+
iconSize: number;
|
|
18
|
+
image: HTMLCanvasElement;
|
|
19
|
+
isDisabled: boolean;
|
|
20
|
+
}) => SVGImageElement;
|
|
1
21
|
/**
|
|
2
22
|
* Calculates the SVG transform string for viewport positioning
|
|
3
23
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-nvl/base",
|
|
3
|
-
"version": "1.1.0-
|
|
3
|
+
"version": "1.1.0-e61ddd81",
|
|
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,13 +29,13 @@
|
|
|
29
29
|
"postpack": "rm LICENSE.txt && rm CHANGELOG.md"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@neo4j-nvl/layout-workers": "1.1.0-
|
|
32
|
+
"@neo4j-nvl/layout-workers": "1.1.0-e61ddd81",
|
|
33
33
|
"@segment/analytics-next": "1.81.1",
|
|
34
34
|
"color-string": "1.9.1",
|
|
35
35
|
"d3-force": "3.0.0",
|
|
36
36
|
"gl-matrix": "3.4.4",
|
|
37
37
|
"glsl-inject-defines": "1.0.3",
|
|
38
|
-
"lodash": "4.
|
|
38
|
+
"lodash": "4.18.1",
|
|
39
39
|
"loglevel": "1.9.2",
|
|
40
40
|
"mobx": "3.6.2",
|
|
41
41
|
"node-pid-controller": "1.0.1",
|