Home > @datashaper/workflow > Node_2
A graph processing node
Signature:
export interface Node<T, Config = unknown> | Property | Modifiers | Type | Description |
|---|---|---|---|
| bindings | readonly |
NodeBinding<T>[] | Gets all input bindings |
| bindings$ | readonly |
Observable<NodeBinding<T>[]> | An observable of the input bindings |
| config | Maybe<Config> | The node's mutable configuration | |
| config$ | readonly |
Observable<Maybe<Config>> | A configuration observable |
| id | readonly |
NodeId | A unique identifier for this node |
| inputs | readonly |
SocketName[] | Named input sockets |
| stats | readonly |
NodeStats | The diagnostic statistics for this node |
| Method | Description |
|---|---|
| bind(binding) | Binds an input socket to an upstream node |
| binding(input) | Retrieves an existing input binding by id |
| output(name) | Gets a current output value |
| output$(name) | Gets the output value stream |
| unbind(name) | Clear an input socket |