iwer 0.0.2 → 1.0.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 (149) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -0
  3. package/build/iwer.js +205 -2
  4. package/build/iwer.min.js +1 -1
  5. package/build/iwer.module.js +205 -2
  6. package/build/iwer.module.min.js +1 -1
  7. package/lib/action/ActionPlayer.d.ts +6 -0
  8. package/lib/action/ActionPlayer.d.ts.map +1 -1
  9. package/lib/action/ActionPlayer.js +6 -0
  10. package/lib/action/ActionPlayer.js.map +1 -1
  11. package/lib/action/ActionRecorder.d.ts +6 -0
  12. package/lib/action/ActionRecorder.d.ts.map +1 -1
  13. package/lib/action/ActionRecorder.js +6 -0
  14. package/lib/action/ActionRecorder.js.map +1 -1
  15. package/lib/device/XRController.d.ts +6 -0
  16. package/lib/device/XRController.d.ts.map +1 -1
  17. package/lib/device/XRController.js +6 -0
  18. package/lib/device/XRController.js.map +1 -1
  19. package/lib/device/XRDevice.d.ts +6 -0
  20. package/lib/device/XRDevice.d.ts.map +1 -1
  21. package/lib/device/XRDevice.js +6 -0
  22. package/lib/device/XRDevice.js.map +1 -1
  23. package/lib/device/XRHandInput.d.ts +6 -0
  24. package/lib/device/XRHandInput.d.ts.map +1 -1
  25. package/lib/device/XRHandInput.js +6 -0
  26. package/lib/device/XRHandInput.js.map +1 -1
  27. package/lib/device/XRTrackedInput.d.ts +6 -0
  28. package/lib/device/XRTrackedInput.d.ts.map +1 -1
  29. package/lib/device/XRTrackedInput.js +6 -0
  30. package/lib/device/XRTrackedInput.js.map +1 -1
  31. package/lib/device/configs/controller/meta.d.ts +6 -0
  32. package/lib/device/configs/controller/meta.d.ts.map +1 -1
  33. package/lib/device/configs/controller/meta.js +6 -0
  34. package/lib/device/configs/controller/meta.js.map +1 -1
  35. package/lib/device/configs/hand/pinch.d.ts +6 -0
  36. package/lib/device/configs/hand/pinch.d.ts.map +1 -1
  37. package/lib/device/configs/hand/pinch.js +6 -0
  38. package/lib/device/configs/hand/pinch.js.map +1 -1
  39. package/lib/device/configs/hand/point.d.ts +6 -0
  40. package/lib/device/configs/hand/point.d.ts.map +1 -1
  41. package/lib/device/configs/hand/point.js +6 -0
  42. package/lib/device/configs/hand/point.js.map +1 -1
  43. package/lib/device/configs/hand/relaxed.d.ts +6 -0
  44. package/lib/device/configs/hand/relaxed.d.ts.map +1 -1
  45. package/lib/device/configs/hand/relaxed.js +6 -0
  46. package/lib/device/configs/hand/relaxed.js.map +1 -1
  47. package/lib/device/configs/headset/meta.d.ts +6 -0
  48. package/lib/device/configs/headset/meta.d.ts.map +1 -1
  49. package/lib/device/configs/headset/meta.js +6 -0
  50. package/lib/device/configs/headset/meta.js.map +1 -1
  51. package/lib/events/XRInputSourceEvent.d.ts +6 -0
  52. package/lib/events/XRInputSourceEvent.d.ts.map +1 -1
  53. package/lib/events/XRInputSourceEvent.js +6 -0
  54. package/lib/events/XRInputSourceEvent.js.map +1 -1
  55. package/lib/events/XRInputSourcesChangeEvent.d.ts +6 -0
  56. package/lib/events/XRInputSourcesChangeEvent.d.ts.map +1 -1
  57. package/lib/events/XRInputSourcesChangeEvent.js +6 -0
  58. package/lib/events/XRInputSourcesChangeEvent.js.map +1 -1
  59. package/lib/events/XRReferenceSpaceEvent.d.ts +6 -0
  60. package/lib/events/XRReferenceSpaceEvent.d.ts.map +1 -1
  61. package/lib/events/XRReferenceSpaceEvent.js +6 -0
  62. package/lib/events/XRReferenceSpaceEvent.js.map +1 -1
  63. package/lib/events/XRSessionEvent.d.ts +6 -0
  64. package/lib/events/XRSessionEvent.d.ts.map +1 -1
  65. package/lib/events/XRSessionEvent.js +6 -0
  66. package/lib/events/XRSessionEvent.js.map +1 -1
  67. package/lib/frameloop/XRFrame.d.ts +6 -0
  68. package/lib/frameloop/XRFrame.d.ts.map +1 -1
  69. package/lib/frameloop/XRFrame.js +6 -0
  70. package/lib/frameloop/XRFrame.js.map +1 -1
  71. package/lib/gamepad/Gamepad.d.ts +6 -0
  72. package/lib/gamepad/Gamepad.d.ts.map +1 -1
  73. package/lib/gamepad/Gamepad.js +6 -0
  74. package/lib/gamepad/Gamepad.js.map +1 -1
  75. package/lib/index.d.ts +6 -0
  76. package/lib/index.d.ts.map +1 -1
  77. package/lib/index.js +6 -0
  78. package/lib/index.js.map +1 -1
  79. package/lib/initialization/XRSystem.d.ts +6 -0
  80. package/lib/initialization/XRSystem.d.ts.map +1 -1
  81. package/lib/initialization/XRSystem.js +6 -0
  82. package/lib/initialization/XRSystem.js.map +1 -1
  83. package/lib/input/XRHand.d.ts +6 -0
  84. package/lib/input/XRHand.d.ts.map +1 -1
  85. package/lib/input/XRHand.js +6 -0
  86. package/lib/input/XRHand.js.map +1 -1
  87. package/lib/input/XRInputSource.d.ts +6 -0
  88. package/lib/input/XRInputSource.d.ts.map +1 -1
  89. package/lib/input/XRInputSource.js +6 -0
  90. package/lib/input/XRInputSource.js.map +1 -1
  91. package/lib/layers/XRWebGLLayer.d.ts +6 -0
  92. package/lib/layers/XRWebGLLayer.d.ts.map +1 -1
  93. package/lib/layers/XRWebGLLayer.js +6 -0
  94. package/lib/layers/XRWebGLLayer.js.map +1 -1
  95. package/lib/pose/XRJointPose.d.ts +6 -0
  96. package/lib/pose/XRJointPose.d.ts.map +1 -1
  97. package/lib/pose/XRJointPose.js +6 -0
  98. package/lib/pose/XRJointPose.js.map +1 -1
  99. package/lib/pose/XRPose.d.ts +6 -0
  100. package/lib/pose/XRPose.d.ts.map +1 -1
  101. package/lib/pose/XRPose.js +6 -0
  102. package/lib/pose/XRPose.js.map +1 -1
  103. package/lib/pose/XRViewerPose.d.ts +6 -0
  104. package/lib/pose/XRViewerPose.d.ts.map +1 -1
  105. package/lib/pose/XRViewerPose.js +6 -0
  106. package/lib/pose/XRViewerPose.js.map +1 -1
  107. package/lib/primitives/XRRigidTransform.d.ts +6 -0
  108. package/lib/primitives/XRRigidTransform.d.ts.map +1 -1
  109. package/lib/primitives/XRRigidTransform.js +6 -0
  110. package/lib/primitives/XRRigidTransform.js.map +1 -1
  111. package/lib/session/XRRenderState.d.ts +6 -0
  112. package/lib/session/XRRenderState.d.ts.map +1 -1
  113. package/lib/session/XRRenderState.js +6 -0
  114. package/lib/session/XRRenderState.js.map +1 -1
  115. package/lib/session/XRSession.d.ts +6 -0
  116. package/lib/session/XRSession.d.ts.map +1 -1
  117. package/lib/session/XRSession.js +6 -0
  118. package/lib/session/XRSession.js.map +1 -1
  119. package/lib/spaces/XRJointSpace.d.ts +6 -0
  120. package/lib/spaces/XRJointSpace.d.ts.map +1 -1
  121. package/lib/spaces/XRJointSpace.js +6 -0
  122. package/lib/spaces/XRJointSpace.js.map +1 -1
  123. package/lib/spaces/XRReferenceSpace.d.ts +6 -0
  124. package/lib/spaces/XRReferenceSpace.d.ts.map +1 -1
  125. package/lib/spaces/XRReferenceSpace.js +6 -0
  126. package/lib/spaces/XRReferenceSpace.js.map +1 -1
  127. package/lib/spaces/XRSpace.d.ts +6 -0
  128. package/lib/spaces/XRSpace.d.ts.map +1 -1
  129. package/lib/spaces/XRSpace.js +6 -0
  130. package/lib/spaces/XRSpace.js.map +1 -1
  131. package/lib/utils/DOMPointReadOnly.d.ts +6 -0
  132. package/lib/utils/DOMPointReadOnly.d.ts.map +1 -1
  133. package/lib/utils/DOMPointReadOnly.js +6 -0
  134. package/lib/utils/DOMPointReadOnly.js.map +1 -1
  135. package/lib/utils/Math.d.ts +6 -0
  136. package/lib/utils/Math.d.ts.map +1 -1
  137. package/lib/utils/Math.js +6 -0
  138. package/lib/utils/Math.js.map +1 -1
  139. package/lib/version.d.ts +1 -1
  140. package/lib/version.js +1 -1
  141. package/lib/views/XRView.d.ts +6 -0
  142. package/lib/views/XRView.d.ts.map +1 -1
  143. package/lib/views/XRView.js +6 -0
  144. package/lib/views/XRView.js.map +1 -1
  145. package/lib/views/XRViewport.d.ts +6 -0
  146. package/lib/views/XRViewport.d.ts.map +1 -1
  147. package/lib/views/XRViewport.js +6 -0
  148. package/lib/views/XRViewport.js.map +1 -1
  149. package/package.json +1 -2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # Immersive Web Emulation Runtime
2
+
3
+ The Immersive Web Emulation Runtime (IWER) is a TypeScript-based tool designed to enable the running of WebXR applications in modern browsers without requiring native WebXR support. By emulating the WebXR Device API, IWER provides developers with the ability to test and run WebXR projects across a wide range of devices, ensuring compatibility and enhancing the development process.
4
+
5
+ ## Documentation
6
+
7
+ For detailed information about using IWER, including concepts, guides, and API references, please visit our documentation site:
8
+
9
+ - [IWER Documentation](https://meta-quest.github.io/immersive-web-emulation-runtime)
10
+
11
+ ## License
12
+
13
+ IWER 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.
14
+
15
+ ## Contributing
16
+
17
+ 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).
package/build/iwer.js CHANGED
@@ -1281,6 +1281,12 @@
1281
1281
  };
1282
1282
  })();
1283
1283
 
1284
+ /**
1285
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1286
+ *
1287
+ * This source code is licensed under the MIT license found in the
1288
+ * LICENSE file in the root directory of this source tree.
1289
+ */
1284
1290
  const PRIVATE$k = Symbol('@immersive-web-emulation-runtime/xr-space');
1285
1291
  class XRSpace extends EventTarget {
1286
1292
  constructor(parentSpace, offsetMatrix) {
@@ -1325,6 +1331,12 @@
1325
1331
  }
1326
1332
  }
1327
1333
 
1334
+ /**
1335
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1336
+ *
1337
+ * This source code is licensed under the MIT license found in the
1338
+ * LICENSE file in the root directory of this source tree.
1339
+ */
1328
1340
  /**
1329
1341
  * Wrapper class for gl-matrix vec3
1330
1342
  * Minimal interoperable interface to Vector3 in Three.js and Babylon.js
@@ -1452,6 +1464,12 @@
1452
1464
  }
1453
1465
  }
1454
1466
 
1467
+ /**
1468
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1469
+ *
1470
+ * This source code is licensed under the MIT license found in the
1471
+ * LICENSE file in the root directory of this source tree.
1472
+ */
1455
1473
  const PRIVATE$j = Symbol('@immersive-web-emulation-runtime/gamepad');
1456
1474
  var GamepadMappingType;
1457
1475
  (function (GamepadMappingType) {
@@ -1578,6 +1596,12 @@
1578
1596
  }
1579
1597
  }
1580
1598
 
1599
+ /**
1600
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1601
+ *
1602
+ * This source code is licensed under the MIT license found in the
1603
+ * LICENSE file in the root directory of this source tree.
1604
+ */
1581
1605
  var XRHandedness;
1582
1606
  (function (XRHandedness) {
1583
1607
  XRHandedness["None"] = "none";
@@ -1629,6 +1653,12 @@
1629
1653
  }
1630
1654
  }
1631
1655
 
1656
+ /**
1657
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1658
+ *
1659
+ * This source code is licensed under the MIT license found in the
1660
+ * LICENSE file in the root directory of this source tree.
1661
+ */
1632
1662
  class XRInputSourceEvent extends Event {
1633
1663
  constructor(type, eventInitDict) {
1634
1664
  super(type, eventInitDict);
@@ -1643,6 +1673,12 @@
1643
1673
  }
1644
1674
  }
1645
1675
 
1676
+ /**
1677
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1678
+ *
1679
+ * This source code is licensed under the MIT license found in the
1680
+ * LICENSE file in the root directory of this source tree.
1681
+ */
1646
1682
  const PRIVATE$h = Symbol('@immersive-web-emulation-runtime/xr-tracked-input');
1647
1683
  const DEFAULT_TRANSFORM = {
1648
1684
  [XRHandedness.Left]: {
@@ -1726,6 +1762,12 @@
1726
1762
  }
1727
1763
  }
1728
1764
 
1765
+ /**
1766
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1767
+ *
1768
+ * This source code is licensed under the MIT license found in the
1769
+ * LICENSE file in the root directory of this source tree.
1770
+ */
1729
1771
  class XRController extends XRTrackedInput {
1730
1772
  constructor(controllerConfig, handedness, globalSpace) {
1731
1773
  if (!controllerConfig.layout[handedness]) {
@@ -1804,6 +1846,12 @@
1804
1846
  }
1805
1847
  }
1806
1848
 
1849
+ /**
1850
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1851
+ *
1852
+ * This source code is licensed under the MIT license found in the
1853
+ * LICENSE file in the root directory of this source tree.
1854
+ */
1807
1855
  const PRIVATE$g = Symbol('@immersive-web-emulation-runtime/xr-view');
1808
1856
  var XREye;
1809
1857
  (function (XREye) {
@@ -1843,6 +1891,12 @@
1843
1891
  }
1844
1892
  }
1845
1893
 
1894
+ /**
1895
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1896
+ *
1897
+ * This source code is licensed under the MIT license found in the
1898
+ * LICENSE file in the root directory of this source tree.
1899
+ */
1846
1900
  var XRHandJoint;
1847
1901
  (function (XRHandJoint) {
1848
1902
  XRHandJoint["Wrist"] = "wrist";
@@ -1874,6 +1928,12 @@
1874
1928
  class XRHand extends Map {
1875
1929
  }
1876
1930
 
1931
+ /**
1932
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1933
+ *
1934
+ * This source code is licensed under the MIT license found in the
1935
+ * LICENSE file in the root directory of this source tree.
1936
+ */
1877
1937
  const PRIVATE$f = Symbol('@immersive-web-emulation-runtime/xr-joint-space');
1878
1938
  class XRJointSpace extends XRSpace {
1879
1939
  constructor(jointName, parentSpace, offsetMatrix) {
@@ -1885,6 +1945,12 @@
1885
1945
  }
1886
1946
  }
1887
1947
 
1948
+ /**
1949
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1950
+ *
1951
+ * This source code is licensed under the MIT license found in the
1952
+ * LICENSE file in the root directory of this source tree.
1953
+ */
1888
1954
  const pinchHandPose = {
1889
1955
  jointTransforms: {
1890
1956
  wrist: {
@@ -2122,6 +2188,12 @@
2122
2188
  ],
2123
2189
  };
2124
2190
 
2191
+ /**
2192
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2193
+ *
2194
+ * This source code is licensed under the MIT license found in the
2195
+ * LICENSE file in the root directory of this source tree.
2196
+ */
2125
2197
  const pointHandPose = {
2126
2198
  jointTransforms: {
2127
2199
  wrist: {
@@ -2358,6 +2430,12 @@
2358
2430
  ],
2359
2431
  };
2360
2432
 
2433
+ /**
2434
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2435
+ *
2436
+ * This source code is licensed under the MIT license found in the
2437
+ * LICENSE file in the root directory of this source tree.
2438
+ */
2361
2439
  const relaxedHandPose = {
2362
2440
  jointTransforms: {
2363
2441
  wrist: {
@@ -2594,6 +2672,12 @@
2594
2672
  ],
2595
2673
  };
2596
2674
 
2675
+ /**
2676
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2677
+ *
2678
+ * This source code is licensed under the MIT license found in the
2679
+ * LICENSE file in the root directory of this source tree.
2680
+ */
2597
2681
  const oculusHandConfig = {
2598
2682
  profileId: 'oculus-hand',
2599
2683
  fallbackProfileIds: [
@@ -2717,6 +2801,12 @@
2717
2801
  }
2718
2802
  }
2719
2803
 
2804
+ /**
2805
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2806
+ *
2807
+ * This source code is licensed under the MIT license found in the
2808
+ * LICENSE file in the root directory of this source tree.
2809
+ */
2720
2810
  const PRIVATE$d = Symbol('@immersive-web-emulation-runtime/xr-pose');
2721
2811
  class XRPose {
2722
2812
  constructor(transform, emulatedPosition = false, linearVelocity = undefined, angularVelocity = undefined) {
@@ -2741,6 +2831,12 @@
2741
2831
  }
2742
2832
  }
2743
2833
 
2834
+ /**
2835
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2836
+ *
2837
+ * This source code is licensed under the MIT license found in the
2838
+ * LICENSE file in the root directory of this source tree.
2839
+ */
2744
2840
  const PRIVATE$c = Symbol('@immersive-web-emulation-runtime/xr-joint-pose');
2745
2841
  class XRJointPose extends XRPose {
2746
2842
  constructor(transform, radius, emulatedPosition = false, linearVelocity = undefined, angularVelocity = undefined) {
@@ -2752,6 +2848,12 @@
2752
2848
  }
2753
2849
  }
2754
2850
 
2851
+ /**
2852
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2853
+ *
2854
+ * This source code is licensed under the MIT license found in the
2855
+ * LICENSE file in the root directory of this source tree.
2856
+ */
2755
2857
  class PolyfillDOMPointReadOnly {
2756
2858
  constructor(x = 0, y = 0, z = 0, w = 1) {
2757
2859
  this.x = x;
@@ -2778,6 +2880,12 @@
2778
2880
  ? globalThis.DOMPointReadOnly
2779
2881
  : PolyfillDOMPointReadOnly;
2780
2882
 
2883
+ /**
2884
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2885
+ *
2886
+ * This source code is licensed under the MIT license found in the
2887
+ * LICENSE file in the root directory of this source tree.
2888
+ */
2781
2889
  const PRIVATE$b = Symbol('@immersive-web-emulation-runtime/xr-rigid-transform');
2782
2890
  class XRRigidTransform {
2783
2891
  constructor(position, orientation) {
@@ -2830,6 +2938,12 @@
2830
2938
  }
2831
2939
  }
2832
2940
 
2941
+ /**
2942
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2943
+ *
2944
+ * This source code is licensed under the MIT license found in the
2945
+ * LICENSE file in the root directory of this source tree.
2946
+ */
2833
2947
  const PRIVATE$a = Symbol('@immersive-web-emulation-runtime/xr-viewer-pose');
2834
2948
  class XRViewerPose extends XRPose {
2835
2949
  constructor(transform, views, emulatedPosition = false, linearVelocity = undefined, angularVelocity = undefined) {
@@ -2843,6 +2957,12 @@
2843
2957
  }
2844
2958
  }
2845
2959
 
2960
+ /**
2961
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2962
+ *
2963
+ * This source code is licensed under the MIT license found in the
2964
+ * LICENSE file in the root directory of this source tree.
2965
+ */
2846
2966
  const PRIVATE$9 = Symbol('@immersive-web-emulation-runtime/xr-frame');
2847
2967
  const spaceGlobalMatrix = create$3();
2848
2968
  const baseSpaceGlobalMatrix = create$3();
@@ -2951,6 +3071,12 @@
2951
3071
  }
2952
3072
  }
2953
3073
 
3074
+ /**
3075
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3076
+ *
3077
+ * This source code is licensed under the MIT license found in the
3078
+ * LICENSE file in the root directory of this source tree.
3079
+ */
2954
3080
  class XRInputSourcesChangeEvent extends Event {
2955
3081
  constructor(type, eventInitDict) {
2956
3082
  super(type, eventInitDict);
@@ -2969,6 +3095,12 @@
2969
3095
  }
2970
3096
  }
2971
3097
 
3098
+ /**
3099
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3100
+ *
3101
+ * This source code is licensed under the MIT license found in the
3102
+ * LICENSE file in the root directory of this source tree.
3103
+ */
2972
3104
  var _a;
2973
3105
  const PRIVATE$8 = Symbol('@immersive-web-emulation-runtime/xr-reference-space');
2974
3106
  var XRReferenceSpaceType;
@@ -3010,6 +3142,12 @@
3010
3142
  }
3011
3143
  _a = PRIVATE$8;
3012
3144
 
3145
+ /**
3146
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3147
+ *
3148
+ * This source code is licensed under the MIT license found in the
3149
+ * LICENSE file in the root directory of this source tree.
3150
+ */
3013
3151
  const PRIVATE$7 = Symbol('@immersive-web-emulation-runtime/xr-render-state');
3014
3152
  class XRRenderState {
3015
3153
  constructor(init = {}, oldState) {
@@ -3036,6 +3174,12 @@
3036
3174
  }
3037
3175
  }
3038
3176
 
3177
+ /**
3178
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3179
+ *
3180
+ * This source code is licensed under the MIT license found in the
3181
+ * LICENSE file in the root directory of this source tree.
3182
+ */
3039
3183
  class XRSessionEvent extends Event {
3040
3184
  constructor(type, eventInitDict) {
3041
3185
  super(type, eventInitDict);
@@ -3046,6 +3190,12 @@
3046
3190
  }
3047
3191
  }
3048
3192
 
3193
+ /**
3194
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3195
+ *
3196
+ * This source code is licensed under the MIT license found in the
3197
+ * LICENSE file in the root directory of this source tree.
3198
+ */
3049
3199
  var XRVisibilityState;
3050
3200
  (function (XRVisibilityState) {
3051
3201
  XRVisibilityState["Visible"] = "visible";
@@ -3495,6 +3645,12 @@
3495
3645
  }
3496
3646
  }
3497
3647
 
3648
+ /**
3649
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3650
+ *
3651
+ * This source code is licensed under the MIT license found in the
3652
+ * LICENSE file in the root directory of this source tree.
3653
+ */
3498
3654
  class XRLayer extends EventTarget {
3499
3655
  }
3500
3656
  const PRIVATE$5 = Symbol('@immersive-web-emulation-runtime/XRWebGLLayer');
@@ -3559,6 +3715,12 @@
3559
3715
  }
3560
3716
  }
3561
3717
 
3718
+ /**
3719
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3720
+ *
3721
+ * This source code is licensed under the MIT license found in the
3722
+ * LICENSE file in the root directory of this source tree.
3723
+ */
3562
3724
  const PRIVATE$4 = Symbol('@immersive-web-emulation-runtime/action-player');
3563
3725
  class ActionPlayer {
3564
3726
  constructor(refSpace, recording, ipd) {
@@ -3749,8 +3911,14 @@
3749
3911
  }
3750
3912
  }
3751
3913
 
3752
- const VERSION = "0.0.2";
3914
+ const VERSION = "1.0.0";
3753
3915
 
3916
+ /**
3917
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3918
+ *
3919
+ * This source code is licensed under the MIT license found in the
3920
+ * LICENSE file in the root directory of this source tree.
3921
+ */
3754
3922
  class XRReferenceSpaceEvent extends Event {
3755
3923
  constructor(type, eventInitDict) {
3756
3924
  super(type, eventInitDict);
@@ -3762,6 +3930,12 @@
3762
3930
  }
3763
3931
  }
3764
3932
 
3933
+ /**
3934
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3935
+ *
3936
+ * This source code is licensed under the MIT license found in the
3937
+ * LICENSE file in the root directory of this source tree.
3938
+ */
3765
3939
  const PRIVATE$3 = Symbol('@immersive-web-emulation-runtime/xr-system');
3766
3940
  class XRSystem extends EventTarget {
3767
3941
  constructor(device) {
@@ -3825,6 +3999,12 @@
3825
3999
  }
3826
4000
  }
3827
4001
 
4002
+ /**
4003
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
4004
+ *
4005
+ * This source code is licensed under the MIT license found in the
4006
+ * LICENSE file in the root directory of this source tree.
4007
+ */
3828
4008
  const PRIVATE$2 = Symbol('@immersive-web-emulation-runtime/xr-viewport');
3829
4009
  class XRViewport {
3830
4010
  constructor(x, y, width, height) {
@@ -3844,6 +4024,12 @@
3844
4024
  }
3845
4025
  }
3846
4026
 
4027
+ /**
4028
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
4029
+ *
4030
+ * This source code is licensed under the MIT license found in the
4031
+ * LICENSE file in the root directory of this source tree.
4032
+ */
3847
4033
  var WebXRFeatures;
3848
4034
  (function (WebXRFeatures) {
3849
4035
  WebXRFeatures["Viewer"] = "viewer";
@@ -4187,7 +4373,12 @@
4187
4373
  }
4188
4374
  }
4189
4375
 
4190
- // value pulled from https://felixtrz.github.io/webxr-device-config/
4376
+ /**
4377
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
4378
+ *
4379
+ * This source code is licensed under the MIT license found in the
4380
+ * LICENSE file in the root directory of this source tree.
4381
+ */
4191
4382
  const gamepadConfigLeft = {
4192
4383
  mapping: GamepadMappingType.XRStandard,
4193
4384
  buttons: [
@@ -4337,6 +4528,12 @@
4337
4528
  },
4338
4529
  };
4339
4530
 
4531
+ /**
4532
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
4533
+ *
4534
+ * This source code is licensed under the MIT license found in the
4535
+ * LICENSE file in the root directory of this source tree.
4536
+ */
4340
4537
  const oculusQuest1 = {
4341
4538
  name: 'Oculus Quest 1',
4342
4539
  controllerConfig: oculusTouchV2,
@@ -4433,6 +4630,12 @@
4433
4630
  internalNominalFrameRate: 90,
4434
4631
  };
4435
4632
 
4633
+ /**
4634
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
4635
+ *
4636
+ * This source code is licensed under the MIT license found in the
4637
+ * LICENSE file in the root directory of this source tree.
4638
+ */
4436
4639
  const PRIVATE = Symbol('@immersive-web-emulation-runtime/action-recorder');
4437
4640
  const compress = (arr) => {
4438
4641
  const out = [];