Liking cljdoc? Tell your friends :D
ClojureScript only.

web.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

set-x!cljs

(set-x! this val)

Property.

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

var xAccel = deviceAcceleration.x;

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

Property.

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

`var xAccel = deviceAcceleration.x;`

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

set-y!cljs

(set-y! this val)

Property.

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

var yAccel = deviceAcceleration.y;

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

Property.

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

`var yAccel = deviceAcceleration.y;`

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

set-z!cljs

(set-z! this val)

Property.

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

var zAccel = deviceAcceleration.z;

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

Property.

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

`var zAccel = deviceAcceleration.z;`

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

xcljs

(x this)

Property.

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

var xAccel = deviceAcceleration.x;

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

Property.

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

`var xAccel = deviceAcceleration.x;`

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

ycljs

(y this)

Property.

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

var yAccel = deviceAcceleration.y;

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

Property.

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

`var yAccel = deviceAcceleration.y;`

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

zcljs

(z this)

Property.

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

var zAccel = deviceAcceleration.z;

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

Property.

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

`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