Liking cljdoc? Tell your friends :D
ClojureScript only.

web.divice.DeviceAcceleration

A DeviceAcceleration object provides information about the amount acceleration the device is experiencing along all three axes.

A DeviceAcceleration object provides information about the amount
acceleration the device is experiencing along all three axes.
raw docstring

xcljs

(x this)

Property.

[Read Only]

This read-only property indicates the amount of acceleration occurred along the X axis in a web.divice.DeviceAcceleration

var xAccel = deviceAcceleration.x;

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

Property.

[Read Only]

This read-only property indicates the amount of acceleration
occurred along the X axis in a `web.divice.DeviceAcceleration`

`var xAccel = deviceAcceleration.x;`

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

ycljs

(y this)

Property.

[Read Only]

This read-only property indicates the amount of acceleration occurred along the Y axis in a web.divice.DeviceAcceleration

var yAccel = deviceAcceleration.y;

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

Property.

[Read Only]

This read-only property indicates the amount of acceleration
occurred along the Y axis in a `web.divice.DeviceAcceleration`

`var yAccel = deviceAcceleration.y;`

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

zcljs

(z this)

Property.

[Read Only]

This read-only property indicates the amount of acceleration occurred along the Z axis in a web.divice.DeviceAcceleration

var zAccel = deviceAcceleration.z;

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

Property.

[Read Only]

This read-only property indicates the amount of acceleration
occurred along the Z axis in a `web.divice.DeviceAcceleration`

`var zAccel = deviceAcceleration.z;`

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

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

× close