workflow.node_2.md
February 13, 2024 ยท View on GitHub
Home > @datashaper/workflow > Node_2
Node_2 interface
A graph processing node
Signature:
export interface Node<T, Config = unknown>
Properties
| 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 |
Methods
| 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 |