Skip to content

Commit e62e800

Browse files
authored
Fix typos and spelling (#5462)
Co-authored-by: Noeri Huisman <mrxz@users.noreply.github.com>
1 parent 3c628ac commit e62e800

40 files changed

+68
-68
lines changed

‎examples/mixed-reality/watch/hand-menu-button.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ AFRAME.registerComponent('hand-menu-button', {
9696
});
9797

9898
/*
99-
User's hand can collide with multiple buttons simulatenously but only want one in a hovered state.
99+
User's hand can collide with multiple buttons simultaneously but only want one in a hovered state.
100100
This system keeps track of all the collided buttons, keeping just the closest to the hand in a hovered state.
101101
*/
102102
AFRAME.registerSystem('hand-menu-button', {

‎examples/mixed-reality/watch/hand-menu.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ AFRAME.registerComponent('hand-menu', {
182182
},
183183

184184
onPinchStarted: (function () {
185-
var auxMaxtrix = new THREE.Matrix4();
185+
var auxMatrix = new THREE.Matrix4();
186186
var auxQuaternion = new THREE.Quaternion();
187187
return function (evt) {
188188
if (!this.handHoveringEl || this.opened) { return; }
@@ -191,7 +191,7 @@ AFRAME.registerComponent('hand-menu', {
191191
this.menuEl.emit('open');
192192
function lookAtVector (sourcePoint, destPoint) {
193193
return auxQuaternion.setFromRotationMatrix(
194-
auxMaxtrix.identity()
194+
auxMatrix.identity()
195195
.lookAt(sourcePoint, destPoint, new THREE.Vector3(0, 1, 0)));
196196
}
197197

‎examples/showcase/model-viewer/model-viewer.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ AFRAME.registerComponent('model-viewer', {
203203
var arShadowEl = this.arShadowEl = document.createElement('a-entity');
204204
// The title / legend displayed above the model.
205205
var titleEl = this.titleEl = document.createElement('a-entity');
206-
// Scene ligthing.
206+
// Scene lighting.
207207
var lightEl = this.lightEl = document.createElement('a-entity');
208208
var sceneLightEl = this.sceneLightEl = document.createElement('a-entity');
209209

‎src/components/animation.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ module.exports.Component = registerComponent('animation', {
323323
value = anim.animatables[0].target.aframeProperty;
324324

325325
// Need to do a last value check for animation timeline since all the tweening
326-
// begins simultaenously even if the value has not changed. Also better for perf
327-
// anyways.
326+
// begins simultaneously even if the value has not changed. Also better for perf
327+
// anyway.
328328
if (value === lastValue) { return; }
329329
lastValue = value;
330330

‎src/components/cursor.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ module.exports.Component = registerComponent('cursor', {
459459
// Clear fuseTimeout.
460460
clearTimeout(this.fuseTimeout);
461461

462-
// Set intersection to another raycasted element if any.
462+
// Set intersection to another raycast element if any.
463463
if (ignoreRemaining === true) { return; }
464464
intersections = this.el.components.raycaster.intersections;
465465
if (intersections.length === 0) { return; }

‎src/components/hand-tracking-grab-controls.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ registerComponent('hand-tracking-grab-controls', {
119119

120120
grab: function () {
121121
var grabbedEl = this.grabbedEl;
122-
var grabedObjectWorldPosition;
122+
var grabbedObjectWorldPosition;
123123

124-
grabedObjectWorldPosition = grabbedEl.object3D.getWorldPosition(this.grabbedObjectPosition);
124+
grabbedObjectWorldPosition = grabbedEl.object3D.getWorldPosition(this.grabbedObjectPosition);
125125

126-
this.grabDeltaPosition.copy(grabedObjectWorldPosition).sub(this.pinchPosition);
126+
this.grabDeltaPosition.copy(grabbedObjectWorldPosition).sub(this.pinchPosition);
127127
this.grabInitialRotation.copy(this.auxQuaternion.copy(this.wristRotation).invert());
128128

129129
this.originalUpdateMatrixWorld = grabbedEl.object3D.updateMatrixWorld;
@@ -159,8 +159,8 @@ registerComponent('hand-tracking-grab-controls', {
159159
// Both grabbing and grabbed entities position and rotation.
160160

161161
// 1. Move grabbed entity to the pinch position (middle point between index and thumb)
162-
// 2. Apply the rotation delta (substract initial rotation) of the grabbing entity position (wrist).
163-
// 3. Translate grabbed entity to the original position: distance betweeen grabbed and grabbing entities at collision time.
162+
// 2. Apply the rotation delta (subtract initial rotation) of the grabbing entity position (wrist).
163+
// 3. Translate grabbed entity to the original position: distance between grabbed and grabbing entities at collision time.
164164
// 4. Apply grabbed entity rotation.
165165
// 5. Preserve original scale.
166166

‎src/components/hp-mixed-reality-controls.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var onButtonEvent = trackedControlsUtils.onButtonEvent;
1111
// TODO: Add a more robust system for deriving gamepad name.
1212
var GAMEPAD_ID = 'hp-mixed-reality';
1313
var AFRAME_CDN_ROOT = require('../constants').AFRAME_CDN_ROOT;
14-
var HP_MIXEDL_REALITY_MODEL_GLB_BASE_URL = AFRAME_CDN_ROOT + 'controllers/hp/mixed-reality/';
14+
var HP_MIXED_REALITY_MODEL_GLB_BASE_URL = AFRAME_CDN_ROOT + 'controllers/hp/mixed-reality/';
1515

1616
var HP_MIXED_REALITY_POSITION_OFFSET = {x: 0, y: 0, z: 0.06};
1717
var HP_MIXED_REALITY_ROTATION_OFFSET = {_x: Math.PI / 4, _y: 0, _z: 0, _order: 'XYZ'};
@@ -131,7 +131,7 @@ module.exports.Component = registerComponent('hp-mixed-reality-controls', {
131131

132132
// Load model.
133133
if (!this.data.model) { return; }
134-
this.el.setAttribute('gltf-model', HP_MIXEDL_REALITY_MODEL_GLB_BASE_URL + this.data.hand + '.glb');
134+
this.el.setAttribute('gltf-model', HP_MIXED_REALITY_MODEL_GLB_BASE_URL + this.data.hand + '.glb');
135135
},
136136

137137
addControllersUpdateListener: function () {

‎src/components/layer.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ module.exports.Component = registerComponent('layer', {
179179
var gl = this.el.sceneEl.renderer.getContext();
180180
var cubefaceTextures;
181181

182-
// dont flip the pixels as we load them into the texture buffer.
182+
// don't flip the pixels as we load them into the texture buffer.
183183
// TEXTURE_CUBE_MAP expects the Y to be flipped for the faces and it already
184184
// is flipped in our texture image.
185185
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false);

‎src/components/link.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module.exports.Component = registerComponent('link', {
168168

169169
/**
170170
* 1. Swap plane that represents portal with sphere with a hole when the camera is close
171-
* so user can peek inside portal. Sphere is rendered on oposite side of portal
171+
* so user can peek inside portal. Sphere is rendered on opposite side of portal
172172
* from where user enters.
173173
* 2. Place the url/title above or inside portal depending on distance to camera.
174174
* 3. Face portal to camera when far away from user.
@@ -228,7 +228,7 @@ module.exports.Component = registerComponent('link', {
228228
this.semiSphereEl.setAttribute('visible', true);
229229
this.peekCameraPortalOrientation = cameraPortalOrientation;
230230
} else {
231-
// Calculate wich side the camera is approaching the camera (back / front).
231+
// Calculate which side the camera is approaching the camera (back / front).
232232
// Adjust text orientation based on camera position.
233233
if (cameraPortalOrientation <= 0.0) {
234234
textEl.setAttribute('rotation', '0 180 0');

‎src/components/look-controls.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ module.exports.Component = registerComponent('look-controls', {
358358
deltaY = 2 * Math.PI * (evt.touches[0].pageX - this.touchStart.x) / canvas.clientWidth;
359359

360360
direction = this.data.reverseTouchDrag ? 1 : -1;
361-
// Limit touch orientaion to to yaw (y axis).
361+
// Limit touch orientation to to yaw (y axis).
362362
yawObject.rotation.y -= deltaY * 0.5 * direction;
363363
this.touchStart = {
364364
x: evt.touches[0].pageX,

0 commit comments

Comments
 (0)