ConnectionStyleProvider<TSupplyChainItem extends SupplyChainBaseItem, TSupplyChainConnection extends SupplyChainConnection>

A function type that provides connection styles for supply chain links.

The connection property is the SupplyChainConnection, the source and target properties represent the start and end items of the connection, respectively. For a single connection, there is only one object in the data array. For folded connections, the array contains all “child” connection data.

data: {
source: TSupplyChainItem
target: TSupplyChainItem
connection: TSupplyChainConnection
) => ConnectionStyle | undefined