@babsey/code-graph 0.11.2 → 0.11.3

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.
@@ -91,6 +91,11 @@ export declare class CodeGraph extends Graph implements IBaklavaEventEmitter, IB
91
91
  * @returns An array of warnings that occured during loading. If the array is empty, the state was successfully loaded.
92
92
  */
93
93
  load(state: IGraphState): string[];
94
+ /**
95
+ * Remove connections to or from the node.
96
+ * @param nodeId node ID
97
+ */
98
+ removeConnectionsByNodeId(nodeId: string): void;
94
99
  /**
95
100
  * Render code script.
96
101
  */
@@ -74,6 +74,10 @@ export declare abstract class AbstractCodeNode extends AbstractNode {
74
74
  * Remove this node from the graph.
75
75
  */
76
76
  remove(): void;
77
+ /**
78
+ * Remove connections of this node.
79
+ */
80
+ removeConnections(): void;
77
81
  /**
78
82
  * Render code of this node.
79
83
  */
@@ -1,8 +1,10 @@
1
+ import { Connection } from '@baklavajs/core';
1
2
  import { ComponentOptions } from 'vue';
2
3
  import { CodeNodeInterface } from '../codeNode/codeNodeInterface';
3
4
  export declare class CodeNodeInputInterface<T = unknown> extends CodeNodeInterface<T> {
4
5
  component: ComponentOptions;
5
6
  constructor(name?: string, value?: T);
7
+ get connections(): Connection[];
6
8
  get value(): T;
7
9
  set value(value: T);
8
10
  }
@@ -1,3 +1,4 @@
1
+ import { Connection } from '@baklavajs/core';
1
2
  import { ComponentOptions } from 'vue';
2
3
  import { AbstractCodeNode } from '../../codeNode';
3
4
  import { CodeNodeInterface } from '../codeNode/codeNodeInterface';
@@ -7,5 +8,6 @@ export declare class CodeNodeOutputInterface extends CodeNodeInterface<unknown>
7
8
  suffix: string;
8
9
  constructor(name?: string, suffix?: string);
9
10
  get codeValue(): string;
11
+ get connections(): Connection[];
10
12
  get node(): AbstractCodeNode | undefined;
11
13
  }
@@ -31,6 +31,7 @@ export interface ICodeGraphViewModel {
31
31
  el: HTMLElement;
32
32
  }, null>;
33
33
  };
34
+ showNodeId: boolean;
34
35
  switchGraph: (newGraph: CodeGraph | CodeGraphTemplate) => void;
35
36
  engine?: CodeEngine;
36
37
  loadEditor?: (editorState: IEditorState) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babsey/code-graph",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "author": "babsey <spreizer@web.de>",
5
5
  "license": "MIT",
6
6
  "type": "module",