Gesture Password (手势密码)
install
// npm
npm install @alitajs/gesture-password --save
// yarn
yarn add @alitajs/gesture-password
usage
import GesturePassword from '@alitajs/gesture-password';
const config = {
id: 'gesture',
width: 375,
height: 300,
onChange: (data: any) => console.log(data) // get gesture password
}
const gesturePassword = new GesturePassword(config)
<canvas id='gesture' />