Skip to content

Commit 398c4f3

Browse files
authored
Merge pull request #17517 from Mugen87/dev26
Examples: Clean up.
2 parents bcd7045 + a30af66 commit 398c4f3

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

examples/js/exporters/GLTFExporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ THREE.GLTFExporter.prototype = {
901901

902902
}
903903

904-
if ( material.isShaderMaterial && !material.isGLTFSpecularGlossinessMaterial ) {
904+
if ( material.isShaderMaterial && ! material.isGLTFSpecularGlossinessMaterial ) {
905905

906906
console.warn( 'GLTFExporter: THREE.ShaderMaterial not supported.' );
907907
return null;

examples/js/loaders/DRACOLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ THREE.DRACOLoader.DRACOWorker = function () {
477477

478478
attributeID = decoder.GetAttributeId( dracoGeometry, draco[ attributeIDs[ attributeName ] ] );
479479

480-
if ( attributeID === -1 ) continue;
480+
if ( attributeID === - 1 ) continue;
481481

482482
attribute = decoder.GetAttribute( dracoGeometry, attributeID );
483483

examples/js/misc/CarControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ THREE.CarControls = ( function ( ) {
242242
frontLeftWheelRoot.rotation[ this.wheelTurnAxis ] = wheelOrientation;
243243
frontRightWheelRoot.rotation[ this.wheelTurnAxis ] = wheelOrientation;
244244

245-
steeringWheel.rotation[ this.steeringWheelTurnAxis ] = -wheelOrientation * 6;
245+
steeringWheel.rotation[ this.steeringWheelTurnAxis ] = - wheelOrientation * 6;
246246

247247
},
248248

examples/js/vr/HelioWebXRPolyfill.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
66

77
console.log( "Helio WebXR Polyfill (Lumin 0.97.0)" );
88

9-
const isHelio96 = navigator.userAgent.includes("Chrome/73");
9+
const isHelio96 = navigator.userAgent.includes( "Chrome/73" );
1010

1111
// WebXRManager - XR.supportSession() Polyfill - WebVR.js line 147
1212

@@ -32,9 +32,9 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
3232

3333
return new Promise( function ( resolve, reject ) {
3434

35-
const sessionType = (isHelio96 ? {
35+
const sessionType = ( isHelio96 ? {
3636
mode: 'immersive-ar' // Force using immersive-ar
37-
} : 'immersive-ar');
37+
} : 'immersive-ar' );
3838

3939
tempRequestSession( sessionType )
4040
.then( function ( session ) {
@@ -74,11 +74,11 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
7474

7575
// WebXRManager - xrFrame.getPose() Polyfill - line 259
7676

77-
const tempGetPose = (isHelio96 ? null : frame.getPose.bind( frame ));
77+
const tempGetPose = ( isHelio96 ? null : frame.getPose.bind( frame ) );
7878

7979
frame.getPose = function ( targetRaySpace, referenceSpace ) {
8080

81-
if (isHelio96) {
81+
if ( isHelio96 ) {
8282

8383
const inputPose = frame.getInputPose(
8484
targetRaySpace,
@@ -93,7 +93,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
9393

9494
} else {
9595

96-
return tempGetPose(targetRaySpace.gripSpace, referenceSpace);
96+
return tempGetPose( targetRaySpace.gripSpace, referenceSpace );
9797

9898
}
9999

@@ -113,7 +113,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
113113

114114
const res = tempGetInputSources();
115115

116-
res.forEach( function (xrInputSource ) {
116+
res.forEach( function ( xrInputSource ) {
117117

118118
Object.defineProperty( xrInputSource, "targetRaySpace", {
119119
get: function () {
@@ -141,7 +141,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
141141

142142
// WebXRManager - xrSession.updateRenderState() Polyfill Line 129
143143

144-
if (isHelio96) {
144+
if ( isHelio96 ) {
145145

146146
session.updateRenderState = function ( { baseLayer } ) {
147147

examples/jsm/exporters/GLTFExporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ GLTFExporter.prototype = {
925925

926926
}
927927

928-
if ( material.isShaderMaterial && !material.isGLTFSpecularGlossinessMaterial ) {
928+
if ( material.isShaderMaterial && ! material.isGLTFSpecularGlossinessMaterial ) {
929929

930930
console.warn( 'GLTFExporter: THREE.ShaderMaterial not supported.' );
931931
return null;

examples/jsm/loaders/DRACOLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ DRACOLoader.DRACOWorker = function () {
484484

485485
attributeID = decoder.GetAttributeId( dracoGeometry, draco[ attributeIDs[ attributeName ] ] );
486486

487-
if ( attributeID === -1 ) continue;
487+
if ( attributeID === - 1 ) continue;
488488

489489
attribute = decoder.GetAttribute( dracoGeometry, attributeID );
490490

examples/jsm/misc/CarControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ var CarControls = ( function ( ) {
249249
frontLeftWheelRoot.rotation[ this.wheelTurnAxis ] = wheelOrientation;
250250
frontRightWheelRoot.rotation[ this.wheelTurnAxis ] = wheelOrientation;
251251

252-
steeringWheel.rotation[ this.steeringWheelTurnAxis ] = -wheelOrientation * 6;
252+
steeringWheel.rotation[ this.steeringWheelTurnAxis ] = - wheelOrientation * 6;
253253

254254
},
255255

0 commit comments

Comments
 (0)