elementSet.nodes
The set naming graph nodes by id.
Usage
ElementSet.nodes(ids: readonly string[], at?: Omit<Scope, 'node'>): ElementSetParameters
idsreadonly string[]Graph node ids.
atOmit<Scope, 'node'>The revision the graph elements belong to; omit for the current graph. Default
{}.
Returns
{...at, kind: 'node', nodes: ids }; an empty list names nothing.
Example
ElementSet.nodes(['box1', 'xform2']).nodes // → ['box1', 'xform2']