Parcourir la source

feat(core): filling up core state types

alvarosabu il y a 2 ans
Parent
commit
46eadbdb23
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      packages/tres/src/core/useTres/index.ts

+ 8 - 1
packages/tres/src/core/useTres/index.ts

@@ -1,10 +1,17 @@
-import { WebGLRenderer } from 'three'
+import { Clock, EventDispatcher, Raycaster, Scene, Vector2, WebGLRenderer } from 'three'
 import { shallowReactive, toRefs } from 'vue'
 import { Camera } from '/@/core'
 
 export interface TresState {
   camera?: Camera
+  aspectRatio?: number
   renderer?: WebGLRenderer
+  scene?: Scene
+  raycaster?: Raycaster
+  clock?: Clock
+  pointer?: Vector2
+  currentInstance?: any
+  controls?: EventDispatcher | null
   [key: string]: any
 }