Răsfoiți Sursa

feat(core): filling up core state types

alvarosabu 2 ani în urmă
părinte
comite
46eadbdb23
1 a modificat fișierele cu 8 adăugiri și 1 ștergeri
  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
 }