# prosthetic-hand **Repository Path**: mirrors_leaflet/prosthetic-hand ## Basic Information - **Project Name**: prosthetic-hand - **Description**: :hand: A library to emulate mouse/touch/pointer events, designed to help unit-test touch gestures. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🖐️ prosthetic-hand 🖐️ A JavaScript library to emulate mouse/touch/pointer events, designed to help unit-test touch gestures. ## Installation ```bash npm install prosthetic-hand ``` ## Usage ```js import Hand from 'prosthetic-hand'; const hand = new Hand(); const finger = hand.growFinger('pointer', { pointerType: 'touch', pressure: 0.9 }); finger .wait(500) .moveTo(200, 250, 0) .down() .moveBy(100, 150, 2000) .up(); ``` For more information see the [API documentation](http://leaflet.github.io/prosthetic-hand/api-docs.html) and [demos](http://leaflet.github.io/prosthetic-hand/demos/). ## Testing Run `npm install` and `npm start`, then open the URL printed in the console in your preferred browser. ## Building the documentation Run `npm run build-docs` and open the `api-docs.html` file generated by it. ## Contributing code Read the [Leaflet guidelines](https://github.com/Leaflet/Leaflet/blob/main/CONTRIBUTING.md). Whenever making a bugfix or a new feature, notify [IvanSanchez](https://github.com/IvanSanchez) so that a new version can be published to NPM. ## Legalese #### "THE BEER-WARE LICENSE": wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.