selecto icon indicating copy to clipboard operation
selecto copied to clipboard

Use only mouse clicks to determine the range

Open jxccc1998 opened this issue 1 year ago • 2 comments

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.

jxccc1998 avatar Aug 09 '22 09:08 jxccc1998

@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 avatar Aug 09 '22 16:08 daybrush

@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

daybrush avatar Sep 13 '22 06:09 daybrush