- Download and install the package in the presentation project:
npm i -S reveal-leap-motion
- Add the plugin to the dependencies in the presentation, as below:
You can edit the following options:
|autoCenter||true||Center the pointer based on where your finger enters the leap motion's detection field.|
|gestureDelay||500||How long to delay between gestures in milliseconds.|
|naturalSwipe||true||Swipe as though you were using a touch screen. Set to false to invert.|
|pointerColor||#00aaff||The color of the pointer.|
|pointerOpacity||0.7||The opacity of the pointer.|
|pointerSize||15||The minimum height and width of the pointer.|
|pointerTolerance||120||Larger values yield slower movement.|
Index Finger Only
When a single index finger is extended, a circular pointer will appear on screen, which tracks the finger. Moving closer to the device expands the pointer.
Multiple Fingers with One Hand
Navigate through the slides by swiping up, down, left, or right. See the config options to invert movements.
Swiping upwards with two hands will toggle the overview mode. A second swipe will exit the overview.
Contributions are encouraged and welcome! To get started, please see the contribution guide.