You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/reference/needle-engine-attributes.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,10 @@ The table below shows a list of available attributes and their descriptions.
20
20
|`loading-background`|**PRO** — Default: `transparent`. Change the loading background color (e.g. `#dd5500`) |
21
21
|`loading-logo-src`|**PRO** — Change the loading logo image (e.g. `https://yourdomain.com/logo.png` or `/logo.png`) |
22
22
| `hide-loading-overlay` | **PRO** — Do not show the loading overlay
23
+
|**Events**||
24
+
|`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 |
25
+
|`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, progress:ProgressEvent}) { ... }`|
26
+
|`loadfinished`| Name of the function to call when loading finishes |
23
27
|**Rendering**||
24
28
|`background-color`| optional, hex color to be used as a background color. Examples: `rgb(255, 200, 100)`, `#dddd00`|
25
29
|`background-image`| optional, URL to a skybox image (background image) or a preset string: `studio`, `blurred-skybox`, `quicklook`, `quicklook-ar`|
@@ -32,10 +36,6 @@ The table below shows a list of available attributes and their descriptions.
32
36
|`autoplay`| add or set to `true` to auto play animations e.g. `<needle-engine autoplay`|
33
37
|`camera-controls`| add or set to `true` to automatically add OrbitControls if no camera controls are found in the scene |
34
38
|`auto-rotate`| add to enable auto-rotate (only used with `camera-controls`) |
35
-
|**Events**||
36
-
|`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 |
37
-
|`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, progress:ProgressEvent}) { ... }`|
38
-
|`loadfinished`| Name of the function to call when loading finishes |
39
39
|**Advanced**|*Available options to change how the Needle Engine loading display looks. Use `?debugloadingrendering` for easier editing*|
40
40
|`dracoDecoderPath`| URL to the draco decoder e.g. `./include/draco/` to use the local Draco decoder |
41
41
|`dracoDecoderType`| draco decoder type. Options are `wasm` or `js`. See [three.js documentation](https://threejs.org/docs/#examples/en/loaders/DRACOLoader.setDecoderConfig)|
0 commit comments