Просмотр исходного кода

Typos (#30510)

Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
Samuel Rigaud 1 год назад
Родитель
Сommit
c48f842f5d

+ 10 - 10
docs/api/en/textures/VideoFrameTexture.html

@@ -13,8 +13,8 @@
 
 
 		<p class="desc">
 		<p class="desc">
 			This class can be used as an alternative way to define video data. Instead of using
 			This class can be used as an alternative way to define video data. Instead of using
-			an instance of `HTMLVideoElement` like with `VideoTexture`, [name] expects each frame is 
-			defined manaully via [page:.setFrame setFrame](). A typical use case for this module is when
+			an instance of `HTMLVideoElement` like with `VideoTexture`, [name] expects each frame is
+			defined manually via [page:.setFrame setFrame](). A typical use case for this module is when
 			video frames are decoded with the WebCodecs API.
 			video frames are decoded with the WebCodecs API.
 		</p>
 		</p>
 
 
@@ -33,30 +33,30 @@
 
 
 		<h2>Constructor</h2>
 		<h2>Constructor</h2>
 		<h3>
 		<h3>
-			[name]( [param:Constant mapping], [param:Constant wrapS], 
-			[param:Constant wrapT], [param:Constant magFilter], [param:Constant minFilter], 
+			[name]( [param:Constant mapping], [param:Constant wrapS],
+			[param:Constant wrapT], [param:Constant magFilter], [param:Constant minFilter],
 			[param:Constant format], [param:Constant type], [param:Number anisotropy] )
 			[param:Constant format], [param:Constant type], [param:Number anisotropy] )
 		</h3>
 		</h3>
 		<p>
 		<p>
 			[page:Constant mapping] -- How the image is applied to the object. An
 			[page:Constant mapping] -- How the image is applied to the object. An
-			object type of [page:Textures THREE.UVMapping]. 
+			object type of [page:Textures THREE.UVMapping].
 			See [page:Textures mapping constants] for other choices.<br />
 			See [page:Textures mapping constants] for other choices.<br />
 
 
-			[page:Constant wrapS] -- The default is [page:Textures THREE.ClampToEdgeWrapping]. 
+			[page:Constant wrapS] -- The default is [page:Textures THREE.ClampToEdgeWrapping].
 			See [page:Textures wrap mode constants] for
 			See [page:Textures wrap mode constants] for
 			other choices.<br />
 			other choices.<br />
 
 
-			[page:Constant wrapT] -- The default is [page:Textures THREE.ClampToEdgeWrapping]. 
+			[page:Constant wrapT] -- The default is [page:Textures THREE.ClampToEdgeWrapping].
 			See [page:Textures wrap mode constants] for
 			See [page:Textures wrap mode constants] for
 			other choices.<br />
 			other choices.<br />
 
 
 			[page:Constant magFilter] -- How the texture is sampled when a texel
 			[page:Constant magFilter] -- How the texture is sampled when a texel
-			covers more than one pixel. The default is [page:Textures THREE.LinearFilter]. 
+			covers more than one pixel. The default is [page:Textures THREE.LinearFilter].
 			See [page:Textures magnification filter constants]
 			See [page:Textures magnification filter constants]
 			for other choices.<br />
 			for other choices.<br />
 
 
 			[page:Constant minFilter] -- How the texture is sampled when a texel
 			[page:Constant minFilter] -- How the texture is sampled when a texel
-			covers less than one pixel. The default is [page:Textures THREE.LinearFilter]. 
+			covers less than one pixel. The default is [page:Textures THREE.LinearFilter].
 			See [page:Textures minification filter constants] for
 			See [page:Textures minification filter constants] for
 			other choices.<br />
 			other choices.<br />
 
 
@@ -88,7 +88,7 @@
 
 
 		<h3>[method:undefined setFrame]( [param:VideoFrame frame] )</h3>
 		<h3>[method:undefined setFrame]( [param:VideoFrame frame] )</h3>
 		<p>
 		<p>
-			Sets the current frame of the video. This will automatically update the texture 
+			Sets the current frame of the video. This will automatically update the texture
 			so the data can be used for rendering.
 			so the data can be used for rendering.
 		</p>
 		</p>
 
 

+ 3 - 3
docs/manual/en/introduction/Installation.html

@@ -91,10 +91,10 @@ npm install --save-dev vite
 						</p>
 						</p>
 					</details>
 					</details>
 					<details>
 					<details>
-						<summary>Improve your editor auto-completion with <i>jsconfig</i> or <i>tscondig</i></summary>
+						<summary>Improve your editor auto-completion with <i>jsconfig</i> or <i>tsconfig</i></summary>
 						<p>
 						<p>
-							Place a <i>jsconfig.json</i> (or <i>tsconfig.json</i> for TypeScript projects) in your project's root. Adding the configuration below helps your editor locate three.js files for enhanced auto-completion. 
-						</p>						
+							Place a <i>jsconfig.json</i> (or <i>tsconfig.json</i> for TypeScript projects) in your project's root. Adding the configuration below helps your editor locate three.js files for enhanced auto-completion.
+						</p>
 						<code>
 						<code>
 							{
 							{
 								"compilerOptions": {
 								"compilerOptions": {

+ 3 - 3
examples/webgpu_struct_drawindirect.html

@@ -130,7 +130,7 @@
 				}, 'DrawBuffer' );
 				}, 'DrawBuffer' );
 
 
 				const writeDrawBuffer = wgslFn( `
 				const writeDrawBuffer = wgslFn( `
-					fn compute(            
+					fn compute(
 						index: u32,
 						index: u32,
 						drawBuffer: ptr<storage, DrawBuffer, read_write>,
 						drawBuffer: ptr<storage, DrawBuffer, read_write>,
 						instances: f32,
 						instances: f32,
@@ -148,10 +148,10 @@
 					instances: instances,
 					instances: instances,
 					index: instanceIndex,
 					index: instanceIndex,
 					time: time
 					time: time
-				} ).compute( instances ); // not neccessary in this case but normally one wants to run through all instances
+				} ).compute( instances ); // not necessary in this case but normally one wants to run through all instances
 
 
 				const initDrawBuffer = wgslFn( `
 				const initDrawBuffer = wgslFn( `
-					fn compute(            
+					fn compute(
 						drawBuffer: ptr< storage, DrawBuffer, read_write >,
 						drawBuffer: ptr< storage, DrawBuffer, read_write >,
 					) -> void {
 					) -> void {
 
 

+ 1 - 1
src/nodes/core/Node.js

@@ -423,7 +423,7 @@ class Node extends EventDispatcher {
 	 * @param {string} name - The name of the member.
 	 * @param {string} name - The name of the member.
 	 * @return {string} The type of the node.
 	 * @return {string} The type of the node.
 	 */
 	 */
-	getMemberType( /*uilder, name*/ ) {
+	getMemberType( /*builder, name*/ ) {
 
 
 		return 'void';
 		return 'void';
 
 

+ 1 - 1
src/nodes/display/BlendModes.js

@@ -107,7 +107,7 @@ export const blendOverlay = /*@__PURE__*/ Fn( ( [ base, blend ] ) => {
 
 
 /**
 /**
  * This function blends two color based on their alpha values by replicating the behavior of `THREE.NormalBlending`.
  * This function blends two color based on their alpha values by replicating the behavior of `THREE.NormalBlending`.
- * It assumes both input colors have non-preumiltiplied alpha.
+ * It assumes both input colors have non-premultiplied alpha.
  *
  *
  * @tsl
  * @tsl
  * @function
  * @function

+ 2 - 2
src/renderers/common/XRManager.js

@@ -208,7 +208,7 @@ class XRManager extends EventDispatcher {
 
 
 		/**
 		/**
 		 * The animation loop which is used as a replacement for the default
 		 * The animation loop which is used as a replacement for the default
-		 * animation loop of the applicatio. It is only used when a XR session
+		 * animation loop of the application. It is only used when a XR session
 		 * is active.
 		 * is active.
 		 *
 		 *
 		 * @private
 		 * @private
@@ -869,7 +869,7 @@ function updateCamera( camera, parent ) {
 }
 }
 
 
 /**
 /**
- * Updates the given camera with the transfomration of the XR camera and parent object.
+ * Updates the given camera with the transformation of the XR camera and parent object.
  *
  *
  * @inner
  * @inner
  * @param {Camera} camera - The camera to update.
  * @param {Camera} camera - The camera to update.

+ 5 - 5
src/renderers/webgl-fallback/WebGLBackend.js

@@ -194,7 +194,7 @@ class WebGLBackend extends Backend {
 		 * @type {WebGLFramebuffer}
 		 * @type {WebGLFramebuffer}
 		 * @default null
 		 * @default null
 		 */
 		 */
-		this._xrFamebuffer = null;
+		this._xrFramebuffer = null;
 
 
 	}
 	}
 
 
@@ -322,11 +322,11 @@ class WebGLBackend extends Backend {
 	/**
 	/**
 	 * Sets the XR rendering destination.
 	 * Sets the XR rendering destination.
 	 *
 	 *
-	 * @param {WebGLFramebuffer} xrFamebuffer - The XR framebuffer.
+	 * @param {WebGLFramebuffer} xrFramebuffer - The XR framebuffer.
 	 */
 	 */
-	setXRTarget( xrFamebuffer ) {
+	setXRTarget( xrFramebuffer ) {
 
 
-		this._xrFamebuffer = xrFamebuffer;
+		this._xrFramebuffer = xrFramebuffer;
 
 
 	}
 	}
 
 
@@ -1924,7 +1924,7 @@ class WebGLBackend extends Backend {
 
 
 			} else if ( isXRRenderTarget && hasExternalTextures === false ) {
 			} else if ( isXRRenderTarget && hasExternalTextures === false ) {
 
 
-				fb = this._xrFamebuffer;
+				fb = this._xrFramebuffer;
 
 
 			} else {
 			} else {
 
 

粤ICP备19079148号