@woven-canvas/plugin-selection
v0.1.3
Published
Selection plugin - select, move, and resize objects on infinite canvas
Readme
@woven-canvas/plugin-selection
Select, move, resize, and rotate objects on the infinite canvas.
Installation
npm install @woven-canvas/core @woven-canvas/plugin-selectionUsage
import { Editor } from "@woven-canvas/core";
import { SelectionPlugin } from "@woven-canvas/plugin-selection";
const editor = new Editor(domElement, {
plugins: [
...SelectionPlugin({
edgeScrolling: {
enabled: true, // Enable edge scrolling (default: true)
edgeSizePx: 10, // Edge zone size in pixels (default: 10)
edgeScrollSpeedPxPerFrame: 15, // Scroll speed per frame (default: 15)
edgeScrollDelayMs: 250, // Delay before scrolling starts (default: 250)
},
}),
],
});Documentation
For full API documentation, see the documentation site.
License
MIT
