@@ -21,10 +21,10 @@ import { XRSpace } from './space.js'
21
21
* Component for placing content in the controller anchored at a specific component such as the Thumbstick
22
22
*
23
23
* @param props
24
- * * `id`: `XRControllerGamepadComponentId` - Is the id of the component where content should be placed (e.g. `"a-button"`)
25
- * * `onPress?`: `Function` - Is an optional callback to receive when the component is pressed
26
- * * `onRelease?`: `Function` - Is an optional callback to receive when the component is released
27
- * * `children?`: `ReactNode` - Children to be placed inside the componenent (e.g. visualizing a tooltip over the button...)
24
+ * #### `id` - `XRControllerGamepadComponentId` Is the id of the component where content should be placed (e.g. `"a-button"`)
25
+ * #### `onPress?` - `Function` Is an optional callback to receive when the component is pressed
26
+ * #### `onRelease?` - `Function` Is an optional callback to receive when the component is released
27
+ * #### `children?` - `ReactNode` Children to be placed inside the componenent (e.g. visualizing a tooltip over the button...)
28
28
*
29
29
* @function
30
30
*/
@@ -49,7 +49,7 @@ export const XRControllerComponent = forwardRef<
49
49
} )
50
50
51
51
/**
52
- * hook for subscribing to a button state change event on the controller
52
+ * Hook for subscribing to a button state change event on the controller
53
53
* @param id of the button
54
54
* @param onChange callback that gets executed when the state of the button changes
55
55
* @param handedness of the controller
@@ -76,8 +76,8 @@ const LoadXRControllerModelSymbol = Symbol('loadXRControllerModel')
76
76
/**
77
77
* Component for rendering a 3D model for the XRController
78
78
* @param props
79
- * * `colorWrite` Configures the colorWrite property of the model
80
- * * `renderOrder` Configures the render order model
79
+ * #### `colorWrite` - Configures the colorWrite property of the model
80
+ * #### `renderOrder` - Configures the render order model
81
81
* @function
82
82
*/
83
83
export const XRControllerModel = forwardRef < Object3D , XRControllerModelOptions > ( ( options , ref ) => {
@@ -104,6 +104,7 @@ const LoadXRControllerLayoutSymbol = Symbol('loadXRControllerLayout')
104
104
* Hook for loading a controller layout, which contains info about the controller model and its buttons / controls.
105
105
* For xr controllers provided through WebXR, the layout is loaded and provided through the controller state automatically.
106
106
* Therefore, this hook's purpose is for building controller demos/tutorials.
107
+ *
107
108
* @param profileIds
108
109
* @param handedness
109
110
* @param XRControllerLayoutLoaderOptions
0 commit comments