From 1b0ad0376cd6fdedd345f8574a210c1b64198c8c Mon Sep 17 00:00:00 2001 From: Marcel Wiessler Date: Thu, 23 Nov 2023 09:40:19 +0100 Subject: [PATCH] Update needle-engine-attributes.md --- documentation/reference/needle-engine-attributes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/reference/needle-engine-attributes.md b/documentation/reference/needle-engine-attributes.md index d4b9ad6cf..64f89f826 100644 --- a/documentation/reference/needle-engine-attributes.md +++ b/documentation/reference/needle-engine-attributes.md @@ -21,7 +21,7 @@ The table below shows a list of the most important ones: | `auto-rotate` | add to enable auto-rotate (only used with `camera-controls`) | | **Events** | | | `loadstart` | Name of the function to call when loading starts. Note that the arguments are `(ctx:Context, evt:Event)`. You can call `evt.preventDefault()` to hide the default loading overlay | -| `progress` | Name of the function to call when loading updates | +| `progress` | Name of the function to call when loading updates. `onProgress(ctx:Context, evt: {detail: {context:Context, name:string, index:number, count:number, totalProgress01:number}) { ... }` | | `loadfinished` | Name of the function to call when loading finishes | | **Loading Display** | *Available options to change how the Needle Engine loading display looks. Use `?debugloadingrendering` for easier editing* | | `loading-style` | Options are `light` or `dark` | @@ -75,4 +75,4 @@ Receiving an event when the needle-engine context has finished loading: You can easily modify how Needle Engine looks by setting the appropriate attributes on the `` web component. Please see the table above for details. ![custom loading](/imgs/custom-loading-style.webp) -[See code on github](https://github.com/needle-engine/vite-template/blob/loading-style/custom/index.html) \ No newline at end of file +[See code on github](https://github.com/needle-engine/vite-template/blob/loading-style/custom/index.html)