Home > @jsplumbtoolkit/core > JsPlumbToolkit > addPathToSelection
JsPlumbToolkit.addPathToSelection() method
Appends the Path from source
to target
to the current selection. If there is no current selection, obj
becomes it. If the Path does not exist, there is no selection.
Signature:
addPathToSelection(params: {
source: Vertex | string;
target: Vertex | string;
strict?: boolean;
nodeFilter?: (n: Node) => boolean;
edgeFilter?: (n: Edge) => boolean;
}): void;
Parameters
Parameter | Type | Description |
---|---|---|
params | { source: Vertex | string; target: Vertex | string; strict?: boolean; nodeFilter?: (n: Node) => boolean; edgeFilter?: (n: Edge) => boolean; } | Path params |
Returns:
void