@alitajs/gesture-password

Gesture password(手势密码)

Usage no npm install needed!

<script type="module">
  import alitajsGesturePassword from 'https://cdn.skypack.dev/@alitajs/gesture-password';
</script>

README

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' />