@naetverkjs/selection
TypeScript icon, indicating that this package has built-in type declarations

0.8.54 • Public • Published

selection-plugin

This plugin was inspired by the WellerQu/rete-selection-plugin

Plugin to render a selection rectangle to allow the multiselection of nodes. Hold Ctrl to enable the multi-selection or to draw a rectangle

Installation

import { SelectionPlugin } from '@naetverkjs/selection';

editor.use(SelectionPlugin);

Parameters

Default

editor.use(SelectionPlugin, {
  enabled: true,
  offset: {
    x: 0,
    y: 0,
  },
  selectorClass: null,
});
  • enabled: Enables or Disables the Plugin
  • offset: The drawing of the rectangle is dependent on the drawing area. If this area is moved, the introduction of an offset can be necessary.
  • selectorClass: Allows the extension of the default class of the selection area which is selection-area

Package Sidebar

Install

npm i @naetverkjs/selection

Weekly Downloads

0

Version

0.8.54

License

MIT

Unpacked Size

20.6 kB

Total Files

20

Last publish

Collaborators

  • derwenzel