瀏覽代碼

docs: Fix typo: useThree should useTres (#332)

Co-authored-by: Alvaro Saburido <alvaro.saburido@gmail.com>
Bruno Perel 1 年之前
父節點
當前提交
def677a717
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      docs/examples/orbit-controls.md

+ 4 - 4
docs/examples/orbit-controls.md

@@ -42,10 +42,10 @@ Now you can use the `TresOrbitControls` component in your scene.
 
 
 Since [OrbitControls](https://threejs.org/docs/index.html?q=orbit#examples/en/controls/OrbitControls) needs a reference to the camera and the renderer, you need to pass them as arguments.
 Since [OrbitControls](https://threejs.org/docs/index.html?q=orbit#examples/en/controls/OrbitControls) needs a reference to the camera and the renderer, you need to pass them as arguments.
 
 
-You can use the [useThree](/api/composables#usethree) composable to get the camera and the renderer.
+You can use the [useTres](/api/composables#usetres) composable to get the camera and the renderer.
 
 
 ```ts
 ```ts
-import { useThree } from '@tresjs/core'
+import { useTres } from '@tresjs/core'
 
 
 const { state } = useTres()
 const { state } = useTres()
 ```
 ```
@@ -54,12 +54,12 @@ So the final code would be something like this:
 
 
 ```vue
 ```vue
 <script setup lang="ts">
 <script setup lang="ts">
-import { extend } from '@tresjs/core'
+import { extend, useTres } from '@tresjs/core'
 import { OrbitControls } from 'three/addons/controls/OrbitControls'
 import { OrbitControls } from 'three/addons/controls/OrbitControls'
 
 
 extend({ OrbitControls })
 extend({ OrbitControls })
 
 
-const { state } = useThree()
+const { state } = useTres()
 </script>
 </script>
 <template>
 <template>
   <TresCanvas shadows alpha>
   <TresCanvas shadows alpha>