Skip to main content

Module node

Module node 

Source

Structs§

NodeContext
Context provided by a Node to its children.
NodeElement
The enclosing node’s root element. Deliberately non-generic, so widgets in a node body (e.g. NodeOverlay) can anchor to the node without naming the graph’s id types.
NodeFieldProps
Props for the NodeField component.
NodeProps
Props for the Node component.
NodeVisible
Per-node visibility flag: whether the node’s rectangle intersects the visible viewport (plus an overscan margin). Provided (non-generically) in each node’s context so consumers can gate expensive per-anchor content — e.g. live value subscriptions — on it. Off-screen nodes stay MOUNTED (their ports remain registered, so connection wires are unaffected); only their costly content is skipped. Until the canvas is measured, the flag is false so consumers can render placeholders without constructing every node’s live content first.

Functions§

Node
Required Props
NodeField
A labeled field row for use inside the node body slot. Renders label + children in a flex row, styled from NodeStyle.