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.
- package/LICENSE +21 -0
- package/README.md +17 -0
- package/build/iwer.js +205 -2
- package/build/iwer.min.js +1 -1
- package/build/iwer.module.js +205 -2
- package/build/iwer.module.min.js +1 -1
- package/lib/action/ActionPlayer.d.ts +6 -0
- package/lib/action/ActionPlayer.d.ts.map +1 -1
- package/lib/action/ActionPlayer.js +6 -0
- package/lib/action/ActionPlayer.js.map +1 -1
- package/lib/action/ActionRecorder.d.ts +6 -0
- package/lib/action/ActionRecorder.d.ts.map +1 -1
- package/lib/action/ActionRecorder.js +6 -0
- package/lib/action/ActionRecorder.js.map +1 -1
- package/lib/device/XRController.d.ts +6 -0
- package/lib/device/XRController.d.ts.map +1 -1
- package/lib/device/XRController.js +6 -0
- package/lib/device/XRController.js.map +1 -1
- package/lib/device/XRDevice.d.ts +6 -0
- package/lib/device/XRDevice.d.ts.map +1 -1
- package/lib/device/XRDevice.js +6 -0
- package/lib/device/XRDevice.js.map +1 -1
- package/lib/device/XRHandInput.d.ts +6 -0
- package/lib/device/XRHandInput.d.ts.map +1 -1
- package/lib/device/XRHandInput.js +6 -0
- package/lib/device/XRHandInput.js.map +1 -1
- package/lib/device/XRTrackedInput.d.ts +6 -0
- package/lib/device/XRTrackedInput.d.ts.map +1 -1
- package/lib/device/XRTrackedInput.js +6 -0
- package/lib/device/XRTrackedInput.js.map +1 -1
- package/lib/device/configs/controller/meta.d.ts +6 -0
- package/lib/device/configs/controller/meta.d.ts.map +1 -1
- package/lib/device/configs/controller/meta.js +6 -0
- package/lib/device/configs/controller/meta.js.map +1 -1
- package/lib/device/configs/hand/pinch.d.ts +6 -0
- package/lib/device/configs/hand/pinch.d.ts.map +1 -1
- package/lib/device/configs/hand/pinch.js +6 -0
- package/lib/device/configs/hand/pinch.js.map +1 -1
- package/lib/device/configs/hand/point.d.ts +6 -0
- package/lib/device/configs/hand/point.d.ts.map +1 -1
- package/lib/device/configs/hand/point.js +6 -0
- package/lib/device/configs/hand/point.js.map +1 -1
- package/lib/device/configs/hand/relaxed.d.ts +6 -0
- package/lib/device/configs/hand/relaxed.d.ts.map +1 -1
- package/lib/device/configs/hand/relaxed.js +6 -0
- package/lib/device/configs/hand/relaxed.js.map +1 -1
- package/lib/device/configs/headset/meta.d.ts +6 -0
- package/lib/device/configs/headset/meta.d.ts.map +1 -1
- package/lib/device/configs/headset/meta.js +6 -0
- package/lib/device/configs/headset/meta.js.map +1 -1
- package/lib/events/XRInputSourceEvent.d.ts +6 -0
- package/lib/events/XRInputSourceEvent.d.ts.map +1 -1
- package/lib/events/XRInputSourceEvent.js +6 -0
- package/lib/events/XRInputSourceEvent.js.map +1 -1
- package/lib/events/XRInputSourcesChangeEvent.d.ts +6 -0
- package/lib/events/XRInputSourcesChangeEvent.d.ts.map +1 -1
- package/lib/events/XRInputSourcesChangeEvent.js +6 -0
- package/lib/events/XRInputSourcesChangeEvent.js.map +1 -1
- package/lib/events/XRReferenceSpaceEvent.d.ts +6 -0
- package/lib/events/XRReferenceSpaceEvent.d.ts.map +1 -1
- package/lib/events/XRReferenceSpaceEvent.js +6 -0
- package/lib/events/XRReferenceSpaceEvent.js.map +1 -1
- package/lib/events/XRSessionEvent.d.ts +6 -0
- package/lib/events/XRSessionEvent.d.ts.map +1 -1
- package/lib/events/XRSessionEvent.js +6 -0
- package/lib/events/XRSessionEvent.js.map +1 -1
- package/lib/frameloop/XRFrame.d.ts +6 -0
- package/lib/frameloop/XRFrame.d.ts.map +1 -1
- package/lib/frameloop/XRFrame.js +6 -0
- package/lib/frameloop/XRFrame.js.map +1 -1
- package/lib/gamepad/Gamepad.d.ts +6 -0
- package/lib/gamepad/Gamepad.d.ts.map +1 -1
- package/lib/gamepad/Gamepad.js +6 -0
- package/lib/gamepad/Gamepad.js.map +1 -1
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/lib/initialization/XRSystem.d.ts +6 -0
- package/lib/initialization/XRSystem.d.ts.map +1 -1
- package/lib/initialization/XRSystem.js +6 -0
- package/lib/initialization/XRSystem.js.map +1 -1
- package/lib/input/XRHand.d.ts +6 -0
- package/lib/input/XRHand.d.ts.map +1 -1
- package/lib/input/XRHand.js +6 -0
- package/lib/input/XRHand.js.map +1 -1
- package/lib/input/XRInputSource.d.ts +6 -0
- package/lib/input/XRInputSource.d.ts.map +1 -1
- package/lib/input/XRInputSource.js +6 -0
- package/lib/input/XRInputSource.js.map +1 -1
- package/lib/layers/XRWebGLLayer.d.ts +6 -0
- package/lib/layers/XRWebGLLayer.d.ts.map +1 -1
- package/lib/layers/XRWebGLLayer.js +6 -0
- package/lib/layers/XRWebGLLayer.js.map +1 -1
- package/lib/pose/XRJointPose.d.ts +6 -0
- package/lib/pose/XRJointPose.d.ts.map +1 -1
- package/lib/pose/XRJointPose.js +6 -0
- package/lib/pose/XRJointPose.js.map +1 -1
- package/lib/pose/XRPose.d.ts +6 -0
- package/lib/pose/XRPose.d.ts.map +1 -1
- package/lib/pose/XRPose.js +6 -0
- package/lib/pose/XRPose.js.map +1 -1
- package/lib/pose/XRViewerPose.d.ts +6 -0
- package/lib/pose/XRViewerPose.d.ts.map +1 -1
- package/lib/pose/XRViewerPose.js +6 -0
- package/lib/pose/XRViewerPose.js.map +1 -1
- package/lib/primitives/XRRigidTransform.d.ts +6 -0
- package/lib/primitives/XRRigidTransform.d.ts.map +1 -1
- package/lib/primitives/XRRigidTransform.js +6 -0
- package/lib/primitives/XRRigidTransform.js.map +1 -1
- package/lib/session/XRRenderState.d.ts +6 -0
- package/lib/session/XRRenderState.d.ts.map +1 -1
- package/lib/session/XRRenderState.js +6 -0
- package/lib/session/XRRenderState.js.map +1 -1
- package/lib/session/XRSession.d.ts +6 -0
- package/lib/session/XRSession.d.ts.map +1 -1
- package/lib/session/XRSession.js +6 -0
- package/lib/session/XRSession.js.map +1 -1
- package/lib/spaces/XRJointSpace.d.ts +6 -0
- package/lib/spaces/XRJointSpace.d.ts.map +1 -1
- package/lib/spaces/XRJointSpace.js +6 -0
- package/lib/spaces/XRJointSpace.js.map +1 -1
- package/lib/spaces/XRReferenceSpace.d.ts +6 -0
- package/lib/spaces/XRReferenceSpace.d.ts.map +1 -1
- package/lib/spaces/XRReferenceSpace.js +6 -0
- package/lib/spaces/XRReferenceSpace.js.map +1 -1
- package/lib/spaces/XRSpace.d.ts +6 -0
- package/lib/spaces/XRSpace.d.ts.map +1 -1
- package/lib/spaces/XRSpace.js +6 -0
- package/lib/spaces/XRSpace.js.map +1 -1
- package/lib/utils/DOMPointReadOnly.d.ts +6 -0
- package/lib/utils/DOMPointReadOnly.d.ts.map +1 -1
- package/lib/utils/DOMPointReadOnly.js +6 -0
- package/lib/utils/DOMPointReadOnly.js.map +1 -1
- package/lib/utils/Math.d.ts +6 -0
- package/lib/utils/Math.d.ts.map +1 -1
- package/lib/utils/Math.js +6 -0
- package/lib/utils/Math.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/views/XRView.d.ts +6 -0
- package/lib/views/XRView.d.ts.map +1 -1
- package/lib/views/XRView.js +6 -0
- package/lib/views/XRView.js.map +1 -1
- package/lib/views/XRViewport.d.ts +6 -0
- package/lib/views/XRViewport.d.ts.map +1 -1
- package/lib/views/XRViewport.js +6 -0
- package/lib/views/XRViewport.js.map +1 -1
- package/package.json +1 -2
package/build/iwer.module.js
CHANGED
|
@@ -1275,6 +1275,12 @@ var normalize = normalize$1;
|
|
|
1275
1275
|
};
|
|
1276
1276
|
})();
|
|
1277
1277
|
|
|
1278
|
+
/**
|
|
1279
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1280
|
+
*
|
|
1281
|
+
* This source code is licensed under the MIT license found in the
|
|
1282
|
+
* LICENSE file in the root directory of this source tree.
|
|
1283
|
+
*/
|
|
1278
1284
|
const PRIVATE$k = Symbol('@immersive-web-emulation-runtime/xr-space');
|
|
1279
1285
|
class XRSpace extends EventTarget {
|
|
1280
1286
|
constructor(parentSpace, offsetMatrix) {
|
|
@@ -1319,6 +1325,12 @@ class XRSpaceUtils {
|
|
|
1319
1325
|
}
|
|
1320
1326
|
}
|
|
1321
1327
|
|
|
1328
|
+
/**
|
|
1329
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1330
|
+
*
|
|
1331
|
+
* This source code is licensed under the MIT license found in the
|
|
1332
|
+
* LICENSE file in the root directory of this source tree.
|
|
1333
|
+
*/
|
|
1322
1334
|
/**
|
|
1323
1335
|
* Wrapper class for gl-matrix vec3
|
|
1324
1336
|
* Minimal interoperable interface to Vector3 in Three.js and Babylon.js
|
|
@@ -1446,6 +1458,12 @@ class Quaternion {
|
|
|
1446
1458
|
}
|
|
1447
1459
|
}
|
|
1448
1460
|
|
|
1461
|
+
/**
|
|
1462
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1463
|
+
*
|
|
1464
|
+
* This source code is licensed under the MIT license found in the
|
|
1465
|
+
* LICENSE file in the root directory of this source tree.
|
|
1466
|
+
*/
|
|
1449
1467
|
const PRIVATE$j = Symbol('@immersive-web-emulation-runtime/gamepad');
|
|
1450
1468
|
var GamepadMappingType;
|
|
1451
1469
|
(function (GamepadMappingType) {
|
|
@@ -1572,6 +1590,12 @@ class Gamepad {
|
|
|
1572
1590
|
}
|
|
1573
1591
|
}
|
|
1574
1592
|
|
|
1593
|
+
/**
|
|
1594
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1595
|
+
*
|
|
1596
|
+
* This source code is licensed under the MIT license found in the
|
|
1597
|
+
* LICENSE file in the root directory of this source tree.
|
|
1598
|
+
*/
|
|
1575
1599
|
var XRHandedness;
|
|
1576
1600
|
(function (XRHandedness) {
|
|
1577
1601
|
XRHandedness["None"] = "none";
|
|
@@ -1623,6 +1647,12 @@ class XRInputSource {
|
|
|
1623
1647
|
}
|
|
1624
1648
|
}
|
|
1625
1649
|
|
|
1650
|
+
/**
|
|
1651
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1652
|
+
*
|
|
1653
|
+
* This source code is licensed under the MIT license found in the
|
|
1654
|
+
* LICENSE file in the root directory of this source tree.
|
|
1655
|
+
*/
|
|
1626
1656
|
class XRInputSourceEvent extends Event {
|
|
1627
1657
|
constructor(type, eventInitDict) {
|
|
1628
1658
|
super(type, eventInitDict);
|
|
@@ -1637,6 +1667,12 @@ class XRInputSourceEvent extends Event {
|
|
|
1637
1667
|
}
|
|
1638
1668
|
}
|
|
1639
1669
|
|
|
1670
|
+
/**
|
|
1671
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1672
|
+
*
|
|
1673
|
+
* This source code is licensed under the MIT license found in the
|
|
1674
|
+
* LICENSE file in the root directory of this source tree.
|
|
1675
|
+
*/
|
|
1640
1676
|
const PRIVATE$h = Symbol('@immersive-web-emulation-runtime/xr-tracked-input');
|
|
1641
1677
|
const DEFAULT_TRANSFORM = {
|
|
1642
1678
|
[XRHandedness.Left]: {
|
|
@@ -1720,6 +1756,12 @@ class XRTrackedInput {
|
|
|
1720
1756
|
}
|
|
1721
1757
|
}
|
|
1722
1758
|
|
|
1759
|
+
/**
|
|
1760
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1761
|
+
*
|
|
1762
|
+
* This source code is licensed under the MIT license found in the
|
|
1763
|
+
* LICENSE file in the root directory of this source tree.
|
|
1764
|
+
*/
|
|
1723
1765
|
class XRController extends XRTrackedInput {
|
|
1724
1766
|
constructor(controllerConfig, handedness, globalSpace) {
|
|
1725
1767
|
if (!controllerConfig.layout[handedness]) {
|
|
@@ -1798,6 +1840,12 @@ class XRController extends XRTrackedInput {
|
|
|
1798
1840
|
}
|
|
1799
1841
|
}
|
|
1800
1842
|
|
|
1843
|
+
/**
|
|
1844
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1845
|
+
*
|
|
1846
|
+
* This source code is licensed under the MIT license found in the
|
|
1847
|
+
* LICENSE file in the root directory of this source tree.
|
|
1848
|
+
*/
|
|
1801
1849
|
const PRIVATE$g = Symbol('@immersive-web-emulation-runtime/xr-view');
|
|
1802
1850
|
var XREye;
|
|
1803
1851
|
(function (XREye) {
|
|
@@ -1837,6 +1885,12 @@ class XRView {
|
|
|
1837
1885
|
}
|
|
1838
1886
|
}
|
|
1839
1887
|
|
|
1888
|
+
/**
|
|
1889
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1890
|
+
*
|
|
1891
|
+
* This source code is licensed under the MIT license found in the
|
|
1892
|
+
* LICENSE file in the root directory of this source tree.
|
|
1893
|
+
*/
|
|
1840
1894
|
var XRHandJoint;
|
|
1841
1895
|
(function (XRHandJoint) {
|
|
1842
1896
|
XRHandJoint["Wrist"] = "wrist";
|
|
@@ -1868,6 +1922,12 @@ var XRHandJoint;
|
|
|
1868
1922
|
class XRHand extends Map {
|
|
1869
1923
|
}
|
|
1870
1924
|
|
|
1925
|
+
/**
|
|
1926
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1927
|
+
*
|
|
1928
|
+
* This source code is licensed under the MIT license found in the
|
|
1929
|
+
* LICENSE file in the root directory of this source tree.
|
|
1930
|
+
*/
|
|
1871
1931
|
const PRIVATE$f = Symbol('@immersive-web-emulation-runtime/xr-joint-space');
|
|
1872
1932
|
class XRJointSpace extends XRSpace {
|
|
1873
1933
|
constructor(jointName, parentSpace, offsetMatrix) {
|
|
@@ -1879,6 +1939,12 @@ class XRJointSpace extends XRSpace {
|
|
|
1879
1939
|
}
|
|
1880
1940
|
}
|
|
1881
1941
|
|
|
1942
|
+
/**
|
|
1943
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1944
|
+
*
|
|
1945
|
+
* This source code is licensed under the MIT license found in the
|
|
1946
|
+
* LICENSE file in the root directory of this source tree.
|
|
1947
|
+
*/
|
|
1882
1948
|
const pinchHandPose = {
|
|
1883
1949
|
jointTransforms: {
|
|
1884
1950
|
wrist: {
|
|
@@ -2116,6 +2182,12 @@ const pinchHandPose = {
|
|
|
2116
2182
|
],
|
|
2117
2183
|
};
|
|
2118
2184
|
|
|
2185
|
+
/**
|
|
2186
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2187
|
+
*
|
|
2188
|
+
* This source code is licensed under the MIT license found in the
|
|
2189
|
+
* LICENSE file in the root directory of this source tree.
|
|
2190
|
+
*/
|
|
2119
2191
|
const pointHandPose = {
|
|
2120
2192
|
jointTransforms: {
|
|
2121
2193
|
wrist: {
|
|
@@ -2352,6 +2424,12 @@ const pointHandPose = {
|
|
|
2352
2424
|
],
|
|
2353
2425
|
};
|
|
2354
2426
|
|
|
2427
|
+
/**
|
|
2428
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2429
|
+
*
|
|
2430
|
+
* This source code is licensed under the MIT license found in the
|
|
2431
|
+
* LICENSE file in the root directory of this source tree.
|
|
2432
|
+
*/
|
|
2355
2433
|
const relaxedHandPose = {
|
|
2356
2434
|
jointTransforms: {
|
|
2357
2435
|
wrist: {
|
|
@@ -2588,6 +2666,12 @@ const relaxedHandPose = {
|
|
|
2588
2666
|
],
|
|
2589
2667
|
};
|
|
2590
2668
|
|
|
2669
|
+
/**
|
|
2670
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2671
|
+
*
|
|
2672
|
+
* This source code is licensed under the MIT license found in the
|
|
2673
|
+
* LICENSE file in the root directory of this source tree.
|
|
2674
|
+
*/
|
|
2591
2675
|
const oculusHandConfig = {
|
|
2592
2676
|
profileId: 'oculus-hand',
|
|
2593
2677
|
fallbackProfileIds: [
|
|
@@ -2711,6 +2795,12 @@ class XRHandInput extends XRTrackedInput {
|
|
|
2711
2795
|
}
|
|
2712
2796
|
}
|
|
2713
2797
|
|
|
2798
|
+
/**
|
|
2799
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2800
|
+
*
|
|
2801
|
+
* This source code is licensed under the MIT license found in the
|
|
2802
|
+
* LICENSE file in the root directory of this source tree.
|
|
2803
|
+
*/
|
|
2714
2804
|
const PRIVATE$d = Symbol('@immersive-web-emulation-runtime/xr-pose');
|
|
2715
2805
|
class XRPose {
|
|
2716
2806
|
constructor(transform, emulatedPosition = false, linearVelocity = undefined, angularVelocity = undefined) {
|
|
@@ -2735,6 +2825,12 @@ class XRPose {
|
|
|
2735
2825
|
}
|
|
2736
2826
|
}
|
|
2737
2827
|
|
|
2828
|
+
/**
|
|
2829
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2830
|
+
*
|
|
2831
|
+
* This source code is licensed under the MIT license found in the
|
|
2832
|
+
* LICENSE file in the root directory of this source tree.
|
|
2833
|
+
*/
|
|
2738
2834
|
const PRIVATE$c = Symbol('@immersive-web-emulation-runtime/xr-joint-pose');
|
|
2739
2835
|
class XRJointPose extends XRPose {
|
|
2740
2836
|
constructor(transform, radius, emulatedPosition = false, linearVelocity = undefined, angularVelocity = undefined) {
|
|
@@ -2746,6 +2842,12 @@ class XRJointPose extends XRPose {
|
|
|
2746
2842
|
}
|
|
2747
2843
|
}
|
|
2748
2844
|
|
|
2845
|
+
/**
|
|
2846
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2847
|
+
*
|
|
2848
|
+
* This source code is licensed under the MIT license found in the
|
|
2849
|
+
* LICENSE file in the root directory of this source tree.
|
|
2850
|
+
*/
|
|
2749
2851
|
class PolyfillDOMPointReadOnly {
|
|
2750
2852
|
constructor(x = 0, y = 0, z = 0, w = 1) {
|
|
2751
2853
|
this.x = x;
|
|
@@ -2772,6 +2874,12 @@ const DOMPointReadOnly = typeof globalThis.DOMPointReadOnly !== 'undefined'
|
|
|
2772
2874
|
? globalThis.DOMPointReadOnly
|
|
2773
2875
|
: PolyfillDOMPointReadOnly;
|
|
2774
2876
|
|
|
2877
|
+
/**
|
|
2878
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2879
|
+
*
|
|
2880
|
+
* This source code is licensed under the MIT license found in the
|
|
2881
|
+
* LICENSE file in the root directory of this source tree.
|
|
2882
|
+
*/
|
|
2775
2883
|
const PRIVATE$b = Symbol('@immersive-web-emulation-runtime/xr-rigid-transform');
|
|
2776
2884
|
class XRRigidTransform {
|
|
2777
2885
|
constructor(position, orientation) {
|
|
@@ -2824,6 +2932,12 @@ class XRRigidTransform {
|
|
|
2824
2932
|
}
|
|
2825
2933
|
}
|
|
2826
2934
|
|
|
2935
|
+
/**
|
|
2936
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2937
|
+
*
|
|
2938
|
+
* This source code is licensed under the MIT license found in the
|
|
2939
|
+
* LICENSE file in the root directory of this source tree.
|
|
2940
|
+
*/
|
|
2827
2941
|
const PRIVATE$a = Symbol('@immersive-web-emulation-runtime/xr-viewer-pose');
|
|
2828
2942
|
class XRViewerPose extends XRPose {
|
|
2829
2943
|
constructor(transform, views, emulatedPosition = false, linearVelocity = undefined, angularVelocity = undefined) {
|
|
@@ -2837,6 +2951,12 @@ class XRViewerPose extends XRPose {
|
|
|
2837
2951
|
}
|
|
2838
2952
|
}
|
|
2839
2953
|
|
|
2954
|
+
/**
|
|
2955
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2956
|
+
*
|
|
2957
|
+
* This source code is licensed under the MIT license found in the
|
|
2958
|
+
* LICENSE file in the root directory of this source tree.
|
|
2959
|
+
*/
|
|
2840
2960
|
const PRIVATE$9 = Symbol('@immersive-web-emulation-runtime/xr-frame');
|
|
2841
2961
|
const spaceGlobalMatrix = create$3();
|
|
2842
2962
|
const baseSpaceGlobalMatrix = create$3();
|
|
@@ -2945,6 +3065,12 @@ class XRFrame {
|
|
|
2945
3065
|
}
|
|
2946
3066
|
}
|
|
2947
3067
|
|
|
3068
|
+
/**
|
|
3069
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3070
|
+
*
|
|
3071
|
+
* This source code is licensed under the MIT license found in the
|
|
3072
|
+
* LICENSE file in the root directory of this source tree.
|
|
3073
|
+
*/
|
|
2948
3074
|
class XRInputSourcesChangeEvent extends Event {
|
|
2949
3075
|
constructor(type, eventInitDict) {
|
|
2950
3076
|
super(type, eventInitDict);
|
|
@@ -2963,6 +3089,12 @@ class XRInputSourcesChangeEvent extends Event {
|
|
|
2963
3089
|
}
|
|
2964
3090
|
}
|
|
2965
3091
|
|
|
3092
|
+
/**
|
|
3093
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3094
|
+
*
|
|
3095
|
+
* This source code is licensed under the MIT license found in the
|
|
3096
|
+
* LICENSE file in the root directory of this source tree.
|
|
3097
|
+
*/
|
|
2966
3098
|
var _a;
|
|
2967
3099
|
const PRIVATE$8 = Symbol('@immersive-web-emulation-runtime/xr-reference-space');
|
|
2968
3100
|
var XRReferenceSpaceType;
|
|
@@ -3004,6 +3136,12 @@ class XRReferenceSpace extends XRSpace {
|
|
|
3004
3136
|
}
|
|
3005
3137
|
_a = PRIVATE$8;
|
|
3006
3138
|
|
|
3139
|
+
/**
|
|
3140
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3141
|
+
*
|
|
3142
|
+
* This source code is licensed under the MIT license found in the
|
|
3143
|
+
* LICENSE file in the root directory of this source tree.
|
|
3144
|
+
*/
|
|
3007
3145
|
const PRIVATE$7 = Symbol('@immersive-web-emulation-runtime/xr-render-state');
|
|
3008
3146
|
class XRRenderState {
|
|
3009
3147
|
constructor(init = {}, oldState) {
|
|
@@ -3030,6 +3168,12 @@ class XRRenderState {
|
|
|
3030
3168
|
}
|
|
3031
3169
|
}
|
|
3032
3170
|
|
|
3171
|
+
/**
|
|
3172
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3173
|
+
*
|
|
3174
|
+
* This source code is licensed under the MIT license found in the
|
|
3175
|
+
* LICENSE file in the root directory of this source tree.
|
|
3176
|
+
*/
|
|
3033
3177
|
class XRSessionEvent extends Event {
|
|
3034
3178
|
constructor(type, eventInitDict) {
|
|
3035
3179
|
super(type, eventInitDict);
|
|
@@ -3040,6 +3184,12 @@ class XRSessionEvent extends Event {
|
|
|
3040
3184
|
}
|
|
3041
3185
|
}
|
|
3042
3186
|
|
|
3187
|
+
/**
|
|
3188
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3189
|
+
*
|
|
3190
|
+
* This source code is licensed under the MIT license found in the
|
|
3191
|
+
* LICENSE file in the root directory of this source tree.
|
|
3192
|
+
*/
|
|
3043
3193
|
var XRVisibilityState;
|
|
3044
3194
|
(function (XRVisibilityState) {
|
|
3045
3195
|
XRVisibilityState["Visible"] = "visible";
|
|
@@ -3489,6 +3639,12 @@ class XRSession extends EventTarget {
|
|
|
3489
3639
|
}
|
|
3490
3640
|
}
|
|
3491
3641
|
|
|
3642
|
+
/**
|
|
3643
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3644
|
+
*
|
|
3645
|
+
* This source code is licensed under the MIT license found in the
|
|
3646
|
+
* LICENSE file in the root directory of this source tree.
|
|
3647
|
+
*/
|
|
3492
3648
|
class XRLayer extends EventTarget {
|
|
3493
3649
|
}
|
|
3494
3650
|
const PRIVATE$5 = Symbol('@immersive-web-emulation-runtime/XRWebGLLayer');
|
|
@@ -3553,6 +3709,12 @@ class XRWebGLLayer extends XRLayer {
|
|
|
3553
3709
|
}
|
|
3554
3710
|
}
|
|
3555
3711
|
|
|
3712
|
+
/**
|
|
3713
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3714
|
+
*
|
|
3715
|
+
* This source code is licensed under the MIT license found in the
|
|
3716
|
+
* LICENSE file in the root directory of this source tree.
|
|
3717
|
+
*/
|
|
3556
3718
|
const PRIVATE$4 = Symbol('@immersive-web-emulation-runtime/action-player');
|
|
3557
3719
|
class ActionPlayer {
|
|
3558
3720
|
constructor(refSpace, recording, ipd) {
|
|
@@ -3743,8 +3905,14 @@ class ActionPlayer {
|
|
|
3743
3905
|
}
|
|
3744
3906
|
}
|
|
3745
3907
|
|
|
3746
|
-
const VERSION = "0.0
|
|
3908
|
+
const VERSION = "1.0.0";
|
|
3747
3909
|
|
|
3910
|
+
/**
|
|
3911
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3912
|
+
*
|
|
3913
|
+
* This source code is licensed under the MIT license found in the
|
|
3914
|
+
* LICENSE file in the root directory of this source tree.
|
|
3915
|
+
*/
|
|
3748
3916
|
class XRReferenceSpaceEvent extends Event {
|
|
3749
3917
|
constructor(type, eventInitDict) {
|
|
3750
3918
|
super(type, eventInitDict);
|
|
@@ -3756,6 +3924,12 @@ class XRReferenceSpaceEvent extends Event {
|
|
|
3756
3924
|
}
|
|
3757
3925
|
}
|
|
3758
3926
|
|
|
3927
|
+
/**
|
|
3928
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3929
|
+
*
|
|
3930
|
+
* This source code is licensed under the MIT license found in the
|
|
3931
|
+
* LICENSE file in the root directory of this source tree.
|
|
3932
|
+
*/
|
|
3759
3933
|
const PRIVATE$3 = Symbol('@immersive-web-emulation-runtime/xr-system');
|
|
3760
3934
|
class XRSystem extends EventTarget {
|
|
3761
3935
|
constructor(device) {
|
|
@@ -3819,6 +3993,12 @@ class XRSystem extends EventTarget {
|
|
|
3819
3993
|
}
|
|
3820
3994
|
}
|
|
3821
3995
|
|
|
3996
|
+
/**
|
|
3997
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3998
|
+
*
|
|
3999
|
+
* This source code is licensed under the MIT license found in the
|
|
4000
|
+
* LICENSE file in the root directory of this source tree.
|
|
4001
|
+
*/
|
|
3822
4002
|
const PRIVATE$2 = Symbol('@immersive-web-emulation-runtime/xr-viewport');
|
|
3823
4003
|
class XRViewport {
|
|
3824
4004
|
constructor(x, y, width, height) {
|
|
@@ -3838,6 +4018,12 @@ class XRViewport {
|
|
|
3838
4018
|
}
|
|
3839
4019
|
}
|
|
3840
4020
|
|
|
4021
|
+
/**
|
|
4022
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4023
|
+
*
|
|
4024
|
+
* This source code is licensed under the MIT license found in the
|
|
4025
|
+
* LICENSE file in the root directory of this source tree.
|
|
4026
|
+
*/
|
|
3841
4027
|
var WebXRFeatures;
|
|
3842
4028
|
(function (WebXRFeatures) {
|
|
3843
4029
|
WebXRFeatures["Viewer"] = "viewer";
|
|
@@ -4181,7 +4367,12 @@ class XRDevice {
|
|
|
4181
4367
|
}
|
|
4182
4368
|
}
|
|
4183
4369
|
|
|
4184
|
-
|
|
4370
|
+
/**
|
|
4371
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4372
|
+
*
|
|
4373
|
+
* This source code is licensed under the MIT license found in the
|
|
4374
|
+
* LICENSE file in the root directory of this source tree.
|
|
4375
|
+
*/
|
|
4185
4376
|
const gamepadConfigLeft = {
|
|
4186
4377
|
mapping: GamepadMappingType.XRStandard,
|
|
4187
4378
|
buttons: [
|
|
@@ -4331,6 +4522,12 @@ const metaQuestTouchPlus = {
|
|
|
4331
4522
|
},
|
|
4332
4523
|
};
|
|
4333
4524
|
|
|
4525
|
+
/**
|
|
4526
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4527
|
+
*
|
|
4528
|
+
* This source code is licensed under the MIT license found in the
|
|
4529
|
+
* LICENSE file in the root directory of this source tree.
|
|
4530
|
+
*/
|
|
4334
4531
|
const oculusQuest1 = {
|
|
4335
4532
|
name: 'Oculus Quest 1',
|
|
4336
4533
|
controllerConfig: oculusTouchV2,
|
|
@@ -4427,6 +4624,12 @@ const metaQuest3 = {
|
|
|
4427
4624
|
internalNominalFrameRate: 90,
|
|
4428
4625
|
};
|
|
4429
4626
|
|
|
4627
|
+
/**
|
|
4628
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4629
|
+
*
|
|
4630
|
+
* This source code is licensed under the MIT license found in the
|
|
4631
|
+
* LICENSE file in the root directory of this source tree.
|
|
4632
|
+
*/
|
|
4430
4633
|
const PRIVATE = Symbol('@immersive-web-emulation-runtime/action-recorder');
|
|
4431
4634
|
const compress = (arr) => {
|
|
4432
4635
|
const out = [];
|