Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 865 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 865 Bytes

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