瀏覽代碼

feat(core): filling up core state types

alvarosabu 2 年之前
父節點
當前提交
46eadbdb23
共有 1 個文件被更改,包括 8 次插入1 次删除
  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
 }