Sfoglia il codice sorgente

Docs: fix some typos (#30664)

Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
Samuel Rigaud 10 mesi fa
parent
commit
b948e1f23b
46 ha cambiato i file con 72 aggiunte e 72 eliminazioni
  1. 2 2
      examples/jsm/animation/AnimationClipCreator.js
  2. 2 2
      examples/jsm/animation/CCDIKSolver.js
  3. 1 1
      examples/jsm/controls/ArcballControls.js
  4. 1 1
      examples/jsm/csm/CSMFrustum.js
  5. 1 1
      examples/jsm/csm/CSMShadowNode.js
  6. 1 1
      examples/jsm/exporters/EXRExporter.js
  7. 1 1
      examples/jsm/exporters/GLTFExporter.js
  8. 1 1
      examples/jsm/exporters/KTX2Exporter.js
  9. 2 2
      examples/jsm/exporters/PLYExporter.js
  10. 2 2
      examples/jsm/exporters/USDZExporter.js
  11. 1 1
      examples/jsm/geometries/DecalGeometry.js
  12. 1 1
      examples/jsm/geometries/ParametricGeometry.js
  13. 1 1
      examples/jsm/geometries/TextGeometry.js
  14. 1 1
      examples/jsm/interactive/InteractiveGroup.js
  15. 2 2
      examples/jsm/interactive/SelectionBox.js
  16. 2 2
      examples/jsm/lines/LineGeometry.js
  17. 3 3
      examples/jsm/lines/LineSegmentsGeometry.js
  18. 2 2
      examples/jsm/math/ConvexHull.js
  19. 1 1
      examples/jsm/math/Octree.js
  20. 1 1
      examples/jsm/math/SimplexNoise.js
  21. 1 1
      examples/jsm/modifiers/CurveModifierGPU.js
  22. 2 2
      examples/jsm/modifiers/EdgeSplitModifier.js
  23. 2 2
      examples/jsm/modifiers/SimplifyModifier.js
  24. 2 2
      examples/jsm/modifiers/TessellateModifier.js
  25. 1 1
      examples/jsm/renderers/Projector.js
  26. 1 1
      examples/jsm/renderers/SVGRenderer.js
  27. 1 1
      manual/ru/primitives.html
  28. 1 1
      src/animation/AnimationAction.js
  29. 3 3
      src/animation/AnimationMixer.js
  30. 7 7
      src/constants.js
  31. 2 2
      src/core/BufferAttribute.js
  32. 3 3
      src/core/BufferGeometry.js
  33. 1 1
      src/core/InterleavedBuffer.js
  34. 1 1
      src/core/InterleavedBufferAttribute.js
  35. 1 1
      src/core/Raycaster.js
  36. 1 1
      src/lights/LightShadow.js
  37. 1 1
      src/lights/webgpu/IESSpotLight.js
  38. 1 1
      src/loaders/CubeTextureLoader.js
  39. 1 1
      src/loaders/MaterialLoader.js
  40. 1 1
      src/materials/LineBasicMaterial.js
  41. 1 1
      src/materials/ShaderMaterial.js
  42. 2 2
      src/objects/BatchedMesh.js
  43. 1 1
      src/objects/LOD.js
  44. 2 2
      src/renderers/WebGLRenderer.js
  45. 2 2
      src/renderers/webxr/WebXRController.js
  46. 1 1
      src/textures/CanvasTexture.js

+ 2 - 2
examples/jsm/animation/AnimationClipCreator.js

@@ -15,7 +15,7 @@ import {
 class AnimationClipCreator {
 
 	/**
-	 * Creates an animation clip that rotates a 3D object 360 degress
+	 * Creates an animation clip that rotates a 3D object 360 degrees
 	 * in the given period of time around the given axis.
 	 *
 	 * @param {number} period - The duration of the animation.
@@ -115,7 +115,7 @@ class AnimationClipCreator {
 	}
 
 	/**
-	 * Creates an animation clip that toggles the visbility of a 3D object.
+	 * Creates an animation clip that toggles the visibility of a 3D object.
 	 *
 	 * @param {number} duration - The duration of the animation.
 	 * @return {AnimationClip} The created animation clip.

+ 2 - 2
examples/jsm/animation/CCDIKSolver.js

@@ -253,7 +253,7 @@ class CCDIKSolver {
 	}
 
 	/**
-	 * Creates a helper for visualizing tehh CCDIK.
+	 * Creates a helper for visualizing the CCDIK.
 	 *
 	 * @param {number} sphereSize - The sphere size.
 	 * @return {CCDIKHelper} The created helper.
@@ -395,7 +395,7 @@ class CCDIKHelper extends Object3D {
 		} );
 
 		/**
-		 * A global line matreial.
+		 * A global line material.
 		 *
 		 * @type {LineBasicMaterial}
 		 */

+ 1 - 1
examples/jsm/controls/ArcballControls.js

@@ -1532,7 +1532,7 @@ class ArcballControls extends Controls {
 	}
 
 	/**
-	 * Applys a transformation matrix, to the camera and gizmos.
+	 * Applies a transformation matrix, to the camera and gizmos.
 	 *
 	 * @private
 	 * @param {Object} transformation - Object containing matrices to apply to camera and gizmos.

+ 1 - 1
examples/jsm/csm/CSMFrustum.js

@@ -57,7 +57,7 @@ class CSMFrustum {
 	/**
 	 * Setups this CSM frustum from the given projection matrix and max far value.
 	 *
-	 * @param {Matrix4} projectionMatrix - The projection matrix, ususally of the scene's camera.
+	 * @param {Matrix4} projectionMatrix - The projection matrix, usually of the scene's camera.
 	 * @param {number} maxFar - The maximum far value.
 	 * @returns {Object} An object representing the vertices of the near and far plane in view space.
 	 */

+ 1 - 1
examples/jsm/csm/CSMShadowNode.js

@@ -282,7 +282,7 @@ class CSMShadowNode extends ShadowBaseNode {
 	}
 
 	/**
-	 * Sets the ligth breaks.
+	 * Sets the light breaks.
 	 *
 	 * @private
 	 */

+ 1 - 1
examples/jsm/exporters/EXRExporter.js

@@ -32,7 +32,7 @@ class EXRExporter {
 	/**
 	 * This method has two variants.
 	 *
-	 * - When exporting a data texture, it receives two paramters. The texture and the exporter options.
+	 * - When exporting a data texture, it receives two parameters. The texture and the exporter options.
 	 * - When exporting a render target (e.g. a PMREM), it receives three parameters. The renderer, the
 	 * render target and the exporter options.
 	 *

+ 1 - 1
examples/jsm/exporters/GLTFExporter.js

@@ -201,7 +201,7 @@ class GLTFExporter {
 	}
 
 	/**
-	 * Registers a plugin callback. This API is iternally used to implement the various
+	 * Registers a plugin callback. This API is internally used to implement the various
 	 * glTF extensions but can also used by third-party code to add additional logic
 	 * to the exporter.
 	 *

+ 1 - 1
examples/jsm/exporters/KTX2Exporter.js

@@ -140,7 +140,7 @@ export class KTX2Exporter {
 	/**
 	 * This method has two variants.
 	 *
-	 * - When exporting a data texture, it receives one paramter. The data or 3D data texture.
+	 * - When exporting a data texture, it receives one parameter. The data or 3D data texture.
 	 * - When exporting a render target (e.g. a PMREM), it receives two parameters. The renderer and the
 	 * render target.
 	 *

+ 2 - 2
examples/jsm/exporters/PLYExporter.js

@@ -9,8 +9,8 @@ import {
 /**
  * An exporter for PLY.
  *
- * PLY (Polygon or Stanford Triangle Format) is a file format for efficient delivery and l
- * oading of simple, static 3D content in a dense format. Both binary and ascii formats are
+ * PLY (Polygon or Stanford Triangle Format) is a file format for efficient delivery and
+ * loading of simple, static 3D content in a dense format. Both binary and ascii formats are
  * supported. PLY can store vertex positions, colors, normals and uv coordinates. No textures
  * or texture references are saved.
  *

+ 2 - 2
examples/jsm/exporters/USDZExporter.js

@@ -824,12 +824,12 @@ function buildCamera( camera ) {
  * Export options of `USDZExporter`.
  *
  * @typedef {Object} USDZExporter~Options
- * @property {number} [maxTextureSize=1024] - The maxiumum texture size that is going to be exported.
+ * @property {number} [maxTextureSize=1024] - The maximum texture size that is going to be exported.
  * @property {boolean} [includeAnchoringProperties=false] - Whether to include anchoring properties or not.
  * @property {Object} [ar] - If `includeAnchoringProperties` is set to `true`, the anchoring type and alignment
  * can be configured via `ar.anchoring.type` and `ar.planeAnchoring.alignment`.
  * @property {boolean} [quickLookCompatible=false] - Whether to make the exported USDZ compatible to QuickLook
- * which means the asset is modified to accomodate the bugs FB10036297 and FB11442287 (Apple Feedback).
+ * which means the asset is modified to accommodate the bugs FB10036297 and FB11442287 (Apple Feedback).
  **/
 
 /**

+ 1 - 1
examples/jsm/geometries/DecalGeometry.js

@@ -12,7 +12,7 @@ import {
  * This class can be used to create a decal mesh that serves different kinds of purposes e.g.
  * adding unique details to models, performing dynamic visual environmental changes or covering seams.
  *
- * Please not that decal projections can be distored when used around corners. More information at
+ * Please not that decal projections can be distorted when used around corners. More information at
  * this GitHub issue: [Decal projections without distortions]{@link https://github.com/mrdoob/three.js/issues/21187}.
  *
  * Reference: [How to project decals]{@link http://blog.wolfire.com/2009/06/how-to-project-decals/}

+ 1 - 1
examples/jsm/geometries/ParametricGeometry.js

@@ -5,7 +5,7 @@ import {
 } from 'three';
 
 /**
- * This class can be used to generate a geometry based on a paremtric surface.
+ * This class can be used to generate a geometry based on a parametric surface.
  *
  * Reference: [Mesh Generation with Python]{@link https://prideout.net/blog/old/blog/index.html@p=44.html}
  *

+ 1 - 1
examples/jsm/geometries/TextGeometry.js

@@ -13,7 +13,7 @@ import {
  *
  * ```js
  * const loader = new FontLoader();
- * const fonst = await loader.loadAsync( 'fonts/helvetiker_regular.typeface.json' );
+ * const font = await loader.loadAsync( 'fonts/helvetiker_regular.typeface.json' );
  * const geometry = new TextGeometry( 'Hello three.js!', {
  * 	font: font,
  * 	size: 80,

+ 1 - 1
examples/jsm/interactive/InteractiveGroup.js

@@ -131,7 +131,7 @@ class InteractiveGroup extends Group {
 
 	/**
 	 * Calling this method makes sure the interactive group listens to Pointer and Mouse events.
-	 * The taret is the `domElement` of the given renderer. The camera is required for the internal
+	 * The target is the `domElement` of the given renderer. The camera is required for the internal
 	 * raycasting so 3D objects can be detected based on the events.
 	 *
 	 * @param {(WebGPURenderer|WebGLRenderer)} renderer - The renderer.

+ 2 - 2
examples/jsm/interactive/SelectionBox.js

@@ -64,14 +64,14 @@ class SelectionBox {
 		this.scene = scene;
 
 		/**
-		 * The start point of the selction.
+		 * The start point of the selection.
 		 *
 		 * @type {Vector3}
 		 */
 		this.startPoint = new Vector3();
 
 		/**
-		 * The end point of the selction.
+		 * The end point of the selection.
 		 *
 		 * @type {Vector3}
 		 */

+ 2 - 2
examples/jsm/lines/LineGeometry.js

@@ -41,7 +41,7 @@ class LineGeometry extends LineSegmentsGeometry {
 	}
 
 	/**
-	 * Sets the given line positions for this goemetry.
+	 * Sets the given line positions for this geometry.
 	 *
 	 * @param {Float32|Array} array - The position data to set.
 	 * @return {LineGeometry} A reference to this geometry.
@@ -72,7 +72,7 @@ class LineGeometry extends LineSegmentsGeometry {
 	}
 
 	/**
-	 * Sets the given line colors for this goemetry.
+	 * Sets the given line colors for this geometry.
 	 *
 	 * @param {Float32|Array} array - The position data to set.
 	 * @return {LineGeometry} A reference to this geometry.

+ 3 - 3
examples/jsm/lines/LineSegmentsGeometry.js

@@ -50,7 +50,7 @@ class LineSegmentsGeometry extends InstancedBufferGeometry {
 	}
 
 	/**
-	 * Applies the given 4x4 tranformation matrix to the geometry.
+	 * Applies the given 4x4 transformation matrix to the geometry.
 	 *
 	 * @param {Matrix4} matrix - The matrix to apply.
 	 * @return {LineSegmentsGeometry} A reference to this instance.
@@ -87,7 +87,7 @@ class LineSegmentsGeometry extends InstancedBufferGeometry {
 	}
 
 	/**
-	 * Sets the given line positions for this goemetry. The length must be a multiple of six since
+	 * Sets the given line positions for this geometry. The length must be a multiple of six since
 	 * each line segment is defined by a start end vertex in the pattern `(xyz xyz)`.
 	 *
 	 * @param {Float32|Array} array - The position data to set.
@@ -124,7 +124,7 @@ class LineSegmentsGeometry extends InstancedBufferGeometry {
 	}
 
 	/**
-	 * Sets the given line colors for this goemetry. The length must be a multiple of six since
+	 * Sets the given line colors for this geometry. The length must be a multiple of six since
 	 * each line segment is defined by a start end color in the pattern `(rgb rgb)`.
 	 *
 	 * @param {Float32|Array} array - The position data to set.

+ 2 - 2
examples/jsm/math/ConvexHull.js

@@ -150,7 +150,7 @@ class ConvexHull {
 	 *
 	 * @param {Ray} ray - The ray to test.
 	 * @param {Vector3} target - The target vector that is used to store the method's result.
-	 * @return {Vector3|null} The intersection point. Returns `null` if not intesection was detected.
+	 * @return {Vector3|null} The intersection point. Returns `null` if not intersection was detected.
 	 */
 	intersectRay( ray, target ) {
 
@@ -1575,7 +1575,7 @@ class VertexList {
 	}
 
 	/**
-	 * ppends a chain of vertices where the given vertex is the head.
+	 * Appends a chain of vertices where the given vertex is the head.
 	 *
 	 * @private
 	 * @param {VertexNode} vertex - The head vertex of a chain of vertices.

+ 1 - 1
examples/jsm/math/Octree.js

@@ -136,7 +136,7 @@ class Octree {
 	}
 
 	/**
-	 * Adds the given triangle to the Octree. The triangle vertices are clampled if they exceed
+	 * Adds the given triangle to the Octree. The triangle vertices are clamped if they exceed
 	 * the bounds of the Octree.
 	 *
 	 * @param {Triangle} triangle - The triangle to add.

+ 1 - 1
examples/jsm/math/SimplexNoise.js

@@ -10,7 +10,7 @@ class SimplexNoise {
 	 * Constructs a new simplex noise object.
 	 *
 	 * @param {Object} [r=Math] - A math utility class that holds a `random()` method. This makes it
-	 * possiblet o pass in custom random number generator.
+	 * possible to pass in custom random number generator.
 	 */
 	constructor( r = Math ) {
 

+ 1 - 1
examples/jsm/modifiers/CurveModifierGPU.js

@@ -47,7 +47,7 @@ function initSplineTexture( numberOfCurves = 1 ) {
 /**
  * Write the curve description to the data texture.
  *
- * @privaate
+ * @private
  * @param {DataTexture} texture - The data texture to write to.
  * @param {Curve} splineCurve - The curve to describe.
  * @param {number} [offset=0] - Which curve slot to write to.

+ 2 - 2
examples/jsm/modifiers/EdgeSplitModifier.js

@@ -22,12 +22,12 @@ class EdgeSplitModifier {
 
 	/**
 	 * Returns a new, modified version of the given geometry by applying an edge-split operation.
-	 * Please note that the resutling geometry is always indexed.
+	 * Please note that the resulting geometry is always indexed.
 	 *
 	 * @param {BufferGeometry} geometry - The geometry to modify.
 	 * @param {number} cutOffAngle - The cut off angle in radians.
 	 * @param {boolean} [tryKeepNormals=true] - Whether to try to keep normals or not.
-	 * @return {BufferGeometry} A new, modified goemetry.
+	 * @return {BufferGeometry} A new, modified geometry.
 	 */
 	modify( geometry, cutOffAngle, tryKeepNormals = true ) {
 

+ 2 - 2
examples/jsm/modifiers/SimplifyModifier.js

@@ -26,11 +26,11 @@ class SimplifyModifier {
 
 	/**
 	 * Returns a new, modified version of the given geometry by applying a simplification.
-	 * Please note that the resutling geometry is always non-indexed.
+	 * Please note that the resulting geometry is always non-indexed.
 	 *
 	 * @param {BufferGeometry} geometry - The geometry to modify.
 	 * @param {number} count - The number of vertices to remove.
-	 * @return {BufferGeometry} A new, modified goemetry.
+	 * @return {BufferGeometry} A new, modified geometry.
 	 */
 	modify( geometry, count ) {
 

+ 2 - 2
examples/jsm/modifiers/TessellateModifier.js

@@ -45,10 +45,10 @@ class TessellateModifier {
 
 	/**
 	 * Returns a new, modified version of the given geometry by applying a tesselation.
-	 * Please note that the resutling geometry is always non-indexed.
+	 * Please note that the resulting geometry is always non-indexed.
 	 *
 	 * @param {BufferGeometry} geometry - The geometry to modify.
-	 * @return {BufferGeometry} A new, modified goemetry.
+	 * @return {BufferGeometry} A new, modified geometry.
 	 */
 	modify( geometry ) {
 

+ 1 - 1
examples/jsm/renderers/Projector.js

@@ -123,7 +123,7 @@ class RenderableSprite {
 /**
  * This class can project a given scene in 3D space into a 2D representation
  * used for rendering with a 2D API. `Projector` is currently used by {@link SVGRenderer}
- * and was previosuly used by the legacy `CanvasRenderer`.
+ * and was previously used by the legacy `CanvasRenderer`.
  */
 class Projector {
 

+ 1 - 1
examples/jsm/renderers/SVGRenderer.js

@@ -273,7 +273,7 @@ class SVGRenderer {
 		}
 
 		/**
-		 * Performs a manual clear with the defined clera color.
+		 * Performs a manual clear with the defined clear color.
 		 */
 		this.clear = function () {
 

+ 1 - 1
manual/ru/primitives.html

@@ -217,7 +217,7 @@ function addObject(x, y, obj) {
 как то, что справа.</p>
 <p>Другие исключения - это 2-строчные примеры для <a href="/docs/#api/en/geometries/EdgesGeometry"><code class="notranslate" translate="no">EdgesGeometry</code></a>
 и <a href="/docs/#api/en/geometries/WireframeGeometry"><code class="notranslate" translate="no">WireframeGeometry</code></a>. Вместо того, чтобы вызвать <code class="notranslate" translate="no">addSolidGeometry</code>
-они вызвают <code class="notranslate" translate="no">addLineGeomtry</code> который выглядит так</p>
+они вызвают <code class="notranslate" translate="no">addLineGeometry</code> который выглядит так</p>
 <pre class="prettyprint showlinemods notranslate notranslate" translate="no">function addLineGeometry(x, y, geometry) {
   const material = new THREE.LineBasicMaterial({color: 0x000000});
   const mesh = new THREE.LineSegments(geometry, material);

+ 1 - 1
src/animation/AnimationAction.js

@@ -124,7 +124,7 @@ class AnimationAction {
 		this.paused = false;
 
 		/**
-		 * If set to `false`, the action is disabeled so it has no impact.
+		 * If set to `false`, the action is disabled so it has no impact.
 		 *
 		 * When the action is re-enabled, the animation continues from its current
 		 * time (setting `enabled` to `false` doesn't reset the action).

+ 3 - 3
src/animation/AnimationMixer.js

@@ -543,7 +543,7 @@ class AnimationMixer extends EventDispatcher {
 	 * will be created by this method. Calling this method several times with the
 	 * same clip and root parameters always returns the same action.
 	 *
-	 * @param {AnimationClip|string} clip - An animaion clip or alternatively the name of the animation clip.
+	 * @param {AnimationClip|string} clip - An animation clip or alternatively the name of the animation clip.
 	 * @param {Object3D} [optionalRoot] - An alternative root object.
 	 * @param {(NormalAnimationBlendMode|AdditiveAnimationBlendMode)} [blendMode] - The blend mode.
 	 * @return {?AnimationAction} The animation action.
@@ -612,7 +612,7 @@ class AnimationMixer extends EventDispatcher {
 	/**
 	 * Returns an existing animation action for the passed clip.
 	 *
-	 * @param {AnimationClip|string} clip - An animaion clip or alternatively the name of the animation clip.
+	 * @param {AnimationClip|string} clip - An animation clip or alternatively the name of the animation clip.
 	 * @param {Object3D} [optionalRoot] - An alternative root object.
 	 * @return {?AnimationAction} The animation action. Returns `null` if no action was found.
 	 */
@@ -833,7 +833,7 @@ class AnimationMixer extends EventDispatcher {
 	 * given clip and an optional root object. Before using this method make
 	 * sure to call {@link AnimationAction#stop} to deactivate the action.
 	 *
-	 * @param {AnimationClip|string} clip - An animaion clip or alternatively the name of the animation clip.
+	 * @param {AnimationClip|string} clip - An animation clip or alternatively the name of the animation clip.
 	 * @param {Object3D} [optionalRoot] - An alternative root object.
 	 */
 	uncacheAction( clip, optionalRoot ) {

+ 7 - 7
src/constants.js

@@ -626,7 +626,7 @@ export const LinearMipmapLinearFilter = 1008;
 export const LinearMipMapLinearFilter = 1008; // legacy
 
 /**
- * An unsinged byte data type for textures.
+ * An unsigned byte data type for textures.
  *
  * @type {number}
  * @constant
@@ -650,7 +650,7 @@ export const ByteType = 1010;
 export const ShortType = 1011;
 
 /**
- * An unsinged short data type for textures.
+ * An unsigned short data type for textures.
  *
  * @type {number}
  * @constant
@@ -666,7 +666,7 @@ export const UnsignedShortType = 1012;
 export const IntType = 1013;
 
 /**
- * An unsinged int data type for textures.
+ * An unsigned int data type for textures.
  *
  * @type {number}
  * @constant
@@ -690,7 +690,7 @@ export const FloatType = 1015;
 export const HalfFloatType = 1016;
 
 /**
- * An unsinged short 4_4_4_4 (packed) data type for textures.
+ * An unsigned short 4_4_4_4 (packed) data type for textures.
  *
  * @type {number}
  * @constant
@@ -698,7 +698,7 @@ export const HalfFloatType = 1016;
 export const UnsignedShort4444Type = 1017;
 
 /**
- * An unsinged short 5_5_5_1 (packed) data type for textures.
+ * An unsigned short 5_5_5_1 (packed) data type for textures.
  *
  * @type {number}
  * @constant
@@ -706,7 +706,7 @@ export const UnsignedShort4444Type = 1017;
 export const UnsignedShort5551Type = 1018;
 
 /**
- * An unsinged int 24_8 data type for textures.
+ * An unsigned int 24_8 data type for textures.
  *
  * @type {number}
  * @constant
@@ -714,7 +714,7 @@ export const UnsignedShort5551Type = 1018;
 export const UnsignedInt248Type = 1020;
 
 /**
- * An unsinged int 5_9_9_9 (packed) data type for textures.
+ * An unsigned int 5_9_9_9 (packed) data type for textures.
  *
  * @type {number}
  * @constant

+ 2 - 2
src/core/BufferAttribute.js

@@ -216,7 +216,7 @@ class BufferAttribute {
 	 * and destination position in the attribute buffers are represented by the
 	 * given indices.
 	 *
-	 * @param {number} index1 - The destintation index into this buffer attribute.
+	 * @param {number} index1 - The destination index into this buffer attribute.
 	 * @param {BufferAttribute} attribute - The buffer attribute to copy from.
 	 * @param {number} index2 - The source index into the given buffer attribute.
 	 * @return {BufferAttribute} A reference to this instance.
@@ -390,7 +390,7 @@ class BufferAttribute {
 	}
 
 	/**
-	 * Sets the given value tothe given component of the vector at the given index.
+	 * Sets the given value to the given component of the vector at the given index.
 	 *
 	 * @param {number} index - The index into the buffer attribute.
 	 * @param {number} component - The component index.

+ 3 - 3
src/core/BufferGeometry.js

@@ -144,7 +144,7 @@ class BufferGeometry extends EventDispatcher {
 		 * Split the geometry into groups, each of which will be rendered in a
 		 * separate draw call. This allows an array of materials to be used with the geometry.
 		 *
-		 * Use `addGroup()` and `clearGroups()` to edtir groups, rather than modifying this array directly.
+		 * Use `addGroup()` and `clearGroups()` to edit groups, rather than modifying this array directly.
 		 *
 		 * Every vertex and index must belong to exactly one group — groups must not share vertices or
 		 * indices, and must not leave vertices or indices unused.
@@ -343,7 +343,7 @@ class BufferGeometry extends EventDispatcher {
 	}
 
 	/**
-	 * Applies the given 4x4 tranformation matrix to the geometry.
+	 * Applies the given 4x4 transformation matrix to the geometry.
 	 *
 	 * @param {Matrix4} matrix - The matrix to apply.
 	 * @return {BufferGeometry} A reference to this instance.
@@ -557,7 +557,7 @@ class BufferGeometry extends EventDispatcher {
 
 	/**
 	 * Defines a geometry by creating a `position` attribute based on the given array of points. The array
-	 * can hold 2D or 3D vectoes. When using two-dimensional data, the `z` coordinate for all vertices is
+	 * can hold 2D or 3D vectors. When using two-dimensional data, the `z` coordinate for all vertices is
 	 * set to `0`.
 	 *
 	 * If the method is used with an existing `position` attribute, the vertex data are overwritten with the

+ 1 - 1
src/core/InterleavedBuffer.js

@@ -161,7 +161,7 @@ class InterleavedBuffer {
 	 * and destination position in the attribute buffers are represented by the
 	 * given indices.
 	 *
-	 * @param {number} index1 - The destintation index into this interleaved buffer.
+	 * @param {number} index1 - The destination index into this interleaved buffer.
 	 * @param {InterleavedBuffer} interleavedBuffer - The interleaved buffer to copy from.
 	 * @param {number} index2 - The source index into the given interleaved buffer.
 	 * @return {InterleavedBuffer} A reference to this instance.

+ 1 - 1
src/core/InterleavedBufferAttribute.js

@@ -191,7 +191,7 @@ class InterleavedBufferAttribute {
 	}
 
 	/**
-	 * Sets the given value tothe given component of the vector at the given index.
+	 * Sets the given value to the given component of the vector at the given index.
 	 *
 	 * @param {number} index - The index into the buffer attribute.
 	 * @param {number} component - The component index.

+ 1 - 1
src/core/Raycaster.js

@@ -160,7 +160,7 @@ class Raycaster {
 	 * @property {number} distance - The distance from the ray's origin to the intersection point.
 	 * @property {number} distanceToRay -  Some 3D objects e.g. {@link Points} provide the distance of the
 	 * intersection to the nearest point on the ray. For other objects it will be `undefined`.
-	 * @property {Vector3} point - The intersesction point, in world coordinates.
+	 * @property {Vector3} point - The intersection point, in world coordinates.
 	 * @property {Object} face - The face that has been intersected.
 	 * @property {number} faceIndex - The face index.
 	 * @property {Object3D} object - The 3D object that has been intersected.

+ 1 - 1
src/lights/LightShadow.js

@@ -10,7 +10,7 @@ const _lookTarget = /*@__PURE__*/ new Vector3();
 
 /**
  * Abstract base class for light shadow classes. These classes
- * represent the shadow configuration for different ligth types.
+ * represent the shadow configuration for different light types.
  *
  * @abstract
  */

+ 1 - 1
src/lights/webgpu/IESSpotLight.js

@@ -22,7 +22,7 @@ class IESSpotLight extends SpotLight {
 		super( color, intensity, distance, angle, penumbra, decay );
 
 		/**
-		 * TOOD
+		 * TODO
 		 *
 		 * @type {?Texture}
 		 * @default null

+ 1 - 1
src/loaders/CubeTextureLoader.js

@@ -16,7 +16,7 @@ import { SRGBColorSpace } from '../constants.js';
  * a right-handed coordinate system, environment maps used in three.js will
  * have pos-x and neg-x swapped.
  *
- * The loaded cube textureis in sRGB color space. Meaning {@link Texture#colorSpace}
+ * The loaded cube texture is in sRGB color space. Meaning {@link Texture#colorSpace}
  * is set to `SRGBColorSpace` by default.
  *
  * ```js

+ 1 - 1
src/loaders/MaterialLoader.js

@@ -373,7 +373,7 @@ class MaterialLoader extends Loader {
 	}
 
 	/**
-	 * Textures are not embebbed in the material JSON so they have
+	 * Textures are not embedded in the material JSON so they have
 	 * to be injected before the loading process starts.
 	 *
 	 * @param {Object} value - A dictionary holding textures for material properties.

+ 1 - 1
src/materials/LineBasicMaterial.js

@@ -59,7 +59,7 @@ class LineBasicMaterial extends Material {
 		 * Controls line thickness or lines.
 		 *
 		 * Can only be used with {@link SVGRenderer}. WebGL and WebGPU
-		 * ignore this setting and always render line primitves with a
+		 * ignore this setting and always render line primitives with a
 		 * width of one pixel.
 		 *
 		 * @type {number}

+ 1 - 1
src/materials/ShaderMaterial.js

@@ -130,7 +130,7 @@ class ShaderMaterial extends Material {
 		/**
 		 * Controls line thickness or lines.
 		 *
-		 * WebGL and WebGPU ignore this setting and always render line primitves with a
+		 * WebGL and WebGPU ignore this setting and always render line primitives with a
 		 * width of one pixel.
 		 *
 		 * @type {number}

+ 2 - 2
src/objects/BatchedMesh.js

@@ -705,7 +705,7 @@ class BatchedMesh extends Mesh {
 	 * is not enough space reserved for geometry. Calling this will change all instances that are
 	 * rendering that geometry.
 	 *
-	 * @param {number} geometryId - The ID of the geomtry that should be replaced with the given geometry.
+	 * @param {number} geometryId - The ID of the geometry that should be replaced with the given geometry.
 	 * @param {BufferGeometry} geometry - The new geometry.
 	 * @return {number} The geometry ID.
 	 */
@@ -818,7 +818,7 @@ class BatchedMesh extends Mesh {
 	 * Deletes the geometry defined by the given ID from this batch. Any instances referencing
 	 * this geometry will also be removed as a side effect.
 	 *
-	 * @param {number} geometryId - The ID of the geomtry to remove from the batch.
+	 * @param {number} geometryId - The ID of the geometry to remove from the batch.
 	 * @return {BatchedMesh} A reference to this batched mesh.
 	 */
 	deleteGeometry( geometryId ) {

+ 1 - 1
src/objects/LOD.js

@@ -245,7 +245,7 @@ class LOD extends Object3D {
 	 * Updates the LOD by computing which LOD level should be visible according
 	 * to the current distance of the given camera.
 	 *
-	 * @param {Camera} camera - The camera the scene is renderd with.
+	 * @param {Camera} camera - The camera the scene is rendered with.
 	 */
 	update( camera ) {
 

+ 2 - 2
src/renderers/WebGLRenderer.js

@@ -1294,7 +1294,7 @@ class WebGLRenderer {
 		 *
 		 * Note that the (target) scene's lighting and environment must be configured before calling this method.
 		 *
-		 * @param {Object3D} scene - The scene or anohter type of 3D object to precompile.
+		 * @param {Object3D} scene - The scene or another type of 3D object to precompile.
 		 * @param {Camera} camera - The camera.
 		 * @param {?Scene} [targetScene=null] - The target scene.
 		 * @return {?Set} The precompiled materials.
@@ -1401,7 +1401,7 @@ class WebGLRenderer {
 		 * it is recommended to use this version of `compile()` whenever possible.
 		 *
 		 * @async
-		 * @param {Object3D} scene - The scene or anohter type of 3D object to precompile.
+		 * @param {Object3D} scene - The scene or another type of 3D object to precompile.
 		 * @param {Camera} camera - The camera.
 		 * @param {?Scene} [targetScene=null] - The target scene.
 		 * @return {Promise} A Promise that resolves when the given scene can be rendered without unnecessary stalling due to shader compilation.

+ 2 - 2
src/renderers/webxr/WebXRController.js

@@ -71,9 +71,9 @@ class WebXRController {
 	}
 
 	/**
-	 * Returns a group representing the traget ray space of the XR controller.
+	 * Returns a group representing the target ray space of the XR controller.
 	 *
-	 * @return {Group} A group representing the traget ray space of the XR controller.
+	 * @return {Group} A group representing the target ray space of the XR controller.
 	 */
 	getTargetRaySpace() {
 

+ 1 - 1
src/textures/CanvasTexture.js

@@ -4,7 +4,7 @@ import { Texture } from './Texture.js';
  * Creates a texture from a canvas element.
  *
  * This is almost the same as the base texture class, except that it sets {@link Texture#needsUpdate}
- * to `true` immediately since a canvas can direclty be used for rendering.
+ * to `true` immediately since a canvas can directly be used for rendering.
  *
  * @augments Texture
  */

粤ICP备19079148号