Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/jsm/inspector/ui/Profiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class Profiler extends EventDispatcher {
this.nextTabOriginalIndex = 0; // Track the original order of tabs as they are added

this.horizontalAlign = 'right'; // 'left' or 'right'
this.verticalAlign = 'top'; // 'top' or 'bottom'
this.verticalAlign = 'top'; // 'top' or 'bottom'

this.setupShell();
this.setupResizing();
Expand Down Expand Up @@ -2152,7 +2152,7 @@ export class Profiler extends EventDispatcher {
const isRight = this.position === 'right';

let horizontal = this.horizontalAlign; // 'left' or 'right'
let vertical = this.verticalAlign; // 'top' or 'bottom'
let vertical = this.verticalAlign; // 'top' or 'bottom'

if ( isVisible ) {

Expand Down
4 changes: 2 additions & 2 deletions examples/jsm/misc/RollerCoaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class RollerCoasterGeometry extends BufferGeometry {

let headingChange = Math.atan2( sample2.x, sample2.z ) - Math.atan2( sample1.x, sample1.z );
if ( headingChange > Math.PI ) headingChange -= Math.PI * 2;
if ( headingChange < -Math.PI ) headingChange += Math.PI * 2;
if ( headingChange < - Math.PI ) headingChange += Math.PI * 2;

quaternion.premultiply( rollQuaternion.setFromAxisAngle( forward, - Math.atan( headingChange * 8 ) * 0.5 ) );

Expand Down Expand Up @@ -398,7 +398,7 @@ class RollerCoasterLiftersGeometry extends BufferGeometry {

let headingChange = Math.atan2( sample2.x, sample2.z ) - Math.atan2( sample1.x, sample1.z );
if ( headingChange > Math.PI ) headingChange -= Math.PI * 2;
if ( headingChange < -Math.PI ) headingChange += Math.PI * 2;
if ( headingChange < - Math.PI ) headingChange += Math.PI * 2;

bankedQuaternion.copy( quaternion );
rollQuaternion.setFromAxisAngle( tangent, - Math.atan( headingChange * 8 ) * 0.5 );
Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/physics/JoltPhysics.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async function JoltPhysics() {

}

function setMeshVelocity( mesh, velocity, index = 0 ) {
function setMeshVelocity( /*mesh, velocity, index = 0*/ ) {

/*
let body = meshMap.get( mesh );
Expand Down
4 changes: 2 additions & 2 deletions examples/jsm/renderers/CSS2DRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ class CSS2DRenderer {

// coordinates
const tx = _vector.x * _widthHalf + _widthHalf;
const ty = -_vector.y * _heightHalf + _heightHalf;
const ty = - _vector.y * _heightHalf + _heightHalf;

// transform
element.style.transform = `translate(${-cx}%, ${-cy}%) translate(${tx}px, ${ty}px) rotate(${angle}rad)`;
element.style.transform = `translate(${- cx}%, ${- cy}%) translate(${tx}px, ${ty}px) rotate(${angle}rad)`;

if ( element.parentNode !== domElement ) {

Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/tsl/display/RetroPassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class RetroPassNode extends PassNode {

let finalUV;

if ( texture.isCubeTextureNode) {
if ( texture.isCubeTextureNode ) {

finalUV = reflectVector;

Expand Down
Loading