Liking cljdoc? Tell your friends :D
ClojureScript only.

web.accelerometer.Accelerometer

The Accelerometer interface of the Sensor APIs provides on each the acceleration applied to the device along all three axes.

The Accelerometer interface of the Sensor APIs provides on each
the acceleration applied to the device along all three axes.
raw docstring

xcljs

(x this)

Property.

[Read Only]

The x read-only property of the web.accelerometer.Accelerometer returns a double precision integer containing the acceleration the device along the its x axis.

var xAcceleration = accelerometer.x

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

Property.

[Read Only]

The x read-only property of the `web.accelerometer.Accelerometer`
returns a double precision integer containing the acceleration
the device along the its x axis.

`var xAcceleration = accelerometer.x`

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

ycljs

(y this)

Property.

[Read Only]

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

var yAcceleration = accelerometer.y

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

Property.

[Read Only]

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

`var yAcceleration = accelerometer.y`

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

zcljs

(z this)

Property.

[Read Only]

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

var zAcceleration = accelerometer.z

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

Property.

[Read Only]

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

`var zAcceleration = accelerometer.z`

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

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close