@knotx/plugins-connection-line 0.2.15 → 0.3.0

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/index.cjs CHANGED
@@ -337,7 +337,7 @@ class ConnectionLine extends (_a = core.BasePlugin, _getNode_dec = [decorators.i
337
337
  y: (y - containerTop) / this.startScale
338
338
  };
339
339
  sourceNodeIds.forEach((sourceNodeId) => {
340
- const node = this.getNode(sourceNodeId);
340
+ const node = this.getNode({ id: sourceNodeId });
341
341
  if (!node)
342
342
  return;
343
343
  let nodeStartPosition = __spreadValues({}, startPosition);
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Node, Edge, BasePlugin, NodeOperation, EdgeOperation, InteractionPriority, PluginData } from '@knotx/core';
1
+ import { Node, Edge, BasePlugin, Engine, PluginData, EdgeOperation } from '@knotx/core';
2
2
 
3
3
  interface ConnectionLineConfig {
4
4
  /**
@@ -62,12 +62,12 @@ declare module '@knotx/core' {
62
62
  */
63
63
  declare class ConnectionLine extends BasePlugin<'connectionLine', ConnectionLineConfig> {
64
64
  name: "connectionLine";
65
- getNode: (id: string) => Node | undefined;
66
- dispatchNodeOperation: (operation: NodeOperation) => void;
67
- dispatchEdgeOperation: (operation: EdgeOperation) => void;
68
- startInteraction: (pluginId: string, type: string, priority: InteractionPriority) => void;
69
- endInteraction: (pluginId: string, type: string) => void;
70
- canInteract: (pluginId: string, type: string, autoStartPriority?: InteractionPriority) => boolean;
65
+ getNode: Engine['getNode'];
66
+ dispatchNodeOperation: Engine['dispatchNodeOperation'];
67
+ dispatchEdgeOperation: Engine['dispatchEdgeOperation'];
68
+ startInteraction: Engine['startInteraction'];
69
+ endInteraction: Engine['endInteraction'];
70
+ canInteract: Engine['canInteract'];
71
71
  selectedNodeIds: string[];
72
72
  getConnectHandleAttributes: PluginData['connectionLine']['getConnectHandleAttributes'];
73
73
  private classNames;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Node, Edge, BasePlugin, NodeOperation, EdgeOperation, InteractionPriority, PluginData } from '@knotx/core';
1
+ import { Node, Edge, BasePlugin, Engine, PluginData, EdgeOperation } from '@knotx/core';
2
2
 
3
3
  interface ConnectionLineConfig {
4
4
  /**
@@ -62,12 +62,12 @@ declare module '@knotx/core' {
62
62
  */
63
63
  declare class ConnectionLine extends BasePlugin<'connectionLine', ConnectionLineConfig> {
64
64
  name: "connectionLine";
65
- getNode: (id: string) => Node | undefined;
66
- dispatchNodeOperation: (operation: NodeOperation) => void;
67
- dispatchEdgeOperation: (operation: EdgeOperation) => void;
68
- startInteraction: (pluginId: string, type: string, priority: InteractionPriority) => void;
69
- endInteraction: (pluginId: string, type: string) => void;
70
- canInteract: (pluginId: string, type: string, autoStartPriority?: InteractionPriority) => boolean;
65
+ getNode: Engine['getNode'];
66
+ dispatchNodeOperation: Engine['dispatchNodeOperation'];
67
+ dispatchEdgeOperation: Engine['dispatchEdgeOperation'];
68
+ startInteraction: Engine['startInteraction'];
69
+ endInteraction: Engine['endInteraction'];
70
+ canInteract: Engine['canInteract'];
71
71
  selectedNodeIds: string[];
72
72
  getConnectHandleAttributes: PluginData['connectionLine']['getConnectHandleAttributes'];
73
73
  private classNames;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Node, Edge, BasePlugin, NodeOperation, EdgeOperation, InteractionPriority, PluginData } from '@knotx/core';
1
+ import { Node, Edge, BasePlugin, Engine, PluginData, EdgeOperation } from '@knotx/core';
2
2
 
3
3
  interface ConnectionLineConfig {
4
4
  /**
@@ -62,12 +62,12 @@ declare module '@knotx/core' {
62
62
  */
63
63
  declare class ConnectionLine extends BasePlugin<'connectionLine', ConnectionLineConfig> {
64
64
  name: "connectionLine";
65
- getNode: (id: string) => Node | undefined;
66
- dispatchNodeOperation: (operation: NodeOperation) => void;
67
- dispatchEdgeOperation: (operation: EdgeOperation) => void;
68
- startInteraction: (pluginId: string, type: string, priority: InteractionPriority) => void;
69
- endInteraction: (pluginId: string, type: string) => void;
70
- canInteract: (pluginId: string, type: string, autoStartPriority?: InteractionPriority) => boolean;
65
+ getNode: Engine['getNode'];
66
+ dispatchNodeOperation: Engine['dispatchNodeOperation'];
67
+ dispatchEdgeOperation: Engine['dispatchEdgeOperation'];
68
+ startInteraction: Engine['startInteraction'];
69
+ endInteraction: Engine['endInteraction'];
70
+ canInteract: Engine['canInteract'];
71
71
  selectedNodeIds: string[];
72
72
  getConnectHandleAttributes: PluginData['connectionLine']['getConnectHandleAttributes'];
73
73
  private classNames;
package/dist/index.js CHANGED
@@ -331,7 +331,7 @@ class ConnectionLine extends (_a = BasePlugin, _getNode_dec = [inject.getNode()]
331
331
  y: (y - containerTop) / this.startScale
332
332
  };
333
333
  sourceNodeIds.forEach((sourceNodeId) => {
334
- const node = this.getNode(sourceNodeId);
334
+ const node = this.getNode({ id: sourceNodeId });
335
335
  if (!node)
336
336
  return;
337
337
  let nodeStartPosition = __spreadValues({}, startPosition);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/plugins-connection-line",
3
- "version": "0.2.15",
3
+ "version": "0.3.0",
4
4
  "description": "Connectionline Plugin for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -33,14 +33,14 @@
33
33
  "@interactjs/modifiers": "^1.10.27",
34
34
  "@interactjs/types": "^1.10.27",
35
35
  "interactjs": "^1.10.27",
36
- "@knotx/jsx": "0.2.13",
37
- "@knotx/plugins-selection": "0.2.15"
36
+ "@knotx/jsx": "0.3.0",
37
+ "@knotx/plugins-selection": "0.3.0"
38
38
  },
39
39
  "dependencies": {
40
40
  "lodash-es": "^4.17.21",
41
41
  "rxjs": "^7.8.1",
42
- "@knotx/core": "0.2.14",
43
- "@knotx/decorators": "0.2.15"
42
+ "@knotx/core": "0.3.0",
43
+ "@knotx/decorators": "0.3.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@interactjs/actions": "^1.10.27",
@@ -49,11 +49,11 @@
49
49
  "@interactjs/types": "^1.10.27",
50
50
  "@types/lodash-es": "^4.17.12",
51
51
  "interactjs": "^1.10.27",
52
- "@knotx/build-config": "0.2.13",
53
- "@knotx/eslint-config": "0.2.13",
54
- "@knotx/jsx": "0.2.13",
55
- "@knotx/plugins-selection": "0.2.15",
56
- "@knotx/typescript-config": "0.2.13"
52
+ "@knotx/build-config": "0.3.0",
53
+ "@knotx/eslint-config": "0.3.0",
54
+ "@knotx/jsx": "0.3.0",
55
+ "@knotx/plugins-selection": "0.3.0",
56
+ "@knotx/typescript-config": "0.3.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "unbuild",