Skip to content

Commit

Permalink
refactor(tools): Fix esLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeTorrealba committed Apr 18, 2024
1 parent 623a500 commit 0743cd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions docs/directives/v-rotate.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,3 @@ import { vRotate } from '@tresjs/core'
</TresCanvas>
</template>
```

_Note default speed is 0.01_
5 changes: 2 additions & 3 deletions playground/src/pages/lights.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { TresObject } from '@tresjs/core'
import { TresCanvas, vLightHelper, vAlwaysLookAt, vDistanceTo, vLog, vRotate } from '@tresjs/core'
import { BasicShadowMap, SRGBColorSpace, NoToneMapping } from 'three'
import { TresCanvas, vAlwaysLookAt, vDistanceTo, vLightHelper, vLog, vRotate } from '@tresjs/core'
import { BasicShadowMap, NoToneMapping, SRGBColorSpace } from 'three'
import { OrbitControls } from '@tresjs/cientos'
Expand Down Expand Up @@ -54,7 +54,6 @@ const planeRef: Ref<TresObject | null> = ref(null)
<TresMeshToonMaterial color="red" />
</TresMesh>
<TresMesh

:position="[2, 4, 0]"
cast-shadow
>
Expand Down
2 changes: 1 addition & 1 deletion src/directives/vRotate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const vRotate = {
binding: {
arg: 'x' | 'y' | 'z'
value: number
modifiers: Partial<{ x: boolean; y: boolean; z: boolean }>
modifiers: Partial<{ x: boolean, y: boolean, z: boolean }>
},
) => {
if (el.isCamera) {
Expand Down

0 comments on commit 0743cd0

Please sign in to comment.