Hi,
1.How to use lasso tool when I holding left mouse button(like holding shift+left mouse button)?
2. And revert, How to use hand tool when I holding shift+left mouse button?
Thank you so much!
Hi,
1.How to use lasso tool when I holding left mouse button(like holding shift+left mouse button)?
2. And revert, How to use hand tool when I holding shift+left mouse button?
Thank you so much!
I don’t understand your questions. Is this about a proposed new interaction? Is this about extending the editor to allow a certain feature?
When using the lasso tool, how can I enable continuous selection by holding only the left mouse button (similar to how holding Shift + left mouse button allows for multiple selections)? Is there a way to customize the settings to achieve this behavior without needing to press Shift?
With the current implementation of lasso tool in diagram-js,
there is no way to configure it to always use the additive behavior. It will only do it with modifier (shift) key pressed.
Have a look into the implementation.
var add = hasSecondaryModifier(event);
self.select(elements, bbox, add ? context.selection : []);
Have a go at implementing it yourself or create a feature request.