浏览代码

chore(docs): Updated delta definition in onLoop documentation to match source (#752)

Co-authored-by: Alvaro Saburido <alvaro.saburido@gmail.com>
Nathanael Santoso 10 月之前
父节点
当前提交
0d2767f3b8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/api/composables.md

+ 2 - 2
docs/api/composables.md

@@ -160,7 +160,7 @@ onBeforeRender(() => {
 
 
 All callbacks receive an object with the following properties:
 All callbacks receive an object with the following properties:
 
 
-- `delta`: The delta time between the current and the last frame. This is the time in miliseconds since the last frame.
+- `delta`: The delta time between the current and the last frame. This is the time in seconds since the last frame.
 - `elapsed`: The elapsed time since the start of the render loop.
 - `elapsed`: The elapsed time since the start of the render loop.
 - `clock`: The [THREE clock](https://threejs.org/docs/?q=clock#api/en/core/Clock) instance.
 - `clock`: The [THREE clock](https://threejs.org/docs/?q=clock#api/en/core/Clock) instance.
 - `renderer`: The [WebGLRenderer](https://threejs.org/docs/#api/en/renderers/WebGLRenderer) of your scene.
 - `renderer`: The [WebGLRenderer](https://threejs.org/docs/#api/en/renderers/WebGLRenderer) of your scene.
@@ -359,7 +359,7 @@ Be mindful of the performance implications of using this composable. It will run
 
 
 The `onLoop` callback receives an object with the following properties based on the [THREE clock](https://threejs.org/docs/?q=clock#api/en/core/Clock):
 The `onLoop` callback receives an object with the following properties based on the [THREE clock](https://threejs.org/docs/?q=clock#api/en/core/Clock):
 
 
-- `delta`: The delta time between the current and the last frame. This is the time in milliseconds since the last frame.
+- `delta`: The delta time between the current and the last frame. This is the time in seconds since the last frame.
 - `elapsed`: The elapsed time since the start of the render loop.
 - `elapsed`: The elapsed time since the start of the render loop.
 
 
 This composable is based on `useRafFn` from [vueuse](https://vueuse.org/core/useRafFn/). Thanks to [@wheatjs](https://github.com/wheatjs) for the amazing contribution.
 This composable is based on `useRafFn` from [vueuse](https://vueuse.org/core/useRafFn/). Thanks to [@wheatjs](https://github.com/wheatjs) for the amazing contribution.