Skip to main content

Home > @jsplumbtoolkit/core > Selection > setMaxEdges

Selection.setMaxEdges() method

Sets the maximum number of edges the selection can hold. The action taken when appending an edge that would take the selection above its limit depends on the current capacityPolicy, which can be either Selection.DISCARD_EXISTING (the default) or Selection.DISCARD_NEW.

Signature:

setMaxEdges(_maxEdges: number): void;

Parameters

ParameterTypeDescription
_maxEdgesnumber

Returns:

void