Overview
The WeaveNodesMultiSelectionFeedbackPlugin class that provides feedback to the end-users when multi-selecting nodes on the canvas.
Selection is a critical foundation for enabling further interactions like moving, grouping, deleting, copying, or applying bulk actions on nodes.
The class extends the WeavePlugin class
Instantiation
new WeaveNodesMultiSelectionFeedbackPlugin(params?: WeaveNodesMultiSelectionFeedbackPluginParams);
TypeScript types
type WeaveNodesMultiSelectionFeedbackStyle = {
stroke: string;
strokeWidth: number;
fill: string;
};
type WeaveNodesMultiSelectionFeedbackConfig = {
style: WeaveNodesMultiSelectionFeedbackStyle;
};
type WeaveNodesMultiSelectionFeedbackPluginConfig =
DeepPartial<WeaveNodesMultiSelectionFeedbackConfig>;
type WeaveNodesMultiSelectionFeedbackPluginParams = {
config?: WeaveNodesMultiSelectionFeedbackPluginConfig;
};
Parameters
For WeaveNodesMultiSelectionFeedbackPluginParams:
| Property | Type | Required | Description |
|---|---|---|---|
|
|
Config parameters for the plugin. |
For WeaveNodesMultiSelectionFeedbackPluginConfig:
| Property | Type | Required | Description |
|---|---|---|---|
|
|
Selector config (Konva Transformer configuration). |
For WeaveNodesMultiSelectionFeedbackStyle:
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
|
|
The color of the stroke (edge) |
|
|
|
|
The width of the stroke (edge) |
|
|
|
|
The fill of the selector |