-
-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.3.1-rc.1, rename interfaces and fix worker params
- Loading branch information
Showing
7 changed files
with
277 additions
and
269 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,41 @@ | ||
export interface Connection { | ||
export interface ConnectionData { | ||
node: number; | ||
data: any; | ||
} | ||
|
||
export type InputConnection = Connection & { | ||
export type InputConnectionData = ConnectionData & { | ||
output: string; | ||
} | ||
export type OutputConnection = Connection & { | ||
export type OutputConnectionData = ConnectionData & { | ||
input: string; | ||
} | ||
|
||
export interface Input { | ||
connections: InputConnection[]; | ||
export interface InputData { | ||
connections: InputConnectionData[]; | ||
} | ||
export interface Output { | ||
connections: OutputConnection[]; | ||
export interface OutputData { | ||
connections: OutputConnectionData[]; | ||
} | ||
|
||
export interface Inputs { [key: string]: Input } | ||
export interface Outputs { [key: string]: Output } | ||
export interface InputsData { [key: string]: InputData } | ||
export interface OutputsData { [key: string]: OutputData } | ||
|
||
export interface Node { | ||
export interface NodeData { | ||
id: number; | ||
name: string; | ||
inputs: Inputs; | ||
outputs: Outputs; | ||
inputs: InputsData; | ||
outputs: OutputsData; | ||
data: any; | ||
position: [number, number]; | ||
} | ||
|
||
export interface Nodes { [id: string]: Node } | ||
export interface NodesData { [id: string]: NodeData } | ||
|
||
export interface Data { | ||
id: string; | ||
nodes: Nodes; | ||
} | ||
nodes: NodesData; | ||
} | ||
|
||
export interface WorkerInputs { [key: string]: any[] } | ||
|
||
export interface WorkerOutputs { [key: string]: any } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters