Skip to content

Commit

Permalink
Update needle-engine-attributes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed Nov 23, 2023
1 parent 8e025d8 commit 1b0ad03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/reference/needle-engine-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down Expand Up @@ -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 `<needle-engine>` 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)
[See code on github](https://github.com/needle-engine/vite-template/blob/loading-style/custom/index.html)

0 comments on commit 1b0ad03

Please sign in to comment.