Skip to content

Commit

Permalink
feat: cleanup of obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinoooo committed Mar 30, 2023
1 parent 597e917 commit f55ef36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/components/TresCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const TresCanvas = defineComponent<TresCanvasProps>({
const { setState } = useTres()

setState('scene', scene)
setState('canvas', canvas)

onUnmounted(() => {
setState('renderer', null)
Expand Down
3 changes: 1 addition & 2 deletions src/composables/useRaycaster/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useTres } from '/@/composables'
import { MaybeElementRef, unrefElement } from '@vueuse/core'
import { Raycaster, Vector2 } from 'three'
import { onUnmounted, Ref, ref, ShallowRef, shallowRef, watchEffect } from 'vue'
import { Ref, ref, ShallowRef, shallowRef } from 'vue'

const raycaster = shallowRef(new Raycaster())
const pointer = ref(new Vector2())
Expand Down

0 comments on commit f55ef36

Please sign in to comment.