Skip to main content

Home > @jsplumbtoolkit/core > 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

ParameterTypeDescription
costnumberDefault internal cost.

Returns:

void