Quellcode durchsuchen

fix(core): lint issues

alvarosabu vor 2 Jahren
Ursprung
Commit
1583fcb383

+ 1 - 1
packages/tres/src/components/TestSphere.vue

@@ -7,7 +7,7 @@ const sphereRef: Ref<TresInstance | null> = ref(null)
 
 const { onLoop, resume } = useRenderLoop()
 resume()
-onLoop(({ _delta, elapsed }) => {
+onLoop(({ elapsed }) => {
   if (sphereRef.value) {
     sphereRef.value.position.y = Math.sin(elapsed * 0.2) * 2.0
   }

+ 2 - 15
packages/tres/src/components/TheBasic.vue

@@ -1,18 +1,5 @@
 <script setup lang="ts">
-import {
-  sRGBEncoding,
-  LinearEncoding,
-  BasicShadowMap,
-  PCFShadowMap,
-  PCFSoftShadowMap,
-  VSMShadowMap,
-  NoToneMapping,
-  LinearToneMapping,
-  ReinhardToneMapping,
-  CineonToneMapping,
-  ACESFilmicToneMapping,
-  CustomToneMapping,
-} from 'three'
+import { sRGBEncoding, BasicShadowMap, NoToneMapping } from 'three'
 import { reactive, ref } from 'vue'
 
 import { OrbitControls, TransformControls } from '@tresjs/cientos'
@@ -33,7 +20,7 @@ const sphereRef = ref()
 
 const { onLoop } = useRenderLoop()
 
-onLoop(({ delta, elapsed, state }) => {
+onLoop(({ elapsed }) => {
   sphereRef.value.position.y += Math.sin(elapsed * 0.01) * 0.1
 })
 </script>

+ 3 - 1
packages/tres/src/utils/test-utils.ts

@@ -6,7 +6,9 @@ export function withSetup(composable) {
     setup() {
       result = composable()
       // suppress missing template warning
-      return () => {}
+      return () => {
+        return null
+      }
     },
   })
   app.mount(document.createElement('div'))