-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename some things * Try and document * inputType as inputEditor * minor name fix in example * Restrict input types to that get rendered to HTML to not generate HTML errors * Change theme to kind * Revert "Restrict input types to that get rendered to HTML to not generate HTML errors" This reverts commit 1a7d05f.
- Loading branch information
Showing
12 changed files
with
195 additions
and
145 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Documentation | ||
|
||
```mermaid | ||
erDiagram | ||
NodeType ||--o{ NodeInput : has | ||
NodeType ||--o{ NodeOutput : has | ||
NodeType ||--o{ NodeKind : has | ||
NodeInput ||--|| ValueType : uses | ||
NodeOutput ||--|| ValueType : uses | ||
ValueType ||..|| InputEditor : uses | ||
NodeInput{ | ||
string name | ||
string id | ||
ValueType valueType | ||
boolean isArray | ||
boolean isConstant | ||
any defaultValue | ||
string inputGroup | ||
} | ||
NodeOutput{ | ||
string name | ||
string id | ||
ValueType valueType | ||
boolean isArray | ||
} | ||
NodeKind{ | ||
string name | ||
string color | ||
} | ||
NodeType{ | ||
string name | ||
string id | ||
string description | ||
NodeInput[] inputs | ||
NodeOutput[] outputs | ||
NodeKind kind | ||
} | ||
ValueType{ | ||
string name | ||
string color | ||
string inputEditor | ||
any defaultValue | ||
} | ||
``` | ||
|
||
## NodeType | ||
|
||
A node type describes a kind of node that can put in a graph. It has a name and a list of inputs and outputs that have handles to connect to other nodes via edges. | ||
|
||
## NodeInput | ||
|
||
A node input is a handle that can be connected to a node output via an edge. | ||
|
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
Oops, something went wrong.