Browse Source

feat(core): filling up core state types

alvarosabu 2 năm trước cách đây
mục cha
commit
46eadbdb23
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  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
 }