Builds a single-output node and wires it to its sources in one step — the shape most graph edges take.
const smoothed = derive({ series: raw.out.value }, ({ series }) => series.smooth('cpu', { method: 'ema', alpha: 0.3 }),);smoothed.out.value.get(); Copy
const smoothed = derive({ series: raw.out.value }, ({ series }) => series.smooth('cpu', { method: 'ema', alpha: 0.3 }),);smoothed.out.value.get();
Equivalent to defineNode with one output named value, an input per source key, and the connections already made. Reach for defineNode when a node has several outputs, or when the node type is reused across graphs and deserves a name.
value
defineNode
Optional
Readonly
Change test for the output. Defaults to Object.is.
Object.is
Node type name for errors and toJSON(). Defaults to 'derive'.
toJSON()
'derive'
Builds a single-output node and wires it to its sources in one step — the shape most graph edges take.
Equivalent to defineNode with one output named
value, an input per source key, and the connections already made. Reach fordefineNodewhen a node has several outputs, or when the node type is reused across graphs and deserves a name.