API

Class FlowGraphDataConnection<T>

Represents a connection point for data. An unconnected input point can have a default value. An output point will only have a value if it is connected to an input point. Furthermore, if the point belongs to a "function" node, the node will run its function to update the value.

Type Parameters

  • T

Hierarchy (View Summary)

Index
_ownerBlock: FlowGraphBlock
dataTransformer: Nullable<(value: T) => T> = null

a data transformer function, if needed. This can be used, for example, to force seconds into milliseconds output, if it makes sense in your case.

metadata?: any

Optional host-format metadata associated with this connection.

name: string

The name of the connection.

onValueChangedObservable: any = ...

An observable that is triggered when the value of the connection changes.

richType: RichType<T>

the type of the data in this block

uniqueId: string = ...

A uniquely identifying string for the connection.

  • An output data block can connect to multiple input data blocks, but an input data block can only connect to one output data block.

    Returns boolean

    true if the connection is singular