Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
Demo / API / Main Project
$ npm install selecto<script src="//daybrush.com/selecto/release/latest/dist/selecto.min.js"></script>…Since selecto basically checks using getBoundingClientRect, it is not accurate if the object is rotated or distorted.
If you want to check accurately, use getElementRect option with the following code
import Selecto from "selecto";
import { getElementInfo } from "moveable"; // (13kb function) if you use react, use react-moveable
const selecto = new Selecto({
...,
// (target: HTMLElement | SVGElement ) => { pos1: number[], pos2: number[], pos3: number[], pos4: number[] }
// pos1: left top
// pos2: right top
// pos3: left bottom
// pos4: right bottom
getElementRect: getElementInfo,
});| Package Name | Version | Description |
|---|---|---|
| react-selecto | A React Selecto Component that allows you to select elements in the drag area using the mouse or touch. | |
| ngx-selecto | An Angular Selecto Component that allows you to select elements in the drag area using the mouse or touch. | |
| vue-selecto | A Vue 2 Selecto Component that allows you to select elements in the drag area using the mouse or touch. | |
| vue3-selecto | A Vue 3 Selecto Component that allows you to select elements in the drag area using the mouse or touch. | |
| preact-selecto | A Preact Selecto Component that allows you to select elements in the drag area using the mouse or touch. | |
| svelte-selecto | A Svelte Selecto Component that allows you to select elements in the drag area using the mouse or touch. | |
| lit-selecto | A Lit Selecto Component that allows you to select elements in the drag area using the mouse or touch. |
Please give a ⭐️ if this project helped you!
If you have any questions or requests or want to contribute to selecto or other packages, please write the issue or give me a Pull Request freely.
If you find a bug, please report to us opening a new Issue on GitHub.
This project is MIT licensed.
…No open issues yet, or sync has not completed.