From 6a644fe0cc3220c7bebf6acc96bb7e49d3274980 Mon Sep 17 00:00:00 2001 From: Roberto Becerril <50279639+xdroberto@users.noreply.github.com> Date: Tue, 4 Aug 2026 19:30:34 -0500 Subject: [PATCH] Docs: Fix typos and a wrong parameter name in JSDoc comments (#34169) --- examples/jsm/controls/ArcballControls.js | 2 +- src/math/FrustumArray.js | 2 +- src/nodes/functions/PhongLightingModel.js | 2 +- src/renderers/webgl-fallback/utils/WebGLState.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/jsm/controls/ArcballControls.js b/examples/jsm/controls/ArcballControls.js index bf3cd279090f41..6c2295795943c9 100644 --- a/examples/jsm/controls/ArcballControls.js +++ b/examples/jsm/controls/ArcballControls.js @@ -2563,7 +2563,7 @@ class ArcballControls extends Controls { * Rotates camera around its direction axis passing by a given point by a given angle. * * @private - * @param {Vector3} point - The point where the rotation axis is passing trough. + * @param {Vector3} point - The point where the rotation axis is passing through. * @param {number} angle - Angle in radians. * @returns {Object} The computed transformation matrix. */ diff --git a/src/math/FrustumArray.js b/src/math/FrustumArray.js index 4463a21525aff8..b84dab58bd2591 100644 --- a/src/math/FrustumArray.js +++ b/src/math/FrustumArray.js @@ -188,7 +188,7 @@ class FrustumArray { /** * Copies the values of the given frustum array to this instance. * - * @param {FrustumArray} frustumArray - The frustum array to copy. + * @param {FrustumArray} source - The frustum array to copy. * @return {FrustumArray} A reference to this frustum array. */ copy( source ) { diff --git a/src/nodes/functions/PhongLightingModel.js b/src/nodes/functions/PhongLightingModel.js index 99be0b639beb8e..0e6fb994225d0f 100644 --- a/src/nodes/functions/PhongLightingModel.js +++ b/src/nodes/functions/PhongLightingModel.js @@ -59,7 +59,7 @@ class PhongLightingModel extends BasicLightingModel { } /** - * Implements the direct lighting. The specular portion is optional an can be controlled + * Implements the direct lighting. The specular portion is optional and can be controlled * with the {@link PhongLightingModel#specular} flag. * * @param {Object} lightData - The light data. diff --git a/src/renderers/webgl-fallback/utils/WebGLState.js b/src/renderers/webgl-fallback/utils/WebGLState.js index 611de66dc084c3..1fb2f4fa6ea106 100644 --- a/src/renderers/webgl-fallback/utils/WebGLState.js +++ b/src/renderers/webgl-fallback/utils/WebGLState.js @@ -1341,7 +1341,7 @@ class WebGLState { /** * Returns the value for the given parameter. * - * @param {number} name - The paramter to get the value for. + * @param {number} name - The parameter to get the value for. * @return {any} The value for the given parameter. */ getParameter( name ) {