Home > @jsplumbtoolkit/browser-ui > Node > setDefaultInternalCost
Node.setDefaultInternalCost() method
Sets the default cost of travelling from one Port to another inside some Node. When a Node is created, this value is set to 1.
Signature:
setDefaultInternalCost(cost: number): void;
Parameters
Parameter | Type | Description |
---|---|---|
cost | number | Default internal cost. |
Returns:
void