Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeTorrealba committed Sep 8, 2024
1 parent 8f18558 commit f71eb37
Show file tree
Hide file tree
Showing 17 changed files with 8,225 additions and 10,372 deletions.
9 changes: 3 additions & 6 deletions docs/advanced/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,9 @@ To avoid errors and unwanted sideeffects, resources created programatically with
import { dispose } from '@tresjs/core'
import { useGLTF } from '@tresjs/cientos'
const { nodes } = await useGLTF(
'https://raw.githubusercontent.com/Tresjs/assets/main/models/gltf/blender-cube.glb',
{
draco: true,
},
)
const { nodes } = await useGLTF('https://raw.githubusercontent.com/Tresjs/assets/main/models/gltf/blender-cube.glb', {
draco: true,
})
const model = nodes.Cube
onUnmounted(() => {
Expand Down
6 changes: 1 addition & 5 deletions docs/advanced/primitive.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ The same pointer events available on the TresJS components are available on the

```html
<template>
<primitive
:object="meshWithMaterial"
@click="onClick"
@pointermove="onPointerMove"
/>
<primitive :object="meshWithMaterial" @click="onClick" @pointermove="onPointerMove" />
</template>
```

Expand Down
2 changes: 1 addition & 1 deletion playground/vue/src/pages/basic/Primitives.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
Mesh,
MeshToonMaterial,
NoToneMapping,
SRGBColorSpace,
SphereGeometry,
SRGBColorSpace,
TorusGeometry,
TorusKnotGeometry,
} from 'three'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useLoop } from '@tresjs/core'
import { type ShallowRef, ref, shallowRef } from 'vue'
import { ref, type ShallowRef, shallowRef } from 'vue'
const isCalled = ref(false)
Expand Down
4 changes: 2 additions & 2 deletions playground/vue/src/pages/basic/ready/OnTresReadyWatcher.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { type TresContext, onTresReady } from '@tresjs/core'
import { type ShallowRef, ref, shallowRef } from 'vue'
import { onTresReady, type TresContext } from '@tresjs/core'
import { ref, type ShallowRef, shallowRef } from 'vue'
const isCalled = ref(false)
Expand Down
2 changes: 1 addition & 1 deletion playground/vue/src/pages/loaders/componentDemo.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup>
import { TresCanvas, UseLoader } from '@tresjs/core'
import { OrbitControls } from '@tresjs/cientos'
import { TresCanvas, UseLoader } from '@tresjs/core'
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'
const url = 'https://raw.githubusercontent.com/Tresjs/assets/main/models/gltf/blender-cube.glb'
Expand Down
Loading

0 comments on commit f71eb37

Please sign in to comment.