You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @returns {STATE|null} The FSA state obtained from the operation associated to mouse/keyboard combination
1253
+
* @returns {STATE?} The FSA state obtained from the operation associated to mouse/keyboard combination
1250
1254
*/
1251
1255
getOpStateFromAction(mouse,key){
1252
1256
@@ -1478,7 +1482,7 @@ class ArcballControls extends Controls {
1478
1482
* Focus operation consist of positioning the point of interest in front of the camera and a slightly zoom in
1479
1483
* @param {Vector3} point The point of interest
1480
1484
* @param {Number} size Scale factor
1481
-
* @param {Number} amount Amount of operation to be completed (used for focus animations, default is complete full operation)
1485
+
* @param {Number} [amount=1] Amount of operation to be completed (used for focus animations, default is complete full operation)
1482
1486
*/
1483
1487
focus(point,size,amount=1){
1484
1488
@@ -1717,7 +1721,7 @@ class ArcballControls extends Controls {
1717
1721
1718
1722
/**
1719
1723
* Set gizmos radius factor and redraws gizmos
1720
-
* @param {Float} value Value of radius factor
1724
+
* @param {Number} value Value of radius factor
1721
1725
*/
1722
1726
setTbRadius(value){
1723
1727
@@ -2324,7 +2328,7 @@ class ArcballControls extends Controls {
2324
2328
*
2325
2329
* @param {Vector2} cursor Cursor coordinates in NDC
2326
2330
* @param {Camera} camera Virtual camera
2327
-
* @returns {Vector3|null} The point of intersection with the model, if exist, null otherwise
2331
+
* @returns {Vector3?} The point of intersection with the model, if exist, null otherwise
2328
2332
*/
2329
2333
unprojectOnObj(cursor,camera){
2330
2334
@@ -2485,7 +2489,7 @@ class ArcballControls extends Controls {
2485
2489
* @param {Number} cursorX Cursor horizontal coordinate on screen
2486
2490
* @param {Number} cursorY Cursor vertical coordinate on screen
2487
2491
* @param {HTMLElement} canvas The canvas where the renderer draws its output
2488
-
* @param {Boolean} initialDistance If initial distance between camera and gizmos should be used for calculations instead of current (Perspective only)
2492
+
* @param {Boolean} [initialDistance=false] If initial distance between camera and gizmos should be used for calculations instead of current (Perspective only)
2489
2493
* @returns {Vector3} The unprojected point on the trackball plane
0 commit comments