rete-connection-mastery-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

Connection Mastery

Rete.js plugin

This plugin is intended to enhance rete-connection-plugin in terms of user interaction.

Features:

  • Create node for picked connection and connect (example)

    # User actions Editor
    1 Press Ctrl on connection drop Context menu will appear
    2 Select a node by holding down Ctrl Node will be added. The previously picked Input/Output will be connected with a compatible Output/Input of the added node
  • Delete connection by picking

    # User actions Editor
    1 Press D and click on the connection Remove the connection

How to use

import ConnectionMasteryPlugin from 'rete-connection-mastery-plugin';
 
editor.use(ConnectionMasteryPlugin); 
// or disable features
editor.use(ConnectionMasteryPlugin, {
    createAndConnect: false,
    pickConnection: false
});
// or change keys
editor.use(ConnectionMasteryPlugin, {
    createAndConnect: { keyCode: 'ControlLeft' },
    pickConnection: { keyCode: 'KeyD' }
});

Readme

Keywords

none

Package Sidebar

Install

npm i rete-connection-mastery-plugin

Weekly Downloads

812

Version

0.2.4

License

MIT

Unpacked Size

46.9 kB

Total Files

16

Last publish

Collaborators

  • ni55an