From fdc3f7265610293c2394541de390d6226df11775 Mon Sep 17 00:00:00 2001 From: ycw Date: Fri, 3 May 2024 05:35:32 +0800 Subject: [PATCH] lint fix --- editor/js/Loader.js | 4 ++-- editor/js/Menubar.View.js | 2 +- editor/js/Sidebar.Scene.js | 2 +- editor/js/Viewport.Pathtracer.js | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/editor/js/Loader.js b/editor/js/Loader.js index be5850f7498433..8daf3a85a778ea 100644 --- a/editor/js/Loader.js +++ b/editor/js/Loader.js @@ -99,7 +99,7 @@ function Loader( editor ) { }, function ( error ) { - console.error( error ) + console.error( error ); } ); @@ -941,7 +941,7 @@ function Loader( editor ) { { const loader = await createGLTFLoader( manager ); - + loader.parse( strFromU8( file ), '', function ( result ) { const scene = result.scene; diff --git a/editor/js/Menubar.View.js b/editor/js/Menubar.View.js index 3a9de149bf846e..9c79c2bb321d2b 100644 --- a/editor/js/Menubar.View.js +++ b/editor/js/Menubar.View.js @@ -97,7 +97,7 @@ function MenubarView( editor ) { } - } ); + } ); } diff --git a/editor/js/Sidebar.Scene.js b/editor/js/Sidebar.Scene.js index 4cd3f0ef779bee..38d539c95facdb 100644 --- a/editor/js/Sidebar.Scene.js +++ b/editor/js/Sidebar.Scene.js @@ -195,7 +195,7 @@ function SidebarScene( editor ) { const backgroundIntensity = new UINumber( 1 ).setWidth( '40px' ).setRange( 0, Infinity ).onChange( onBackgroundChanged ); backgroundEquirectRow.add( backgroundIntensity ); - const backgroundRotation = new UINumber( 0 ).setWidth( '40px' ).setRange( -180, 180 ).setStep( 10 ).setNudge( 0.1 ).setUnit( '°' ).onChange( onBackgroundChanged ); + const backgroundRotation = new UINumber( 0 ).setWidth( '40px' ).setRange( - 180, 180 ).setStep( 10 ).setNudge( 0.1 ).setUnit( '°' ).onChange( onBackgroundChanged ); backgroundEquirectRow.add( backgroundRotation ); container.add( backgroundEquirectRow ); diff --git a/editor/js/Viewport.Pathtracer.js b/editor/js/Viewport.Pathtracer.js index 1ec1e98b0c82ef..3b4b4dbb836c10 100644 --- a/editor/js/Viewport.Pathtracer.js +++ b/editor/js/Viewport.Pathtracer.js @@ -17,7 +17,7 @@ function ViewportPathtracer( renderer ) { } - function setSize( width, height ) { + function setSize( /* width, height */ ) { if ( pathTracer === null ) return; @@ -26,7 +26,7 @@ function ViewportPathtracer( renderer ) { } - function setBackground( background, blurriness ) { + function setBackground( /* background, blurriness */ ) { if ( pathTracer === null ) return; @@ -43,7 +43,7 @@ function ViewportPathtracer( renderer ) { } - function setEnvironment( environment ) { + function setEnvironment( /* environment */ ) { if ( pathTracer === null ) return;