0.2.4 • Published 4 years ago

rete-connection-mastery-plugin v0.2.4

Weekly downloads
189
License
MIT
Repository
github
Last release
4 years ago

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 actionsEditor
    1Press Ctrl on connection dropContext menu will appear
    2Select a node by holding down CtrlNode 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 actionsEditor
    1Press D and click on the connectionRemove 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' }
});
0.2.4

4 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago