@neo4j-nvl/interaction-handlers 0.2.25 → 0.2.26

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/lib/index.d.ts CHANGED
@@ -8,9 +8,9 @@ import type { HoverInteractionCallbacks, HoverInteractionOptions } from './inter
8
8
  import { HoverInteraction } from './interaction-handlers/hover-interaction';
9
9
  import type { MultiSelectInteractionCallbacks, MultiSelectInteractionOptions } from './interaction-handlers/multi-select-interaction';
10
10
  import { MultiSelectInteraction } from './interaction-handlers/multi-select-interaction';
11
- import type { PanInteractionCallbacks } from './interaction-handlers/pan-interaction';
11
+ import type { PanInteractionCallbacks, PanInteractionOptions } from './interaction-handlers/pan-interaction';
12
12
  import { PanInteraction } from './interaction-handlers/pan-interaction';
13
13
  import type { ZoomInteractionCallbacks } from './interaction-handlers/zoom-interaction';
14
14
  import { ZoomInteraction } from './interaction-handlers/zoom-interaction';
15
- export type { MultiSelectInteractionOptions, MultiSelectInteractionCallbacks, ClickInteractionOptions, HoverInteractionOptions, HoverInteractionCallbacks, DragNodeInteractionCallbacks, ClickInteractionCallbacks, PanInteractionCallbacks, ZoomInteractionCallbacks, DrawInteractionCallbacks };
15
+ export type { MultiSelectInteractionOptions, MultiSelectInteractionCallbacks, ClickInteractionOptions, HoverInteractionOptions, HoverInteractionCallbacks, DragNodeInteractionCallbacks, ClickInteractionCallbacks, PanInteractionCallbacks, DrawInteractionCallbacks, PanInteractionOptions, ZoomInteractionCallbacks };
16
16
  export { ZoomInteraction, PanInteraction, MultiSelectInteraction, ClickInteraction, HoverInteraction, DragNodeInteraction, DrawInteraction };
@@ -1,5 +1,15 @@
1
1
  import { NVL } from '@neo4j-nvl/core';
2
2
  import { BaseInteraction } from './base';
3
+ /**
4
+ * Options for the click interaction handler to customize its behavior.
5
+ */
6
+ export type PanInteractionOptions = {
7
+ /**
8
+ * Whether to not pan when dragging within a certain margin of a node
9
+ * @defaultValue false
10
+ */
11
+ excludeNodeMargin?: boolean;
12
+ };
3
13
  /**
4
14
  * Callbacks for the pan interaction handler.
5
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-nvl/interaction-handlers",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "license": "SEE LICENSE IN 'Neo4j Early Access Agreement - Visualization Library.pdf'",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",