Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-types / PortConfigProcessor

Class: PortConfigProcessor ​

Defined in: packages/chaingraph-types/src/node/port-config-processor.ts:37

Constructors ​

Constructor ​

new PortConfigProcessor(): PortConfigProcessor

Returns ​

PortConfigProcessor

Methods ​

processNodePorts() ​

processNodePorts(node, portsConfig): Map<string, IPortConfig>

Defined in: packages/chaingraph-types/src/node/port-config-processor.ts:44

Processes all port configurations of a node, ensuring they are fully specified.

Parameters ​

node ​

INode

The node whose ports are to be processed.

portsConfig ​

Map<string, IPortConfig>

The port configurations to process.

Returns ​

Map<string, IPortConfig>

The processed port configurations.


processPortConfig() ​

processPortConfig(portConfig, context): IPortConfig

Defined in: packages/chaingraph-types/src/node/port-config-processor.ts:91

Recursively processes a port configuration, returning a new object with all fields properly set.

Parameters ​

portConfig ​

IPortConfig

The port configuration to process.

context ​

Context

The context for processing, including parent information.

Returns ​

IPortConfig

The processed port configuration.


assignPortUIColors() ​

static assignPortUIColors(portConfig): IPortConfig

Defined in: packages/chaingraph-types/src/node/port-config-processor.ts:174

Parameters ​

portConfig ​

IPortConfig

Returns ​

IPortConfig

Licensed under BUSL-1.1