newcat / baklavajs

Graph / node editor in the browser using VueJS
http://baklava.tech
MIT License
1.47k stars 107 forks source link

feat(editor): Improve editor control #372

Closed starker-xp closed 5 months ago

starker-xp commented 5 months ago

Added the ability to select multiple nodes at the same time. Allows you to deselect an already selected node.

Caution: Changes the way you move with the mouse. You'll need to use the Control key to move the pan.

Based on this demand : https://github.com/newcat/baklavajs/issues/368, https://github.com/newcat/baklavajs/issues/298

Example : image

yojeek commented 5 months ago

Appreciated feature. However I feel that panning is more often used than selection of multiple items, thus maybe it's better to pan without extra key modifiers.

newcat commented 5 months ago

That's also the reason I didn't merge it. Because I also noticed a few other points, I'll take your implementation as a starting point and implement it myself, but thanks for the initial implementation and the PR!