elementSet.connections

The set naming graph connections, each written from.port->to.port.

Value helperSince 0.3.0

Usage

TypeScript
ElementSet.connections(ids: readonly string[], at?: Omit<Scope, 'node'>): ElementSet

Parameters

  • idsreadonly string[]

    Connections as from.port->to.port strings.

    Required

  • atOmit<Scope, 'node'>

    The revision the graph elements belong to; omit for the current graph. Default {}.

Returns

{...at, kind: 'connection', connections: ids }; an empty list names nothing.

Example

TypeScript
ElementSet.connections(['box1.out->xform2.in']).kind // → 'connection'

See also