Skip to content

Latest commit

 

History

History
56 lines (30 loc) · 1.25 KB

File metadata and controls

56 lines (30 loc) · 1.25 KB

Meteor-leapmotion

Leapjs packaged for meteor.

Installation

The Leapjs package can be installed with Meteorite. From inside a Meteorite-managed app:

$ mrt add leapmotion

Usage

This package adds leapjs support with the awesome leap-cursor-library from @aphex see LeapJS and LeapManager for more info

Go here for some examples of leapJS : http://js.leapmotion.com/examples

You do have to include some code in your client directory

 
Meteor.startup(function(){
        LeapManager.init({});
});

you can then go into a more advanced setup :

 
Meteor.startup(function(){
        LeapManager.init({
            interactiveSelector:"a",
            enableMetaGestures: false,
            maxCursors:1
        });

});

check out the leap cursor library API here : https://github.com/aphex/leap-cursor-library.js/blob/master/src/js/leap-manager.js#L1011

Styling the cursor

Basic styling is included by default, but it is very easy to override it just by changing the CSS for .leap-pointable-cursor and .leap-pointable-cursor:after More info in the leap-manager.css file.