Socket
Book a DemoInstallSign in
Socket

cycle-gyronorm-driver

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cycle-gyronorm-driver

A Cycle.js driver for accessing accelerometer and gyroscope data using Gyronorm.js

0.0.8
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

DEPRECATED

Just use

fromEvent(window, 'devicemotion')
fromEvent(window, 'deviceorientation')

instead

cycle-gyronorm-driver

Cycle.js drivers for accessing normalized accelerometer and gyroscope data using gyronorm.js.

Try the demo on your mobile device!

Note that this package was tested with Chrome browser (>= 65.0.3325.181) only.

API

makeGyronormDriver(options)

gyronorm.js accelerometer and gyroscope driver factory.

Params:

  • options a subset of the GyroNorm options (https://github.com/dorukeker/gyronorm.js#options)
    • frequency? {number}
    • gravityNormalized? {boolean}
    • orientationBase? {string}
    • decimalCount? {number}
    • screenAdjusted? {boolean}

Return:

  • Driver the GyroNorm Cycle.js driver function. It takes no stream and returns GyroNorm output data.

FAQs

Package last updated on 15 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.