Skip to content

Commit 92eae7d

Browse files
authored
Docs: fix typos (#30776)
* Docs: fix typos * Docs: fix typo * revert changes * revert change
1 parent 51856a6 commit 92eae7d

File tree

19 files changed

+32
-32
lines changed

19 files changed

+32
-32
lines changed

docs/api/en/audio/AudioAnalyser.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<h1>[name]</h1>
1111

1212
<p class="desc">
13-
Create a AudioAnalyser object, which uses an
13+
Create an AudioAnalyser object, which uses an
1414
[link:https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode AnalyserNode] to analyse audio data.<br /><br />
1515

1616
This uses the

docs/api/it/core/BufferAttribute.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h3>[name]( [param:TypedArray array], [param:Integer itemSize], [param:Boolean n
2828
dove numVertices è il numero di vertici della [page:BufferGeometry BufferGeometry] associata.<br /><br />
2929

3030
[page:Integer itemSize] -- il numero di valori dell'array che deve essere associato ad un particolare vertice.
31-
Per esempio, se questo atttibuto memorizza un vettore a 3 componenti (come posizione, normale o colore),
31+
Per esempio, se questo attributo memorizza un vettore a 3 componenti (come posizione, normale o colore),
3232
itemSize dovrebbe essere 3.<br /><br />
3333

3434
[page:Boolean normalized] -- (opzionale) Si applica solo ai dati interi. Indica il modo in cui i dati sottostanti

docs/api/it/core/InterleavedBuffer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h3>[method:this copyAt]( [param:Integer index1], [param:InterleavedBuffer attri
8585
<h3>[method:this set]( [param:TypedArray value], [param:Integer offset] ) </h3>
8686
<p>
8787
value - L'array (tipizzato) di origine.<br/>
88-
offset - L'offset nell'array di destinazione in corrrispondenza del quale iniziare a scrivere i valori dall'array di origine. L'impostazione predefinita è `0`.<br/><br />
88+
offset - L'offset nell'array di destinazione in corrispondenza del quale iniziare a scrivere i valori dall'array di origine. L'impostazione predefinita è `0`.<br/><br />
8989

9090
Memorizza più valori nel buffer, leggendo valori di input dall'array specificato.
9191
</p>

editor/js/libs/tern-threejs/threejs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3557,7 +3557,7 @@
35573557
},
35583558
"clampPoint": {
35593559
"!type": "fn(point: +THREE.Vector3, optionalTarget: +THREE.Vector3) -> +THREE.Vector3",
3560-
"!doc": "Clamps a point within the sphere. If the point is is outside the sphere, it will clamp it to the closets point on the edge of the sphere."
3560+
"!doc": "Clamps a point within the sphere. If the point is outside the sphere, it will clamp it to the closets point on the edge of the sphere."
35613561
},
35623562
"translate": {
35633563
"!type": "fn(offset: +THREE.Vector3) -> +THREE.Sphere",

examples/jsm/effects/AsciiEffect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* A class that creates a ASCII effect.
2+
* A class that creates an ASCII effect.
33
*
44
* The ASCII generation is based on [jsascii]{@link https://github.com/hassadee/jsascii/blob/master/jsascii.js}.
55
*/

examples/jsm/loaders/BVHLoader.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,11 @@ class BVHLoader extends Loader {
384384
}
385385

386386
/*
387-
builds a AnimationClip from the keyframe data saved in each bone.
387+
builds an AnimationClip from the keyframe data saved in each bone.
388388
389389
bone: bvh root node
390390
391-
returns: a AnimationClip containing position and quaternion tracks
391+
returns: an AnimationClip containing position and quaternion tracks
392392
*/
393393
function toTHREEAnimation( bones ) {
394394

examples/jsm/loaders/FBXLoader.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ class FBXTreeParser {
10391039
skeleton.bones[ i ] = bone;
10401040

10411041
// In cases where a bone is shared between multiple meshes
1042-
// duplicate the bone here and and it as a child of the first bone
1042+
// duplicate the bone here and add it as a child of the first bone
10431043
if ( subBone !== null ) {
10441044

10451045
bone.add( subBone );
@@ -2763,7 +2763,7 @@ class AnimationParser {
27632763
}
27642764

27652765
// parse nodes in FBXTree.Objects.AnimationStack. These are the top level node in the animation
2766-
// hierarchy. Each Stack node will be used to create a AnimationClip
2766+
// hierarchy. Each Stack node will be used to create an AnimationClip
27672767
parseAnimStacks( layersMap ) {
27682768

27692769
const rawStacks = fbxTree.Objects.AnimationStack;

examples/models/ldraw/officialLibrary/Readme.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ LDraw Readme File
33
Welcome to LDraw
44

55
This short readme file explains what files and subdirectories are present in
6-
your LDraw installation, described the LDraw library structure and and has links
6+
your LDraw installation, described the LDraw library structure and has links
77
to some sites on the internet where you can find help and further information.
88

99
* LDraw program directory contents
@@ -35,18 +35,18 @@ to some sites on the internet where you can find help and further information.
3535
There are two sample model .dat files installed for you
3636
to look at - Car.dat and Pyramid.dat.
3737
\P\ - This directory is where parts primitives are located.
38-
Parts primitives are tyically highly reusable components
38+
Parts primitives are typically highly reusable components
3939
used by the part files in the LDraw library.
4040
\P\48\ - This directory is where high resolution parts primitives
4141
are located. These are typically used for large curved
4242
parts where excessive scaling of the regular curved
43-
primitives would produce an undesriable result.
43+
primitives would produce an undesirable result.
4444
\PARTS\ - This directory holds all the actual parts that can be used
4545
in creating or rendering your models. A list of these
4646
parts can be seen by viewing the parts.lst file.
4747
\PARTS\S\ - This directory holds sub-parts that are used by the LDraw
4848
parts to optimise file size and improve parts development
49-
efficiancy.
49+
efficiency.
5050

5151
--------------------------------------------------------------------------------
5252
* LDraw library structure:
@@ -57,7 +57,7 @@ to some sites on the internet where you can find help and further information.
5757
authors have agreed to the Contributor Agreement, allowing
5858
their work to be re-distributed. Full details of this
5959
agreement can be found in the CAreadme.txt and
60-
CAlicense.txt files in the same diectory as this file.
60+
CAlicense.txt files in the same directory as this file.
6161
This download is restricted to generic colour versions of
6262
each part and does not contain duplicate copies of part
6363
files where different numbers have been used for the same

manual/en/debugging-javascript.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h2 id="learn-your-browser-s-developer-tools">Learn your Browser's Developer Too
4242
<a href="https://developer.mozilla.org/en-US/docs/Tools">Firefox</a>,
4343
<a href="https://developer.apple.com/safari/tools/">Safari</a>,
4444
<a href="https://docs.microsoft.com/en-us/microsoft-edge/devtools-guide">Edge</a>.</p>
45-
<p>In Chrome you can click the the <code class="notranslate" translate="no"></code> icon, pick More Tools-&gt;Developer Tools
45+
<p>In Chrome you can click the <code class="notranslate" translate="no"></code> icon, pick More Tools-&gt;Developer Tools
4646
to get to the developer tools. A keyboard shortcut is also shown there.</p>
4747
<div class="threejs_center"><img class="border" src="../resources/images/devtools-chrome.jpg" style="width: 789px;"></div>
4848

manual/en/load-obj.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ <h1>Loading a .OBJ File</h1>
327327
<div class="threejs_center"><img style="width: 600px;" src="../resources/images/camera-fit-scene.svg"></div>
328328

329329
<p>You can see on the left is the camera and the blue frustum is projecting out in
330-
front of it. We just computed the box that contains the the windmill. We need to
330+
front of it. We just computed the box that contains the windmill. We need to
331331
compute how far way the camera should be from the box so that the box appears
332332
inside the frustum.</p>
333333
<p>Using basic <em>right triangle</em> trigonometry and <a href="https://www.google.com/search?q=SOHCAHTOA">SOHCAHTOA</a>,

manual/en/multiple-scenes.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ <h2 id="syncing-up">Syncing up</h2>
223223
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const scene = new THREE.Scene();
224224
+scene.background = new THREE.Color('red');
225225
</pre>
226-
<p>And if we <a href="../examples/multiple-scenes-v2.html" target="_blank">quickly scroll up and down</a> we'll see the issue. Here's a animation of scrolling slowed down by 10x.</p>
226+
<p>And if we <a href="../examples/multiple-scenes-v2.html" target="_blank">quickly scroll up and down</a> we'll see the issue. Here's an animation of scrolling slowed down by 10x.</p>
227227
<div class="threejs_center"><img class="border" src="../resources/images/multi-view-skew.gif"></div>
228228

229229
<p>We can switch to a different method which has a different tradeoff. We'll switch the canvas's CSS from <code class="notranslate" translate="no">position: fixed</code> to <code class="notranslate" translate="no">position: absolute</code>. </p>

manual/en/webxr-point-to-select.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>VR - 3DOF Point to Select</h1>
5656
<p>As for the actual implementation of <code class="notranslate" translate="no">ControllerPickHelper</code>, first we need
5757
to add the VR controller objects to the scene and to those add some 3D lines
5858
we can use to display where the user is pointing. We save off both the controllers
59-
and the their lines.</p>
59+
and their lines.</p>
6060
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">class ControllerPickHelper {
6161
constructor(scene) {
6262
const pointerGeometry = new THREE.BufferGeometry().setFromPoints([

manual/examples/resources/webgl-debug-helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@
625625

626626
}
627627

628-
// Make a an object that has a copy of every property of the WebGL context
628+
// Make an object that has a copy of every property of the WebGL context
629629
// but wraps all functions.
630630
for ( const propertyName in ctx ) {
631631

src/nodes/core/InputNode.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class InputNode extends Node {
1717
/**
1818
* Constructs a new input node.
1919
*
20-
* @param {any} value - The value of this node. This can be a any JS primitive, functions, array buffers or even three.js objects (vector, matrices, colors).
20+
* @param {any} value - The value of this node. This can be any JS primitive, functions, array buffers or even three.js objects (vector, matrices, colors).
2121
* @param {?string} nodeType - The node type. If no explicit type is defined, the node tries to derive the type from its value.
2222
*/
2323
constructor( value, nodeType = null ) {
@@ -34,7 +34,7 @@ class InputNode extends Node {
3434
this.isInputNode = true;
3535

3636
/**
37-
* The value of this node. This can be a any JS primitive, functions, array buffers or even three.js objects (vector, matrices, colors).
37+
* The value of this node. This can be any JS primitive, functions, array buffers or even three.js objects (vector, matrices, colors).
3838
*
3939
* @type {any}
4040
*/

src/nodes/math/MathNode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ export const saturate = ( value ) => clamp( value );
936936
* @function
937937
* @param {Node<vec2|vec3|vec4>} I - The incident vector.
938938
* @param {Node<vec2|vec3|vec4>} N - The normal vector.
939-
* @param {Node<float>} eta - The the ratio of indices of refraction.
939+
* @param {Node<float>} eta - The ratio of indices of refraction.
940940
* @returns {Node<vec2|vec3|vec4>}
941941
*/
942942
export const refract = /*@__PURE__*/ nodeProxy( MathNode, MathNode.REFRACT );

src/objects/BatchedMesh.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ class BatchedMesh extends Mesh {
446446
/**
447447
* Validates the instance defined by the given ID.
448448
*
449-
* @param {number} instanceId - The the instance to validate.
449+
* @param {number} instanceId - The instance to validate.
450450
*/
451451
validateInstanceId( instanceId ) {
452452

@@ -462,7 +462,7 @@ class BatchedMesh extends Mesh {
462462
/**
463463
* Validates the geometry defined by the given ID.
464464
*
465-
* @param {number} geometryId - The the geometry to validate.
465+
* @param {number} geometryId - The geometry to validate.
466466
*/
467467
validateGeometryId( geometryId ) {
468468

src/objects/InstancedMesh.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class InstancedMesh extends Mesh {
321321
* {@link InstancedMesh#instanceMatrix} to `true` after updating all the colors.
322322
*
323323
* @param {number} index - The instance index.
324-
* @param {Matrix4} matrix - The the local transformation.
324+
* @param {Matrix4} matrix - The local transformation.
325325
*/
326326
setMatrixAt( index, matrix ) {
327327

src/renderers/webgpu/nodes/WGSLNodeBuilder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class WGSLNodeBuilder extends NodeBuilder {
403403

404404
/**
405405
* Generates a WGSL variable that holds the texture dimension of the given texture.
406-
* It also returns information about the the number of layers (elements) of an arrayed
406+
* It also returns information about the number of layers (elements) of an arrayed
407407
* texture as well as the cube face count of cube textures.
408408
*
409409
* @param {Texture} texture - The texture to generate the function for.

test/unit/src/core/BufferGeometry.tests.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -528,25 +528,25 @@ export default QUnit.module( 'Core', () => {
528528
let normals = getNormalsForVertices( [ - 1, 0, 0, 1, 0, 0, 0, 1, 0 ], assert );
529529

530530
assert.ok( normals[ 0 ] === 0 && normals[ 1 ] === 0 && normals[ 2 ] === 1,
531-
'first normal is pointing to screen since the the triangle was created counter clockwise' );
531+
'first normal is pointing to screen since the triangle was created counter clockwise' );
532532

533533
assert.ok( normals[ 3 ] === 0 && normals[ 4 ] === 0 && normals[ 5 ] === 1,
534-
'second normal is pointing to screen since the the triangle was created counter clockwise' );
534+
'second normal is pointing to screen since the triangle was created counter clockwise' );
535535

536536
assert.ok( normals[ 6 ] === 0 && normals[ 7 ] === 0 && normals[ 8 ] === 1,
537-
'third normal is pointing to screen since the the triangle was created counter clockwise' );
537+
'third normal is pointing to screen since the triangle was created counter clockwise' );
538538

539539
// get normals for a clockwise created triangle
540540
normals = getNormalsForVertices( [ 1, 0, 0, - 1, 0, 0, 0, 1, 0 ], assert );
541541

542542
assert.ok( normals[ 0 ] === 0 && normals[ 1 ] === 0 && normals[ 2 ] === - 1,
543-
'first normal is pointing to screen since the the triangle was created clockwise' );
543+
'first normal is pointing to screen since the triangle was created clockwise' );
544544

545545
assert.ok( normals[ 3 ] === 0 && normals[ 4 ] === 0 && normals[ 5 ] === - 1,
546-
'second normal is pointing to screen since the the triangle was created clockwise' );
546+
'second normal is pointing to screen since the triangle was created clockwise' );
547547

548548
assert.ok( normals[ 6 ] === 0 && normals[ 7 ] === 0 && normals[ 8 ] === - 1,
549-
'third normal is pointing to screen since the the triangle was created clockwise' );
549+
'third normal is pointing to screen since the triangle was created clockwise' );
550550

551551
normals = getNormalsForVertices( [ 0, 0, 1, 0, 0, - 1, 1, 1, 0 ], assert );
552552

0 commit comments

Comments
 (0)