@@ -1315,7 +1315,7 @@ class ArcballControls extends Controls {
13151315 *
13161316 * @param {'PAN'|'ROTATE'|'ZOOM'|'FOV' } operation - The operation to be performed ('PAN', 'ROTATE', 'ZOOM', 'FOV').
13171317 * @param {0|1|2|'WHEEL' } mouse - A mouse button (0, 1, 2) or 'WHEEL' for wheel notches.
1318- * @param {'CTRL'|'SHIFT'|null } [key=null] - The keyboard modifier ('CTRL', 'SHIFT') or null if key is not needed.
1318+ * @param {?( 'CTRL'|'SHIFT') } [key=null] - The keyboard modifier ('CTRL', 'SHIFT') or null if key is not needed.
13191319 * @returns {boolean } `true` if the mouse action has been successfully added, `false` otherwise.
13201320 */
13211321 setMouseAction ( operation , mouse , key = null ) {
@@ -1396,7 +1396,7 @@ class ArcballControls extends Controls {
13961396 * Remove a mouse action by specifying its mouse/key combination.
13971397 *
13981398 * @param {0|1|2|'WHEEL' } mouse - A mouse button (0, 1, 2) or 'WHEEL' for wheel notches.
1399- * @param {'CTRL'|'SHIFT'|null } key - The keyboard modifier ('CTRL', 'SHIFT') or null if key is not needed.
1399+ * @param {?( 'CTRL'|'SHIFT') } key - The keyboard modifier ('CTRL', 'SHIFT') or null if key is not needed.
14001400 * @returns {boolean } `true` if the operation has been successfully removed, `false` otherwise.
14011401 */
14021402 unsetMouseAction ( mouse , key = null ) {
@@ -1421,8 +1421,8 @@ class ArcballControls extends Controls {
14211421 *
14221422 * @private
14231423 * @param {0|1|2|'WHEEL' } mouse - Mouse button index (0, 1, 2) or 'WHEEL' for wheel notches.
1424- * @param {'CTRL'|'SHIFT'|null } key - Keyboard modifier.
1425- * @returns {'PAN'|'ROTATE'|'ZOOM'|'FOV'|null } The operation if it has been found, `null` otherwise.
1424+ * @param {?( 'CTRL'|'SHIFT') } key - Keyboard modifier.
1425+ * @returns {?( 'PAN'|'ROTATE'|'ZOOM'|'FOV') } The operation if it has been found, `null` otherwise.
14261426 */
14271427 getOpFromAction ( mouse , key ) {
14281428
@@ -1463,7 +1463,7 @@ class ArcballControls extends Controls {
14631463 *
14641464 * @private
14651465 * @param {0|1|2 } mouse - Mouse button index (0, 1, 2)
1466- * @param {'CTRL'|'SHIFT'|null } key - Keyboard modifier
1466+ * @param {?( 'CTRL'|'SHIFT') } key - Keyboard modifier
14671467 * @returns {?STATE } The FSA state obtained from the operation associated to mouse/keyboard combination.
14681468 */
14691469 getOpStateFromAction ( mouse , key ) {
@@ -2509,8 +2509,8 @@ class ArcballControls extends Controls {
25092509 * Sets values in transformation object.
25102510 *
25112511 * @private
2512- * @param {Matrix4 } [camera=null] - Transformation to be applied to the camera.
2513- * @param {Matrix4 } [gizmos=null] - Transformation to be applied to gizmos.
2512+ * @param {? Matrix4 } [camera=null] - Transformation to be applied to the camera.
2513+ * @param {? Matrix4 } [gizmos=null] - Transformation to be applied to gizmos.
25142514 */
25152515 setTransformationMatrices ( camera = null , gizmos = null ) {
25162516
0 commit comments