Stage Keyboard Move
Activates moving elements with shift + keyboard arrows
Introduction
This plugin automatically allows to move the selected nodes by a defined delta (by default 5) when pressing shift + keyboard arrows (up, down, left or right). The selected nodes WeaveEllipseToolAction move by the define delta each time a shift + keyboard arrow key is pressed.
Usage
Import the Plugin
Start by importing the plugin:
import { WeaveStageKeyboardMovePlugin } from "@inditextech/weave-sdk";Register the Plugin
Then register the plugin on the Weave class instance.
const instance = new Weave({
...
plugins: [
...,
new WeaveStageKeyboardMovePlugin(),
]
})Use the plugin
Once the plugin is registered, select the nodes you want and use shift + keyboard arrows to move then by the defined delta (by default 5).
