File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class XrJoint {
35
35
_index ;
36
36
37
37
/**
38
- * @type {string }
38
+ * @type {XRHandJoint }
39
39
* @private
40
40
*/
41
41
_id ;
@@ -47,7 +47,7 @@ class XrJoint {
47
47
_hand ;
48
48
49
49
/**
50
- * @type {XrFinger }
50
+ * @type {XrFinger|null }
51
51
* @private
52
52
*/
53
53
_finger ;
@@ -65,7 +65,7 @@ class XrJoint {
65
65
_tip ;
66
66
67
67
/**
68
- * @type {number }
68
+ * @type {number|null }
69
69
* @private
70
70
*/
71
71
_radius = null ;
@@ -116,7 +116,7 @@ class XrJoint {
116
116
* Create an XrJoint instance.
117
117
*
118
118
* @param {number } index - Index of a joint within a finger.
119
- * @param {string } id - Id of a joint based on WebXR Hand Input Specs.
119
+ * @param {XRHandJoint } id - Id of a joint based on WebXR Hand Input Specs.
120
120
* @param {XrHand } hand - Hand that joint relates to.
121
121
* @param {XrFinger|null } finger - Finger that joint is related to. Can be null in the case of
122
122
* the wrist joint.
@@ -181,6 +181,15 @@ class XrJoint {
181
181
return this . _rotation ;
182
182
}
183
183
184
+ /**
185
+ * Id of a joint based on WebXR Hand Input Specs.
186
+ *
187
+ * @type {XRHandJoint }
188
+ */
189
+ get id ( ) {
190
+ return this . _id ;
191
+ }
192
+
184
193
/**
185
194
* Index of a joint within a finger, starting from 0 (root of a finger) all the way to tip of
186
195
* the finger.
You can’t perform that action at this time.
0 commit comments