ソースを参照

Merge pull request #7531 from MaherJendoubi/misc-misspellings

Contributing: fix typos
David Catuhe 5 年 前
コミット
2350eca60d

+ 1 - 1
materialsLibrary/src/water/waterMaterial.ts

@@ -179,7 +179,7 @@ export class WaterMaterial extends PushMaterial {
     @serialize()
     @serialize()
     public waveSpeed: number = 1.0;
     public waveSpeed: number = 1.0;
     /**
     /**
-     * Sets or gets wether or not automatic clipping should be enabled or not. Setting to true will save performances and
+     * Sets or gets whether or not automatic clipping should be enabled or not. Setting to true will save performances and
      * will avoid calculating useless pixels in the pixel shader of the water material.
      * will avoid calculating useless pixels in the pixel shader of the water material.
      */
      */
     @serialize()
     @serialize()

+ 2 - 2
src/Cameras/Inputs/arcRotateCameraKeyboardMoveInput.ts

@@ -50,7 +50,7 @@ export class ArcRotateCameraKeyboardMoveInput implements ICameraInput<ArcRotateC
 
 
     /**
     /**
      * Defines the panning sensibility of the inputs.
      * Defines the panning sensibility of the inputs.
-     * (How fast is the camera paning)
+     * (How fast is the camera panning)
      */
      */
     @serialize()
     @serialize()
     public panningSensibility: number = 50.0;
     public panningSensibility: number = 50.0;
@@ -63,7 +63,7 @@ export class ArcRotateCameraKeyboardMoveInput implements ICameraInput<ArcRotateC
     public zoomingSensibility: number = 25.0;
     public zoomingSensibility: number = 25.0;
 
 
     /**
     /**
-     * Defines wether maintaining the alt key down switch the movement mode from
+     * Defines whether maintaining the alt key down switch the movement mode from
      * orientation to zoom.
      * orientation to zoom.
      */
      */
     @serialize()
     @serialize()

+ 1 - 1
src/Cameras/VR/vrExperienceHelper.ts

@@ -689,7 +689,7 @@ export class VRExperienceHelper {
     }
     }
 
 
     /**
     /**
-     * Defines wether or not Pointer lock should be requested when switching to
+     * Defines whether or not Pointer lock should be requested when switching to
      * full screen.
      * full screen.
      */
      */
     public requestPointerLockOnFullScreen = true;
     public requestPointerLockOnFullScreen = true;

+ 1 - 1
src/Cameras/arcRotateCamera.ts

@@ -946,7 +946,7 @@ export class ArcRotateCamera extends TargetCamera {
      * Defines the target the camera should look at.
      * Defines the target the camera should look at.
      * This will automatically adapt alpha beta and radius to fit within the new target.
      * This will automatically adapt alpha beta and radius to fit within the new target.
      * @param target Defines the new target as a Vector or a mesh
      * @param target Defines the new target as a Vector or a mesh
-     * @param toBoundingCenter In case of a mesh target, defines wether to target the mesh position or its bounding information center
+     * @param toBoundingCenter In case of a mesh target, defines whether to target the mesh position or its bounding information center
      * @param allowSamePosition If false, prevents reapplying the new computed position if it is identical to the current one (optim)
      * @param allowSamePosition If false, prevents reapplying the new computed position if it is identical to the current one (optim)
      */
      */
     public setTarget(target: AbstractMesh | Vector3, toBoundingCenter = false, allowSamePosition = false): void {
     public setTarget(target: AbstractMesh | Vector3, toBoundingCenter = false, allowSamePosition = false): void {

+ 2 - 2
src/Cameras/camera.ts

@@ -190,7 +190,7 @@ export class Camera extends Node {
     public mode = Camera.PERSPECTIVE_CAMERA;
     public mode = Camera.PERSPECTIVE_CAMERA;
 
 
     /**
     /**
-     * Define wether the camera is intermediate.
+     * Define whether the camera is intermediate.
      * This is useful to not present the output directly to the screen in case of rig without post process for instance
      * This is useful to not present the output directly to the screen in case of rig without post process for instance
      */
      */
     public isIntermediate = false;
     public isIntermediate = false;
@@ -411,7 +411,7 @@ export class Camera extends Node {
     }
     }
 
 
     /**
     /**
-     * Check wether a mesh is part of the current active mesh list of the camera
+     * Check whether a mesh is part of the current active mesh list of the camera
      * @param mesh Defines the mesh to check
      * @param mesh Defines the mesh to check
      * @returns true if active, false otherwise
      * @returns true if active, false otherwise
      */
      */

+ 3 - 3
src/Engines/thinEngine.ts

@@ -1826,10 +1826,10 @@ export class ThinEngine {
     }
     }
 
 
     /**
     /**
-     * Bind the content of a webGL buffer used with instanciation
+     * Bind the content of a webGL buffer used with instantiation
      * @param instancesBuffer defines the webGL buffer to bind
      * @param instancesBuffer defines the webGL buffer to bind
      * @param attributesInfo defines the offsets or attributes information used to determine where data must be stored in the buffer
      * @param attributesInfo defines the offsets or attributes information used to determine where data must be stored in the buffer
-     * @param computeStride defines Wether to compute the strides from the info or use the default 0
+     * @param computeStride defines Whether to compute the strides from the info or use the default 0
      */
      */
     public bindInstancesBuffer(instancesBuffer: DataBuffer, attributesInfo: InstancingAttributeInfo[], computeStride = true): void {
     public bindInstancesBuffer(instancesBuffer: DataBuffer, attributesInfo: InstancingAttributeInfo[], computeStride = true): void {
         this.bindArrayBuffer(instancesBuffer);
         this.bindArrayBuffer(instancesBuffer);
@@ -4220,7 +4220,7 @@ export class ThinEngine {
      * @param y defines the y coordinate of the rectangle where pixels must be read
      * @param y defines the y coordinate of the rectangle where pixels must be read
      * @param width defines the width of the rectangle where pixels must be read
      * @param width defines the width of the rectangle where pixels must be read
      * @param height defines the height of the rectangle where pixels must be read
      * @param height defines the height of the rectangle where pixels must be read
-     * @param hasAlpha defines wether the output should have alpha or not (defaults to true)
+     * @param hasAlpha defines whether the output should have alpha or not (defaults to true)
      * @returns a Uint8Array containing RGBA colors
      * @returns a Uint8Array containing RGBA colors
      */
      */
     public readPixels(x: number, y: number, width: number, height: number, hasAlpha = true): Uint8Array {
     public readPixels(x: number, y: number, width: number, height: number, hasAlpha = true): Uint8Array {

+ 3 - 3
src/Gamepads/Controllers/poseEnabledController.ts

@@ -82,15 +82,15 @@ export interface ExtendedGamepadButton extends GamepadButton {
 /** @hidden */
 /** @hidden */
 export interface _GamePadFactory {
 export interface _GamePadFactory {
     /**
     /**
-     * Returns wether or not the current gamepad can be created for this type of controller.
-     * @param gamepadInfo Defines the gamepad info as receveid from the controller APIs.
+     * Returns whether or not the current gamepad can be created for this type of controller.
+     * @param gamepadInfo Defines the gamepad info as received from the controller APIs.
      * @returns true if it can be created, otherwise false
      * @returns true if it can be created, otherwise false
      */
      */
     canCreate(gamepadInfo: any): boolean;
     canCreate(gamepadInfo: any): boolean;
 
 
     /**
     /**
      * Creates a new instance of the Gamepad.
      * Creates a new instance of the Gamepad.
-     * @param gamepadInfo Defines the gamepad info as receveid from the controller APIs.
+     * @param gamepadInfo Defines the gamepad info as received from the controller APIs.
      * @returns the new gamepad instance
      * @returns the new gamepad instance
      */
      */
     create(gamepadInfo: any): Gamepad;
     create(gamepadInfo: any): Gamepad;

+ 3 - 3
src/Helpers/environmentHelper.ts

@@ -26,7 +26,7 @@ import { Plane } from '../Maths/math.plane';
  */
  */
 export interface IEnvironmentHelperOptions {
 export interface IEnvironmentHelperOptions {
     /**
     /**
-     * Specifies wether or not to create a ground.
+     * Specifies whether or not to create a ground.
      * True by default.
      * True by default.
      */
      */
     createGround: boolean;
     createGround: boolean;
@@ -107,7 +107,7 @@ export interface IEnvironmentHelperOptions {
     groundYBias: number;
     groundYBias: number;
 
 
     /**
     /**
-     * Specifies wether or not to create a skybox.
+     * Specifies whether or not to create a skybox.
      * True by default.
      * True by default.
      */
      */
     createSkybox: boolean;
     createSkybox: boolean;
@@ -173,7 +173,7 @@ export interface IEnvironmentHelperOptions {
     cameraContrast: number;
     cameraContrast: number;
 
 
     /**
     /**
-     * Specifies wether or not tonemapping should be enabled in the scene.
+     * Specifies whether or not tonemapping should be enabled in the scene.
      * true by default if setupImageProcessing is true.
      * true by default if setupImageProcessing is true.
      */
      */
     toneMappingEnabled: boolean;
     toneMappingEnabled: boolean;

+ 5 - 5
src/Layers/effectLayer.ts

@@ -101,7 +101,7 @@ export abstract class EffectLayer {
     public neutralColor: Color4 = new Color4();
     public neutralColor: Color4 = new Color4();
 
 
     /**
     /**
-     * Specifies wether the highlight layer is enabled or not.
+     * Specifies whether the highlight layer is enabled or not.
      */
      */
     @serialize()
     @serialize()
     public isEnabled: boolean = true;
     public isEnabled: boolean = true;
@@ -197,13 +197,13 @@ export abstract class EffectLayer {
     /**
     /**
      * Checks for the readiness of the element composing the layer.
      * Checks for the readiness of the element composing the layer.
      * @param subMesh the mesh to check for
      * @param subMesh the mesh to check for
-     * @param useInstances specify wether or not to use instances to render the mesh
+     * @param useInstances specify whether or not to use instances to render the mesh
      * @return true if ready otherwise, false
      * @return true if ready otherwise, false
      */
      */
     public abstract isReady(subMesh: SubMesh, useInstances: boolean): boolean;
     public abstract isReady(subMesh: SubMesh, useInstances: boolean): boolean;
 
 
     /**
     /**
-     * Returns wether or nood the layer needs stencil enabled during the mesh rendering.
+     * Returns whether or nood the layer needs stencil enabled during the mesh rendering.
      * @returns true if the effect requires stencil during the main canvas render pass.
      * @returns true if the effect requires stencil during the main canvas render pass.
      */
      */
     public abstract needStencil(): boolean;
     public abstract needStencil(): boolean;
@@ -388,7 +388,7 @@ export abstract class EffectLayer {
     /**
     /**
      * Checks for the readiness of the element composing the layer.
      * Checks for the readiness of the element composing the layer.
      * @param subMesh the mesh to check for
      * @param subMesh the mesh to check for
-     * @param useInstances specify wether or not to use instances to render the mesh
+     * @param useInstances specify whether or not to use instances to render the mesh
      * @param emissiveTexture the associated emissive texture used to generate the glow
      * @param emissiveTexture the associated emissive texture used to generate the glow
      * @return true if ready otherwise, false
      * @return true if ready otherwise, false
      */
      */
@@ -772,7 +772,7 @@ export abstract class EffectLayer {
     }
     }
 
 
     /**
     /**
-     * Defines wether the current material of the mesh should be use to render the effect.
+     * Defines whether the current material of the mesh should be use to render the effect.
      * @param mesh defines the current mesh to render
      * @param mesh defines the current mesh to render
      */
      */
     protected _useMeshMaterial(mesh: AbstractMesh): boolean {
     protected _useMeshMaterial(mesh: AbstractMesh): boolean {

+ 2 - 2
src/Layers/glowLayer.ts

@@ -350,7 +350,7 @@ export class GlowLayer extends EffectLayer {
     }
     }
 
 
     /**
     /**
-     * Returns wether or nood the layer needs stencil enabled during the mesh rendering.
+     * Returns whether or nood the layer needs stencil enabled during the mesh rendering.
      */
      */
     public needStencil(): boolean {
     public needStencil(): boolean {
         return false;
         return false;
@@ -512,7 +512,7 @@ export class GlowLayer extends EffectLayer {
     }
     }
 
 
     /**
     /**
-     * Defines wether the current material of the mesh should be use to render the effect.
+     * Defines whether the current material of the mesh should be use to render the effect.
      * @param mesh defines the current mesh to render
      * @param mesh defines the current mesh to render
      */
      */
     protected _useMeshMaterial(mesh: AbstractMesh): boolean {
     protected _useMeshMaterial(mesh: AbstractMesh): boolean {

+ 1 - 1
src/scene.ts

@@ -355,7 +355,7 @@ export class Scene extends AbstractScene implements IAnimatable {
      */
      */
     public defaultCursor: string = "";
     public defaultCursor: string = "";
     /**
     /**
-     * Defines wether cursors are handled by the scene.
+     * Defines whether cursors are handled by the scene.
      */
      */
     public doNotHandleCursors = false;
     public doNotHandleCursors = false;
     /**
     /**