# gestate

> Gestate gesture recording/playback library

Latest version **0.1.5** (published 2018-02-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install gestate
pnpm add gestate
yarn add gestate
bun add gestate
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2018-02-16 |
| First published | 2018-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 46.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mat Bettinson |
| Maintainers | lingomat |
| Keywords | gesture, particles, aikuma |

## Links

- npm: https://www.npmjs.com/package/gestate
- Repository: https://github.com/Lingomat/gestate
- Homepage: https://github.com/Lingomat/gestate#readme
- Issues: https://github.com/Lingomat/gestate/issues
- npm.io page: https://npm.io/package/gestate

## Dependencies (2)

- [sketch-js](https://npm.io/package/sketch-js.md) ^1.1.3
- [randomcolor](https://npm.io/package/randomcolor.md) ^0.5.3

## Recent versions

- 0.1.5 (latest) — 2018-02-16
- 0.1.4 — 2018-02-15
- 0.1.3 — 2018-02-15
- 0.1.2 — 2018-02-15
- 0.1.1 — 2018-02-15
- 0.1.0 — 2018-02-15

## README

# Gestate

A raw gesture recording and playback library. It's primarily used in the IGV activity to record gestures on image slides.

### project features
 - Mirrors a given element with an overlay that captures mouse and touch events
 - Renders particle effects when recording and playing
 - Simple data structure of recorded gestures.

## developer documentation
how to build and test:
 - clone the repository
 - in the cloned folder, run `npm install`
 - run `npm test` to build and test the code in both nodejs and browser

how to debug (browser):
 - run `npm start` to run a development server
 - open `http://localhost:8080/webtest.bundle` to run live tests that will update while you change the source code

Based on https://github.com/wix/typescript-boilerplate

## API example

```
import { Gestate } from 'gestate'
const gest = new Gestate({debug: true})
gest.record(MyHTMLElement, 'gesture type', offsetTime)
gest.stopRecording()
gest.getGestures()
gest.clear()
```

## Basic operation notes

Gestate creates a canvas element under the BODY element. When record() is called, 
the canvas is resized to cover the HTMLElement argument. 
The canvas captures mouse events and renders the particle effects.

---
_Source: https://npm.io/package/gestate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
