Hidden ChildrenThe custom name for the node.
By default, names should be inferred from the GraphNodeReflection data. Only set this field if the name cannot or should not be inferred from reflection data.
The owning graph.
The ID.
The input pins.
The output pins.
A map suitable for storing custom user-defined data.
Removes all connections to this node.
Gets the value that is connected to the input pin.
If the pin is not connected, the defaultValue is returned.
The pin type
The GraphPin or the name of the pin.
OptionaldefaultValue: ValueTypeOf<T>
An optional default value. Default: undefined
The connected value, or if not connected the defaultValue.
Get either an input or output pin.
The internal field value used as automatic value storage for templated nodes.
Gets the connection for the next node that should be executed.
OptionalpinOrName: string | GraphPin
The pin name or reference that the execution will proceed from.
Gets the specified pin by name or id.
Returns all pins connected of the specified type.
Gets the value for the specified user data key. If the key does not exist the defaultValue will be
returned instead. If no defaultValue is specified, undefined is returned.
The user defined property or defaultValue if not defined.
Determines if this node is connected to the other node.
Iterates all connections to pins of this node. First input pins are iterated over, then output pins.
Virtual
Gets the name of the node as it should be displayed in the canvas.
Marks the node contents as changed and signals events.
Called when the node has been instanced and is about to be added to a graph. This is a good place to initialize the default values for the node pins as it will then not be done during deserialization, which might otherwise discard newly instances values immediately.
Virtual
Called when the Graph is being enabled or when the node is added to the graph via Graph#addNode />
Virtual
Invoked when the node is being executed to perform it's logica and return the next node to be executed in the control flow graph.
Override this method with your node's control-flow execution logic.
Implementing classes must call super.
Data that is calculated as part of the execution must be stored in the GraphExecutionState
that is available through the ControlFlowData.
Stored data must be returned for the corresponding input pin in onRequestValue.
Virtual
Invoked when an inspectable field data was changed through the UI.
Virtual
Invoked when a GraphPin was connected.
Virtual
Invoked when a GraphPin was disconnected.
Virtual
Invoked when the pin field data was changed through the UI.
Called before the node is removed from a graph.
Returns the value for the specified GraphPin.
Data from previous executions should be retrieved through the GraphExecutionState.
Invoked when serialization begins by the owning Graph.
Registers an outdated GraphConnection if it wasn't enabled during initialization. Outdated connections are attempted to be re-enabled during the call to enable
Removes the user data key.
Sets the user data key to the specified value.
A key that uniquely identifies the property to be defined.
The value to set the property to. The value type must support serialization.
Synchronizes the node pins with the reflection data by adding missing pins and removing superfluous pins on the node.
Returns a string representation of an object.
Virtual
Ensures that the state of the node is valid.
Invokes the callback while prevent events to be dispatched.
The CarbonLogicNode class implements a base class for an ControlFlowNode usable in a CarbonLogicGraph.