Installations
npm install @vueuse/gesture
Developer Guide
Typescript
Yes
Module System
ESM
Node Version
16.17.0
NPM Version
8.15.0
Score
59.6
Supply Chain
91.7
Quality
81.1
Maintenance
50
Vulnerability
100
License
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
Download Statistics
Total Downloads
630,631
Last Day
414
Last Week
6,329
Last Month
40,426
Last Year
331,930
GitHub Statistics
368 Stars
205 Commits
18 Forks
6 Watching
1 Branches
21 Contributors
Bundle Size
30.94 kB
Minified
8.24 kB
Minified + Gzipped
Package Meta Information
Latest Version
2.0.0
Package Id
@vueuse/gesture@2.0.0
Unpacked Size
183.94 kB
Size
35.14 kB
File Count
8
NPM Version
8.15.0
Node Version
16.17.0
Publised On
22 Feb 2024
Total Downloads
Cumulative downloads
Total Downloads
630,631
Last day
-78.9%
414
Compared to previous day
Last week
-40.8%
6,329
Compared to previous week
Last month
-4.1%
40,426
Compared to previous month
Last year
71.5%
331,930
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
2
🕹 @vueuse/gesture
Vue Composables making your app interactive
- 🚀 Plug & play
- 🕹 Mouse & Touch support
- 🎮 Directives support (v-drag, v-pinch, v-move...)
- ✨ Written in TypeScript
- ✅ Supports Vue 2 & 3 using vue-demi
- 🤹 Plays well with vueuse/motion or any other animation solution
Quick Start
Let's get started quickly by installing the package and adding the plugin.
From your terminal:
1pnpm add @vueuse/gesture
In your Vue app entry file:
1import { createApp } from 'vue' 2import { GesturePlugin } from '@vueuse/gesture' 3import App from './App.vue' 4 5const app = createApp(App) 6 7app.use(GesturePlugin) 8 9app.mount('#app')
You can now interact with any of your component, HTML or SVG elements using v-drag
or any other directive.
1<template> 2 <div v-drag="dragHandler" /> 3</template> 4 5<script lang="ts"> 6const dragHandler = (dragState) => { 7 // Do something with dragState 8} 9</script>
To see more about the gestures events data, check out Gesture State.
To see more about the gestures options, check out Gesture Options.
Also, here is a list of the available gestures:
Credits
This package is a fork react-use-gesture by pmndrs.
If you like this package, consider following me on GitHub and on Twitter.
👋
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 4/30 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Reason
10 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g
- Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3
- Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx
Score
1.9
/10
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More