Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use only mouse clicks to determine the range #95

Open
jxccc1998 opened this issue Aug 9, 2022 · 2 comments
Open

Use only mouse clicks to determine the range #95

jxccc1998 opened this issue Aug 9, 2022 · 2 comments

Comments

@jxccc1998
Copy link

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
Copy link
Owner

daybrush commented Aug 9, 2022

@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
Copy link
Owner

@jxccc1998

  • lit-selecto 1.20.0
  • preact-selecto 1.17.0
  • react-selecto 1.20.0
  • selecto 1.20.0
  • svelte-selecto 1.20.0
  • vue-selecto 1.20.0
  • vue3-selecto 1.6.0
  • ngx-selecto 1.20.0

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants