@neo4j-nvl/react 0.2.22 → 0.2.23
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type NVL from '@neo4j-nvl/core';
|
|
2
|
-
import type { ClickInteractionCallbacks, ClickInteractionOptions, DragNodeInteractionCallbacks, DrawInteractionCallbacks, HoverInteractionCallbacks, HoverInteractionOptions, MultiSelectInteractionCallbacks, MultiSelectInteractionOptions, PanInteractionCallbacks, ZoomInteractionCallbacks } from '@neo4j-nvl/interaction-handlers';
|
|
2
|
+
import type { ClickInteractionCallbacks, ClickInteractionOptions, DragNodeInteractionCallbacks, DrawInteractionCallbacks, HoverInteractionCallbacks, HoverInteractionOptions, MultiSelectInteractionCallbacks, MultiSelectInteractionOptions, PanInteractionCallbacks, PanInteractionOptions, ZoomInteractionCallbacks } from '@neo4j-nvl/interaction-handlers';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import type { BasicReactWrapperProps } from '../basic-wrapper/BasicNvlWrapper';
|
|
5
5
|
/**
|
|
@@ -8,7 +8,7 @@ import type { BasicReactWrapperProps } from '../basic-wrapper/BasicNvlWrapper';
|
|
|
8
8
|
*/
|
|
9
9
|
export type MouseEvent = 'onHover' | 'onNodeClick' | 'onNodeRightClick' | 'onNodeDoubleClick' | 'onRelationshipClick' | 'onRelationshipDoubleClick' | 'onRelationshipRightClick' | 'onCanvasClick' | 'onCanvasDoubleClick' | 'onCanvasRightClick' | 'onDrag' | 'onDragStart' | 'onDragEnd' | 'onDrawEnd' | 'onMultiSelect' | 'onPan' | 'onZoom';
|
|
10
10
|
export type MouseEventCallbacks = ClickInteractionCallbacks & DragNodeInteractionCallbacks & HoverInteractionCallbacks & PanInteractionCallbacks & ZoomInteractionCallbacks & MultiSelectInteractionCallbacks & DrawInteractionCallbacks;
|
|
11
|
-
export type InteractionOptions = ClickInteractionOptions & MultiSelectInteractionOptions & HoverInteractionOptions;
|
|
11
|
+
export type InteractionOptions = ClickInteractionOptions & MultiSelectInteractionOptions & HoverInteractionOptions & PanInteractionOptions;
|
|
12
12
|
/**
|
|
13
13
|
* The properties that can be passed to the {@link InteractiveNvlWrapper} component.
|
|
14
14
|
*/
|
|
@@ -4,7 +4,8 @@ import { BasicNvlWrapper } from '../basic-wrapper/BasicNvlWrapper';
|
|
|
4
4
|
const options = {
|
|
5
5
|
selectOnClick: false,
|
|
6
6
|
drawShadowOnHover: true,
|
|
7
|
-
selectOnRelease: false
|
|
7
|
+
selectOnRelease: false,
|
|
8
|
+
excludeNodeMargin: true
|
|
8
9
|
};
|
|
9
10
|
const destroyInteraction = (interactionRef) => {
|
|
10
11
|
interactionRef.current && interactionRef.current.destroy();
|