@iwer/devui 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +77 -0
  2. package/build/iwer-devui.js +2032 -1555
  3. package/build/iwer-devui.min.js +33 -24
  4. package/build/iwer-devui.module.js +2032 -1556
  5. package/build/iwer-devui.module.min.js +33 -24
  6. package/lib/components/analog.d.ts +7 -1
  7. package/lib/components/analog.d.ts.map +1 -1
  8. package/lib/components/analog.js +9 -1
  9. package/lib/components/analog.js.map +1 -1
  10. package/lib/components/binary.d.ts +7 -1
  11. package/lib/components/binary.d.ts.map +1 -1
  12. package/lib/components/binary.js +9 -1
  13. package/lib/components/binary.js.map +1 -1
  14. package/lib/components/controls.d.ts +6 -0
  15. package/lib/components/controls.d.ts.map +1 -1
  16. package/lib/components/controls.js +1 -1
  17. package/lib/components/controls.js.map +1 -1
  18. package/lib/components/fov.d.ts +6 -0
  19. package/lib/components/fov.d.ts.map +1 -1
  20. package/lib/components/fov.js +7 -1
  21. package/lib/components/fov.js.map +1 -1
  22. package/lib/components/header.d.ts +6 -0
  23. package/lib/components/header.d.ts.map +1 -1
  24. package/lib/components/header.js +7 -1
  25. package/lib/components/header.js.map +1 -1
  26. package/lib/components/icons.d.ts +6 -0
  27. package/lib/components/icons.d.ts.map +1 -1
  28. package/lib/components/icons.js.map +1 -1
  29. package/lib/components/joystick.d.ts +7 -1
  30. package/lib/components/joystick.d.ts.map +1 -1
  31. package/lib/components/joystick.js +10 -2
  32. package/lib/components/joystick.js.map +1 -1
  33. package/lib/components/keys.d.ts +6 -0
  34. package/lib/components/keys.d.ts.map +1 -1
  35. package/lib/components/keys.js +6 -0
  36. package/lib/components/keys.js.map +1 -1
  37. package/lib/components/mapper.d.ts +6 -0
  38. package/lib/components/mapper.d.ts.map +1 -1
  39. package/lib/components/mapper.js +7 -1
  40. package/lib/components/mapper.js.map +1 -1
  41. package/lib/components/styled.d.ts +6 -0
  42. package/lib/components/styled.d.ts.map +1 -1
  43. package/lib/components/styled.js +7 -1
  44. package/lib/components/styled.js.map +1 -1
  45. package/lib/index.d.ts +11 -1
  46. package/lib/index.d.ts.map +1 -1
  47. package/lib/index.js +29 -11
  48. package/lib/index.js.map +1 -1
  49. package/lib/scene.d.ts +6 -0
  50. package/lib/scene.d.ts.map +1 -1
  51. package/lib/scene.js +6 -0
  52. package/lib/scene.js.map +1 -1
  53. package/package.json +16 -16
package/README.md ADDED
@@ -0,0 +1,77 @@
1
+ <p align="center">
2
+ <img height="60px" width="60px" src="https://meta-quest.github.io/immersive-web-emulation-runtime/iwer-text.svg" />
3
+ <h1 align="center">@iwer/devui</h1>
4
+ </p>
5
+
6
+ <p align="center">
7
+ <a href="https://www.npmjs.com/package/@iwer/devui"><img src="https://badgen.net/npm/v/@iwer/devui/?icon=npm&color=orange" alt="npm version" /></a>
8
+ <a href="https://www.npmjs.com/package/@iwer/devui"><img src="https://badgen.net/npm/dt/@iwer/devui" alt="npm download" /></a>
9
+ <a href="https://www.typescriptlang.org/"><img src="https://badgen.net/badge/icon/typescript/?icon=typescript&label=lang" alt="language" /></a>
10
+ <a href="https://raw.githubusercontent.com/meta-quest/immersive-web-emulation-runtime/main/LICENSE"><img src="https://badgen.net/github/license/meta-quest/immersive-web-emulation-runtime/" alt="license" /></a>
11
+ </p>
12
+
13
+ `@iwer/devui` is a developer user interface designed to integrate with the Immersive Web Emulation Runtime (IWER). It provides full control of an emulated WebXR device via an intuitive overlay UI on top of your development environment. This tool is ideal for developers building and testing WebXR applications, offering advanced features for comprehensive device emulation directly within your project's source code.
14
+
15
+ ## Key Features
16
+
17
+ - **Comprehensive Transform Controls:** Modify the position and orientation of the emulated headset and controllers with precision.
18
+ - **Full Gamepad Controls Support:** Exposes complete control over the emulated XR controllers, perfectly recreating the behavior and input of physical controllers for thorough testing.
19
+ - **Experimental Play Mode:** Allows developers to efficiently test their immersive experiences using traditional FPS-like mouse and keyboard controls. This mode locks the pointer to the canvas and offers fully mappable keyboard shortcuts to emulate controller actions, streamlining the testing process without the need for physical devices.
20
+
21
+ ## Current Status
22
+
23
+ `@iwer/devui` is currently in `0.x` status and is under active development. This is an early build, meaning that while it already excels in many areas and offers better usability than the current IWE, it is not yet complete. Key features and functionalities are being actively developed, and significant changes may occur before the official v1.0 release.
24
+
25
+ ### Areas Under Development
26
+
27
+ - **Emulated Hand Tracking Support:** Enable hand tracking emulation to test applications that rely on this feature.
28
+ - **AR Module Support:** Work is ongoing to integrate augmented reality features such as hit-testing, meshing, and plane detection.
29
+
30
+ ## Relationship with IWE
31
+
32
+ `@iwer/devui` is a package that developers can add directly to their projects, providing a powerful WebXR emulation tool within the source code. In contrast, [**IWE (Immersive Web Emulator)**](https://chromewebstore.google.com/detail/immersive-web-emulator/cgffilbpcibhmcfbgggfhfolhkfbhmik) is an extension that injects similar emulation capabilities without requiring access to the project’s source code.
33
+
34
+ In the long term, starting with the IWE 2.0 release, the `@iwer/devui` experience will be integrated into IWE, enhancing its functionality. However, `@iwer/devui` will continue to be available as a standalone package, allowing developers to choose the integration method that best suits their workflow.
35
+
36
+ ## Installation
37
+
38
+ To install `@iwer/devui`, use the following npm command:
39
+
40
+ ```bash
41
+ npm install @iwer/devui
42
+ ```
43
+
44
+ ## Usage
45
+
46
+ `@iwer/devui` depends on an active `IWER` runtime within your experience. To get started, you first need to initialize the `IWER` runtime. If you haven't already, check out the [IWER Getting Started Guide](https://meta-quest.github.io/immersive-web-emulation-runtime/getting-started.html). Here is a quick example:
47
+
48
+ ```javascript
49
+ import { XRDevice, metaQuest3 } from 'iwer';
50
+
51
+ // Initialize the XR device with a preset configuration (e.g., Meta Quest 3)
52
+ const xrDevice = new XRDevice(metaQuest3);
53
+
54
+ // Install the IWER runtime to enable WebXR emulation
55
+ xrDevice.installRuntime();
56
+ ```
57
+
58
+ You can choose to emulate other preset devices or use a custom device configuration with `iwer`. `@iwer/devui` will automatically read the configuration from `iwer` and generate the appropriate control UI based on the selected device.
59
+
60
+ To integrate `@iwer/devui` into your project, add the following code:
61
+
62
+ ```javascript
63
+ import { DevUI } from '@iwer/devui';
64
+
65
+ // Initialize the DevUI with the configured XR device
66
+ const devui = new DevUI(xrDevice);
67
+ ```
68
+
69
+ This setup will allow you to use `@iwer/devui`'s comprehensive emulation controls directly within your WebXR project.
70
+
71
+ ## License
72
+
73
+ `@iwer/devui` is licensed under the MIT License. For more details, see the [LICENSE](https://github.com/meta-quest/immersive-web-emulation-runtime/blob/main/LICENSE) file in this repository.
74
+
75
+ ## Contributing
76
+
77
+ Your contributions are welcome! Please feel free to submit issues and pull requests. Before contributing, make sure to review our [Contributing Guidelines](https://github.com/meta-quest/immersive-web-emulation-runtime/blob/main/CONTRIBUTING.md) and [Code of Conduct](https://github.com/meta-quest/immersive-web-emulation-runtime/blob/main/CODE_OF_CONDUCT.md).