WeaveSelectionToolAction
Activate the selection of canvas nodes
Overview
The WeaveSelectionToolAction class that allows users to enter or exit selection mode. While it does not handle the selection logic itself, it activates the selection behavior managed by the WeaveNodesSelectionPlugin, enabling users to click or drag to select nodes on the canvas.
This tool acts as a toggle for interaction context, letting users switch between selection and other editing tools (e.g., draw, pan, or create).
The class extends the WeaveAction class.
Name
This action name
property value is selectionTool
.
Import
import { WeaveSelectionToolAction } from "@inditextech/weave-sdk";
Instantiation
new WeaveSelectionToolAction();