Liking cljdoc? Tell your friends :D
ClojureScript only.

web.accelerometer.LinearAccelerationSensor

The LinearAccelerationSensor interface of the Sensor APIs provides each reading the acceleration applied to the device along all axes, but without the contribution of gravity.

The LinearAccelerationSensor interface of the Sensor APIs provides
each reading the acceleration applied to the device along all
axes, but without the contribution of gravity.
raw docstring

constructorcljs

(constructor & args)

Constructor.

The LinearAccelerationSensor constructor creates a new web.accelerometer.LinearAccelerationSensor object which provides on each reading the acceleration applied to the device along all three axes, but without the contribution of gravity.

options Optional Options are as follows:

frequency: The desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onreading will be called. A whole number or decimal may be used, the latter for frequencies less than a second. The actual reading frequency depends device hardware and consequently may be less than requested. referenceFrame: Either 'device' or 'screen'. The default is 'device'.

See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/LinearAccelerationSensor

Constructor.

The LinearAccelerationSensor constructor creates a new `web.accelerometer.LinearAccelerationSensor` object which provides on each reading the acceleration applied to the device along all three axes, but without the contribution of gravity.

options Optional
Options are as follows:

frequency: The desired number of times per second a sample should be taken, meaning the number of times per second that `sensor.onreading` will be called. A whole number or decimal may be used, the latter for frequencies less than a second. The actual reading frequency depends device hardware and consequently may be less than requested.
referenceFrame: Either 'device' or 'screen'. The default is 'device'.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/LinearAccelerationSensor`
sourceraw docstring

xcljs

(x this)

Property.

[Read Only]

The x read-only property of the web.accelerometer.LinearAccelerationSensor returns a double precision integer containing the linear acceleration the device along the device's x axis.

var xLinearAccelerationSensor = linearAccelerationSensor.x

See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/x

Property.

[Read Only]

The x read-only property of the `web.accelerometer.LinearAccelerationSensor`
returns a double precision integer containing the linear acceleration
the device along the device's x axis.

`var xLinearAccelerationSensor = linearAccelerationSensor.x`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/x`
sourceraw docstring

ycljs

(y this)

Property.

[Read Only]

The y read-only property of the web.accelerometer.LinearAccelerationSensor returns a double precision integer containing the acceleration the device along the device's y axis.

var yAcceleration = accelerometer.y

See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/y

Property.

[Read Only]

The y read-only property of the `web.accelerometer.LinearAccelerationSensor`
returns a double precision integer containing the acceleration
the device along the device's y axis.

`var yAcceleration = accelerometer.y`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/y`
sourceraw docstring

zcljs

(z this)

Property.

[Read Only]

The z read-only property of the web.accelerometer.LinearAccelerationSensor returns a double precision integer containing the acceleration the device along the device's z axis.

var zAcceleration = accelerometer.z

See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/z

Property.

[Read Only]

The z read-only property of the `web.accelerometer.LinearAccelerationSensor`
returns a double precision integer containing the acceleration
the device along the device's z axis.

`var zAcceleration = accelerometer.z`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/z`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close