JSPM

motion-on-device

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 22
  • Score
    100M100P100Q45949F
  • License ISC

Motion on device orientation & motion

Package Exports

  • motion-on-device

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (motion-on-device) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Download & Installation

$ npm i motion-on-device

Code Demo

import MOD from 'mod';
MOD.init();

With parameters

```html MOD.init({ // rotationRate_dampening :0.01, // rotationRate_smoothing :0.5, // // rotation_dampening :0.0005, // rotation_smoothing :0.2, // // acceleration_sensitivity :0.1, // acceleration_dampening :1, // acceleration_smoothing :0.3, }) ```

Authors or Acknowledgments

  • James Edward Burdge

License

This project is licensed under the MIT License