@babsey/code-graph 0.11.1 → 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.
- package/dist/code-graph.js +805 -782
- package/dist/code-graph.umd.cjs +8 -8
- package/dist/codeGraph/codeGraph.d.ts +5 -0
- package/dist/codeNode/codeNode.d.ts +4 -0
- package/dist/codeNodeInterfaces/baseNumericInterface.d.ts +2 -1
- package/dist/codeNodeInterfaces/codeNodeInput/codeNodeInputInterface.d.ts +2 -0
- package/dist/codeNodeInterfaces/codeNodeOutput/codeNodeOutputInterface.d.ts +2 -0
- package/dist/codeNodeInterfaces/slider/sliderInterface.d.ts +1 -0
- package/dist/viewModel.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
*/
|
|
@@ -7,7 +7,8 @@ export interface IValidator {
|
|
|
7
7
|
export declare class BaseNumericInterface extends CodeNodeInputInterface<number> implements IValidator {
|
|
8
8
|
min?: number;
|
|
9
9
|
max?: number;
|
|
10
|
-
|
|
10
|
+
step?: number;
|
|
11
|
+
constructor(name: string, value: number, min?: number, max?: number, step?: number);
|
|
11
12
|
validate(v: number): boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const useBaseNumericInterface: (intf: Ref<NodeInterface<number>>, precision?: number) => {
|
|
@@ -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
|
}
|
package/dist/viewModel.d.ts
CHANGED