Liking cljdoc? Tell your friends :D

web.ar.XRInputSource

The XRInputSource interface of the WebXR Device API returns information the Web AR/VR control device being used. The control device is and defines a primary action. A primary action is a trigger, button, spoken command, or hand gesture that when performed produces selectend, and select events.

The XRInputSource interface of the WebXR Device API returns information
the Web AR/VR control device being used. The control device is
and defines a primary action. A primary action is a trigger,
button, spoken command, or hand gesture that when performed produces
`selectend`, and `select` events.
raw docstring

grip-spacecljs

(grip-space this)

Property.

[Read Only] [Draft]

The XRInputSource.gripSpace read-only property of the web.ar.XRInputSource returns an XRSpace whose native origin tracks the pose that be used to render virtual objects such that they appear to be in the user's hand. For example, if a user were holding a virtual rod, the native origin of this XRSpace would be the approximate of the user's curled fingers.

var xrSpace = XRInputSource.gripSpace;

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

Property.

[Read Only]
[Draft]

The XRInputSource.gripSpace read-only property of the `web.ar.XRInputSource`
returns an `XRSpace` whose native origin tracks the pose that
be used to render virtual objects such that they appear to be
in the user's hand. For example, if a user were holding a virtual
rod, the native origin of this XRSpace would be the approximate
of the user's curled fingers.

`var xrSpace = XRInputSource.gripSpace;`

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

handednesscljs

(handedness this)

Property.

Describes which hand the XRInputSource is associates with, if This will be one of "left", "right", or "none".

Property.

Describes which hand the XRInputSource is associates with, if
This will be one of "left", "right", or "none".
sourceraw docstring

profilescljs

(profiles this)

Property.

Returns an array of input profile names indicating both the preferred representation and behavior of the input source.

Property.

Returns an array of input profile names indicating both the preferred
representation and behavior of the input source.
sourceraw docstring

set-handedness!cljs

(set-handedness! this val)

Property.

Describes which hand the XRInputSource is associates with, if This will be one of "left", "right", or "none".

Property.

Describes which hand the XRInputSource is associates with, if
This will be one of "left", "right", or "none".
sourceraw docstring

set-profiles!cljs

(set-profiles! this val)

Property.

Returns an array of input profile names indicating both the preferred representation and behavior of the input source.

Property.

Returns an array of input profile names indicating both the preferred
representation and behavior of the input source.
sourceraw docstring

set-target-ray-mode!cljs

(set-target-ray-mode! this val)

Property.

Returns the method used to produce the target ray. This will one of "gaze", "tracked-pointer", or "screen".

Property.

Returns the method used to produce the target ray. This will
one of "gaze", "tracked-pointer", or "screen".
sourceraw docstring

set-target-ray-space!cljs

(set-target-ray-space! this val)

Property.

Returns an XRSpace with a native origin tracking the position orientation of the preferred point ray as defined by XRInputSource.targetRayMode.

Property.

Returns an XRSpace with a native origin tracking the position
orientation of the preferred point ray as defined by XRInputSource.targetRayMode.
sourceraw docstring

target-ray-modecljs

(target-ray-mode this)

Property.

Returns the method used to produce the target ray. This will one of "gaze", "tracked-pointer", or "screen".

Property.

Returns the method used to produce the target ray. This will
one of "gaze", "tracked-pointer", or "screen".
sourceraw docstring

target-ray-spacecljs

(target-ray-space this)

Property.

Returns an XRSpace with a native origin tracking the position orientation of the preferred point ray as defined by XRInputSource.targetRayMode.

Property.

Returns an XRSpace with a native origin tracking the position
orientation of the preferred point ray as defined by XRInputSource.targetRayMode.
sourceraw docstring

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

× close