daybrush / selecto

Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
https://daybrush.com/selecto
MIT License
2.04k stars 82 forks source link

Use only mouse clicks to determine the range #95

Open jxccc1998 opened 2 years ago

jxccc1998 commented 2 years ago

Description

Can you use the left mouse button to click twice to determine the corresponding range. For example, clicking on the top left corner and then clicking on the bottom right corner will select all of them.

daybrush commented 2 years ago

@jxccc1998

There is no possibility to provide that function.

However, it seems to be possible to provide a method in the form of selectByArea(startPoint, endPoint).

daybrush commented 1 year ago

@jxccc1998

AddsetSelectedTargetsByPoints(startPoint, endPoint) method is added.

https://daybrush.com/selecto/release/latest/doc/Selecto.html#setSelectedTargetsByPoints

Add selectTargetsByPoints(startPoint, endPoint) method is added. https://daybrush.com/selecto/release/latest/doc/Selecto.html#selectTargetsByPoints