@galacean/engine-xr 1.3.23 → 1.4.0-alpha.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/dist/module.js CHANGED
@@ -1,17 +1,18 @@
1
1
  import { CameraType, Matrix, CameraClearFlags, Vector3, Quaternion, Rect, SafeLoopArray, XRManager, Ray, Plane, Vector2, decoder, resourceLoader, AssetPromise, decode, Loader } from '@galacean/engine';
2
2
 
3
3
  function _is_native_reflect_construct() {
4
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
5
- if (Reflect.construct.sham) return false;
6
- if (typeof Proxy === "function") return true;
7
-
4
+ // Since Reflect.construct can't be properly polyfilled, some
5
+ // implementations (e.g. core-js@2) don't set the correct internal slots.
6
+ // Those polyfills don't allow us to subclass built-ins, so we need to
7
+ // use our fallback implementation.
8
8
  try {
9
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
10
-
11
- return true;
12
- } catch (e) {
13
- return false;
14
- }
9
+ // If the internal slots aren't set, this throws an error similar to
10
+ // TypeError: this is not a Boolean object.
11
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
12
+ } catch (_) {}
13
+ return (_is_native_reflect_construct = function() {
14
+ return !!result;
15
+ })();
15
16
  }
16
17
 
17
18
  function _set_prototype_of(o, p) {
@@ -78,28 +79,28 @@ function _instanceof(left, right) {
78
79
 
79
80
  /**
80
81
  * Enumerates some input devices that can be tracked.(including status, posture and other information)
81
- */ var XRTrackedInputDevice;
82
- (function(XRTrackedInputDevice) {
83
- XRTrackedInputDevice[XRTrackedInputDevice[/** Controller */ "Controller"] = 0] = "Controller";
84
- XRTrackedInputDevice[XRTrackedInputDevice[/** Left controller */ "LeftController"] = 1] = "LeftController";
85
- XRTrackedInputDevice[XRTrackedInputDevice[/** Right controller */ "RightController"] = 2] = "RightController";
86
- XRTrackedInputDevice[XRTrackedInputDevice[/** Camera */ "Camera"] = 3] = "Camera";
87
- XRTrackedInputDevice[XRTrackedInputDevice[/** Left camera */ "LeftCamera"] = 4] = "LeftCamera";
88
- XRTrackedInputDevice[XRTrackedInputDevice[/** Right camera */ "RightCamera"] = 5] = "RightCamera";
89
- XRTrackedInputDevice[XRTrackedInputDevice[/** Head */ "LeftHand"] = 6] = "LeftHand";
90
- XRTrackedInputDevice[XRTrackedInputDevice[/** Right hand */ "RightHand"] = 7] = "RightHand";
91
- })(XRTrackedInputDevice || (XRTrackedInputDevice = {}));
82
+ */ var XRTrackedInputDevice = /*#__PURE__*/ function(XRTrackedInputDevice) {
83
+ /** Controller */ XRTrackedInputDevice[XRTrackedInputDevice["Controller"] = 0] = "Controller";
84
+ /** Left controller */ XRTrackedInputDevice[XRTrackedInputDevice["LeftController"] = 1] = "LeftController";
85
+ /** Right controller */ XRTrackedInputDevice[XRTrackedInputDevice["RightController"] = 2] = "RightController";
86
+ /** Camera */ XRTrackedInputDevice[XRTrackedInputDevice["Camera"] = 3] = "Camera";
87
+ /** Left camera */ XRTrackedInputDevice[XRTrackedInputDevice["LeftCamera"] = 4] = "LeftCamera";
88
+ /** Right camera */ XRTrackedInputDevice[XRTrackedInputDevice["RightCamera"] = 5] = "RightCamera";
89
+ /** Head */ XRTrackedInputDevice[XRTrackedInputDevice["LeftHand"] = 6] = "LeftHand";
90
+ /** Right hand */ XRTrackedInputDevice[XRTrackedInputDevice["RightHand"] = 7] = "RightHand";
91
+ return XRTrackedInputDevice;
92
+ }({});
92
93
 
93
94
  /**
94
95
  * The state of an XRSession.
95
- */ var XRSessionState;
96
- (function(XRSessionState) {
97
- XRSessionState[XRSessionState[/** Not initialized. */ "None"] = 0] = "None";
98
- XRSessionState[XRSessionState[/** Initializing session. */ "Initializing"] = 1] = "Initializing";
99
- XRSessionState[XRSessionState[/** Initialized but not started. */ "Initialized"] = 2] = "Initialized";
100
- XRSessionState[XRSessionState[/** Running. */ "Running"] = 3] = "Running";
101
- XRSessionState[XRSessionState[/** Paused. */ "Paused"] = 4] = "Paused";
102
- })(XRSessionState || (XRSessionState = {}));
96
+ */ var XRSessionState = /*#__PURE__*/ function(XRSessionState) {
97
+ /** Not initialized. */ XRSessionState[XRSessionState["None"] = 0] = "None";
98
+ /** Initializing session. */ XRSessionState[XRSessionState["Initializing"] = 1] = "Initializing";
99
+ /** Initialized but not started. */ XRSessionState[XRSessionState["Initialized"] = 2] = "Initialized";
100
+ /** Running. */ XRSessionState[XRSessionState["Running"] = 3] = "Running";
101
+ /** Paused. */ XRSessionState[XRSessionState["Paused"] = 4] = "Paused";
102
+ return XRSessionState;
103
+ }({});
103
104
 
104
105
  /**
105
106
  * The manager of XR camera.
@@ -232,12 +233,12 @@ function _instanceof(left, right) {
232
233
 
233
234
  /**
234
235
  * Enum for XR tracking state.
235
- */ var XRTrackingState;
236
- (function(XRTrackingState) {
237
- XRTrackingState[XRTrackingState[/** Not tracking */ "NotTracking"] = 0] = "NotTracking";
238
- XRTrackingState[XRTrackingState[/** Tracking */ "Tracking"] = 1] = "Tracking";
239
- XRTrackingState[XRTrackingState[/** Lost track */ "TrackingLost"] = 2] = "TrackingLost";
240
- })(XRTrackingState || (XRTrackingState = {}));
236
+ */ var XRTrackingState = /*#__PURE__*/ function(XRTrackingState) {
237
+ /** Not tracking */ XRTrackingState[XRTrackingState["NotTracking"] = 0] = "NotTracking";
238
+ /** Tracking */ XRTrackingState[XRTrackingState["Tracking"] = 1] = "Tracking";
239
+ /** Lost track */ XRTrackingState[XRTrackingState["TrackingLost"] = 2] = "TrackingLost";
240
+ return XRTrackingState;
241
+ }({});
241
242
 
242
243
  var XRInput = function XRInput(type) {
243
244
  this.type = type;
@@ -246,14 +247,11 @@ var XRInput = function XRInput(type) {
246
247
 
247
248
  /**
248
249
  * The XR camera.
249
- */ var XRCamera = /*#__PURE__*/ function(XRInput1) {
250
- _inherits(XRCamera, XRInput1);
250
+ */ var XRCamera = /*#__PURE__*/ function(XRInput) {
251
+ _inherits(XRCamera, XRInput);
251
252
  function XRCamera() {
252
253
  var _this;
253
- _this = XRInput1.apply(this, arguments) || this;
254
- /** The pose of the camera in XR space. */ _this.pose = new XRPose();
255
- /** The viewport of the camera. */ _this.viewport = new Rect();
256
- /** The projection matrix of the camera. */ _this.projectionMatrix = new Matrix();
254
+ _this = XRInput.apply(this, arguments) || this, /** The pose of the camera in XR space. */ _this.pose = new XRPose(), /** The viewport of the camera. */ _this.viewport = new Rect(), /** The projection matrix of the camera. */ _this.projectionMatrix = new Matrix();
257
255
  return _this;
258
256
  }
259
257
  return XRCamera;
@@ -261,29 +259,24 @@ var XRInput = function XRInput(type) {
261
259
 
262
260
  /**
263
261
  * Enum for XR input button.
264
- */ var XRInputButton;
265
- (function(XRInputButton) {
266
- XRInputButton[XRInputButton[/** None */ "None"] = 0x0] = "None";
267
- XRInputButton[XRInputButton[/** Select */ "Select"] = 0x1] = "Select";
268
- XRInputButton[XRInputButton[/** Select */ "Trigger"] = 0x1] = "Trigger";
269
- XRInputButton[XRInputButton[/** Squeeze */ "Squeeze"] = 0x2] = "Squeeze";
270
- XRInputButton[XRInputButton[/** TouchPad */ "TouchPad"] = 0x4] = "TouchPad";
271
- XRInputButton[XRInputButton[/** A */ "AButton"] = 0x8] = "AButton";
272
- XRInputButton[XRInputButton[/** B */ "BButton"] = 0x10] = "BButton";
273
- })(XRInputButton || (XRInputButton = {}));
262
+ */ var XRInputButton = /*#__PURE__*/ function(XRInputButton) {
263
+ /** None */ XRInputButton[XRInputButton["None"] = 0] = "None";
264
+ /** Select */ XRInputButton[XRInputButton["Select"] = 1] = "Select";
265
+ /** Select */ XRInputButton[XRInputButton["Trigger"] = 1] = "Trigger";
266
+ /** Squeeze */ XRInputButton[XRInputButton["Squeeze"] = 2] = "Squeeze";
267
+ /** TouchPad */ XRInputButton[XRInputButton["TouchPad"] = 4] = "TouchPad";
268
+ /** A */ XRInputButton[XRInputButton["AButton"] = 8] = "AButton";
269
+ /** B */ XRInputButton[XRInputButton["BButton"] = 16] = "BButton";
270
+ return XRInputButton;
271
+ }({});
274
272
 
275
273
  /**
276
274
  * The XR controller.
277
- */ var XRController = /*#__PURE__*/ function(XRInput1) {
278
- _inherits(XRController, XRInput1);
275
+ */ var XRController = /*#__PURE__*/ function(XRInput) {
276
+ _inherits(XRController, XRInput);
279
277
  function XRController() {
280
278
  var _this;
281
- _this = XRInput1.apply(this, arguments) || this;
282
- /** The grip space pose of the controller in XR space. */ _this.gripPose = new XRPose();
283
- /** The target ray space pose of the controller in XR space. */ _this.targetRayPose = new XRPose();
284
- /** The currently pressed buttons of this controller. */ _this.pressedButtons = XRInputButton.None;
285
- /** Record button lifted. */ _this.down = XRInputButton.None;
286
- /** Record button pressed. */ _this.up = XRInputButton.None;
279
+ _this = XRInput.apply(this, arguments) || this, /** The grip space pose of the controller in XR space. */ _this.gripPose = new XRPose(), /** The target ray space pose of the controller in XR space. */ _this.targetRayPose = new XRPose(), /** The currently pressed buttons of this controller. */ _this.pressedButtons = XRInputButton.None, /** Record button lifted. */ _this.down = XRInputButton.None, /** Record button pressed. */ _this.up = XRInputButton.None;
287
280
  return _this;
288
281
  }
289
282
  var _proto = XRController.prototype;
@@ -312,22 +305,22 @@ var XRInput = function XRInput(type) {
312
305
  return XRController;
313
306
  }(XRInput);
314
307
 
315
- var XRInputEventType;
316
- (function(XRInputEventType) {
308
+ var XRInputEventType = /*#__PURE__*/ function(XRInputEventType) {
317
309
  XRInputEventType[XRInputEventType["SelectStart"] = 0] = "SelectStart";
318
310
  XRInputEventType[XRInputEventType["Select"] = 1] = "Select";
319
311
  XRInputEventType[XRInputEventType["SelectEnd"] = 2] = "SelectEnd";
320
312
  XRInputEventType[XRInputEventType["SqueezeStart"] = 3] = "SqueezeStart";
321
313
  XRInputEventType[XRInputEventType["Squeeze"] = 4] = "Squeeze";
322
314
  XRInputEventType[XRInputEventType["SqueezeEnd"] = 5] = "SqueezeEnd";
323
- })(XRInputEventType || (XRInputEventType = {}));
315
+ return XRInputEventType;
316
+ }({});
324
317
 
325
- var XRTargetRayMode;
326
- (function(XRTargetRayMode) {
318
+ var XRTargetRayMode = /*#__PURE__*/ function(XRTargetRayMode) {
327
319
  XRTargetRayMode[XRTargetRayMode["Gaze"] = 0] = "Gaze";
328
320
  XRTargetRayMode[XRTargetRayMode["TrackedPointer"] = 1] = "TrackedPointer";
329
321
  XRTargetRayMode[XRTargetRayMode["Screen"] = 2] = "Screen";
330
- })(XRTargetRayMode || (XRTargetRayMode = {}));
322
+ return XRTargetRayMode;
323
+ }({});
331
324
 
332
325
  /**
333
326
  * The manager of XR input.
@@ -512,12 +505,12 @@ var XRTargetRayMode;
512
505
 
513
506
  /**
514
507
  * The type of XR session.
515
- */ var XRSessionMode;
516
- (function(XRSessionMode) {
508
+ */ var XRSessionMode = /*#__PURE__*/ function(XRSessionMode) {
517
509
  XRSessionMode[XRSessionMode["None"] = 0] = "None";
518
510
  XRSessionMode[XRSessionMode["AR"] = 1] = "AR";
519
511
  XRSessionMode[XRSessionMode["VR"] = 2] = "VR";
520
- })(XRSessionMode || (XRSessionMode = {}));
512
+ return XRSessionMode;
513
+ }({});
521
514
 
522
515
  /**
523
516
  * XRSessionManager manages the life cycle of XR sessions.
@@ -721,10 +714,10 @@ var XRTargetRayMode;
721
714
 
722
715
  /**
723
716
  * @internal
724
- */ var XRManagerExtended = /*#__PURE__*/ function(XRManager1) {
725
- _inherits(XRManagerExtended, XRManager1);
717
+ */ var XRManagerExtended = /*#__PURE__*/ function(XRManager) {
718
+ _inherits(XRManagerExtended, XRManager);
726
719
  function XRManagerExtended() {
727
- return XRManager1.apply(this, arguments);
720
+ return XRManager.apply(this, arguments) || this;
728
721
  }
729
722
  var _proto = XRManagerExtended.prototype;
730
723
  _proto.isSupportedFeature = function isSupportedFeature(feature) {
@@ -744,7 +737,9 @@ var XRTargetRayMode;
744
737
  for(var i = 0, n = features.length; i < n; i++){
745
738
  if (_instanceof(features[i], type)) throw new Error("The feature has been added");
746
739
  }
747
- var feature = _construct(type, [].concat(this, args));
740
+ var feature = _construct(type, [].concat([
741
+ this
742
+ ], args));
748
743
  features.push(feature);
749
744
  return feature;
750
745
  };
@@ -758,8 +753,8 @@ var XRTargetRayMode;
758
753
  }
759
754
  };
760
755
  _proto.enterXR = function enterXR(sessionMode, autoRun) {
761
- if (autoRun === void 0) autoRun = true;
762
756
  var _this = this;
757
+ if (autoRun === void 0) autoRun = true;
763
758
  var sessionManager = this.sessionManager;
764
759
  if (sessionManager._platformSession) {
765
760
  throw new Error("Please exit XR immersive mode first.");
@@ -891,9 +886,7 @@ var XRTargetRayMode;
891
886
  ]);
892
887
  return XRManagerExtended;
893
888
  }(XRManager);
894
- (function() {
895
- /** @internal */ XRManagerExtended._featureMap = new Map();
896
- })();
889
+ /** @internal */ XRManagerExtended._featureMap = new Map();
897
890
  /**
898
891
  * @internal
899
892
  */ function registerXRFeature(type) {
@@ -924,7 +917,9 @@ ApplyMixins(XRManager, [
924
917
  this._xrManager = _xrManager;
925
918
  this._type = _type;
926
919
  this._enabled = true;
927
- this._platformFeature = (_xrManager__platformDevice = _xrManager._platformDevice).createPlatformFeature.apply(_xrManager__platformDevice, [].concat(_type, args));
920
+ this._platformFeature = (_xrManager__platformDevice = _xrManager._platformDevice).createPlatformFeature.apply(_xrManager__platformDevice, [].concat([
921
+ _type
922
+ ], args));
928
923
  this._onEnable();
929
924
  }
930
925
  var _proto = XRFeature.prototype;
@@ -971,38 +966,31 @@ ApplyMixins(XRManager, [
971
966
  return XRFeature;
972
967
  }();
973
968
 
974
- var XRFeatureType;
975
- (function(XRFeatureType) {
969
+ var XRFeatureType = /*#__PURE__*/ function(XRFeatureType) {
976
970
  XRFeatureType[XRFeatureType["AnchorTracking"] = 0] = "AnchorTracking";
977
971
  XRFeatureType[XRFeatureType["ImageTracking"] = 1] = "ImageTracking";
978
972
  XRFeatureType[XRFeatureType["PlaneTracking"] = 2] = "PlaneTracking";
979
973
  XRFeatureType[XRFeatureType["HitTest"] = 3] = "HitTest";
980
- })(XRFeatureType || (XRFeatureType = {}));
974
+ return XRFeatureType;
975
+ }({});
981
976
 
982
- var XRRequestTrackingState;
983
- (function(XRRequestTrackingState) {
977
+ var XRRequestTrackingState = /*#__PURE__*/ function(XRRequestTrackingState) {
984
978
  XRRequestTrackingState[XRRequestTrackingState["None"] = 0] = "None";
985
979
  XRRequestTrackingState[XRRequestTrackingState["Submitted"] = 1] = "Submitted";
986
980
  XRRequestTrackingState[XRRequestTrackingState["Resolved"] = 2] = "Resolved";
987
981
  XRRequestTrackingState[XRRequestTrackingState["Rejected"] = 3] = "Rejected";
988
982
  XRRequestTrackingState[XRRequestTrackingState["Destroyed"] = 4] = "Destroyed";
989
983
  XRRequestTrackingState[XRRequestTrackingState["WaitingDestroy"] = 5] = "WaitingDestroy";
990
- })(XRRequestTrackingState || (XRRequestTrackingState = {}));
984
+ return XRRequestTrackingState;
985
+ }({});
991
986
 
992
987
  /**
993
988
  * The base class of XR trackable manager.
994
- */ var XRTrackableFeature = /*#__PURE__*/ function(XRFeature1) {
995
- _inherits(XRTrackableFeature, XRFeature1);
989
+ */ var XRTrackableFeature = /*#__PURE__*/ function(XRFeature) {
990
+ _inherits(XRTrackableFeature, XRFeature);
996
991
  function XRTrackableFeature() {
997
992
  var _this;
998
- _this = XRFeature1.apply(this, arguments) || this;
999
- _this._requestTrackings = [];
1000
- _this._tracked = [];
1001
- _this._added = [];
1002
- _this._updated = [];
1003
- _this._removed = [];
1004
- _this._statusSnapshot = {};
1005
- _this._listeners = new SafeLoopArray();
993
+ _this = XRFeature.apply(this, arguments) || this, _this._requestTrackings = [], _this._tracked = [], _this._added = [], _this._updated = [], _this._removed = [], _this._statusSnapshot = {}, _this._listeners = new SafeLoopArray();
1006
994
  return _this;
1007
995
  }
1008
996
  var _proto = XRTrackableFeature.prototype;
@@ -1121,9 +1109,7 @@ var XRRequestTrackingState;
1121
1109
  };
1122
1110
  return XRTrackableFeature;
1123
1111
  }(XRFeature);
1124
- (function() {
1125
- XRTrackableFeature._uuid = 0;
1126
- })();
1112
+ XRTrackableFeature._uuid = 0;
1127
1113
 
1128
1114
  /**
1129
1115
  * The base class of XR tracked object.
@@ -1135,11 +1121,11 @@ var XRRequestTrackingState;
1135
1121
  /**
1136
1122
  * Enum for the types of hit test that can be performed.
1137
1123
  * Note: currently only supports plane.
1138
- */ var TrackableType;
1139
- (function(TrackableType) {
1140
- TrackableType[TrackableType[/** Tracked plane. */ "Plane"] = 0x1] = "Plane";
1141
- TrackableType[TrackableType[/** All tracked objects. */ "All"] = 0x1] = "All";
1142
- })(TrackableType || (TrackableType = {}));
1124
+ */ var TrackableType = /*#__PURE__*/ function(TrackableType) {
1125
+ /** Tracked plane. */ TrackableType[TrackableType["Plane"] = 1] = "Plane";
1126
+ /** All tracked objects. */ TrackableType[TrackableType["All"] = 1] = "All";
1127
+ return TrackableType;
1128
+ }({});
1143
1129
 
1144
1130
  /**
1145
1131
  * XR hit result.
@@ -1178,13 +1164,13 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
1178
1164
 
1179
1165
  /**
1180
1166
  * Enumerates modes of plane in XR.
1181
- */ var XRPlaneMode;
1182
- (function(XRPlaneMode) {
1183
- XRPlaneMode[XRPlaneMode[/** None. */ "None"] = 0] = "None";
1184
- XRPlaneMode[XRPlaneMode[/** Horizontal */ "Horizontal"] = 1] = "Horizontal";
1185
- XRPlaneMode[XRPlaneMode[/** Vertical */ "Vertical"] = 2] = "Vertical";
1186
- XRPlaneMode[XRPlaneMode[/** Includes horizontal and vertical. */ "EveryThing"] = 3] = "EveryThing";
1187
- })(XRPlaneMode || (XRPlaneMode = {}));
1167
+ */ var XRPlaneMode = /*#__PURE__*/ function(XRPlaneMode) {
1168
+ /** None. */ XRPlaneMode[XRPlaneMode["None"] = 0] = "None";
1169
+ /** Horizontal */ XRPlaneMode[XRPlaneMode["Horizontal"] = 1] = "Horizontal";
1170
+ /** Vertical */ XRPlaneMode[XRPlaneMode["Vertical"] = 2] = "Vertical";
1171
+ /** Includes horizontal and vertical. */ XRPlaneMode[XRPlaneMode["EveryThing"] = 3] = "EveryThing";
1172
+ return XRPlaneMode;
1173
+ }({});
1188
1174
 
1189
1175
  /**
1190
1176
  * @internal
@@ -1195,12 +1181,11 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
1195
1181
 
1196
1182
  /**
1197
1183
  * The request plane in XR space.
1198
- */ var XRRequestPlane = /*#__PURE__*/ function(XRRequestTracking1) {
1199
- _inherits(XRRequestPlane, XRRequestTracking1);
1184
+ */ var XRRequestPlane = /*#__PURE__*/ function(XRRequestTracking) {
1185
+ _inherits(XRRequestPlane, XRRequestTracking);
1200
1186
  function XRRequestPlane(detectionMode) {
1201
1187
  var _this;
1202
- _this = XRRequestTracking1.call(this) || this;
1203
- _this.detectionMode = detectionMode;
1188
+ _this = XRRequestTracking.call(this) || this, _this.detectionMode = detectionMode;
1204
1189
  return _this;
1205
1190
  }
1206
1191
  return XRRequestPlane;
@@ -1208,16 +1193,14 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
1208
1193
 
1209
1194
  /**
1210
1195
  * The tracked plane in XR space.
1211
- */ var XRTrackedPlane = /*#__PURE__*/ function(XRTracked1) {
1212
- _inherits(XRTrackedPlane, XRTracked1);
1196
+ */ var XRTrackedPlane = /*#__PURE__*/ function(XRTracked) {
1197
+ _inherits(XRTrackedPlane, XRTracked);
1213
1198
  function XRTrackedPlane() {
1214
1199
  var _this;
1215
- _this = XRTracked1.apply(this, arguments) || this;
1216
- /** The points that make up this plane.
1200
+ _this = XRTracked.apply(this, arguments) || this, /** The points that make up this plane.
1217
1201
  * Note: These points are in the plane coordinate system,
1218
1202
  * and their Y coordinates are all zero.
1219
- */ _this.polygon = [];
1220
- /**
1203
+ */ _this.polygon = [], /**
1221
1204
  * Whether this frame changes the attributes of the plane.
1222
1205
  * Note: Includes `polygon` but no `pose`.
1223
1206
  */ _this.attributesDirty = false;
@@ -1265,20 +1248,11 @@ XRPlaneTracking = __decorate([
1265
1248
  registerXRFeature(XRFeatureType.PlaneTracking)
1266
1249
  ], XRPlaneTracking);
1267
1250
 
1268
- var XRHitTest = /*#__PURE__*/ function(XRFeature1) {
1269
- _inherits(XRHitTest, XRFeature1);
1251
+ var XRHitTest = /*#__PURE__*/ function(XRFeature) {
1252
+ _inherits(XRHitTest, XRFeature);
1270
1253
  function XRHitTest(xrManager) {
1271
1254
  var _this;
1272
- _this = XRFeature1.call(this, xrManager, XRFeatureType.HitTest) || this;
1273
- _this._tempRay = new Ray();
1274
- _this._tempPlane = new Plane();
1275
- _this._tempVec2 = new Vector2();
1276
- _this._tempVec30 = new Vector3();
1277
- _this._tempVec31 = new Vector3();
1278
- _this._tempVec32 = new Vector3();
1279
- _this._tempVec33 = new Vector3();
1280
- _this._tempVec34 = new Vector3();
1281
- _this._tempVec35 = new Vector3();
1255
+ _this = XRFeature.call(this, xrManager, XRFeatureType.HitTest) || this, _this._tempRay = new Ray(), _this._tempPlane = new Plane(), _this._tempVec2 = new Vector2(), _this._tempVec30 = new Vector3(), _this._tempVec31 = new Vector3(), _this._tempVec32 = new Vector3(), _this._tempVec33 = new Vector3(), _this._tempVec34 = new Vector3(), _this._tempVec35 = new Vector3();
1282
1256
  return _this;
1283
1257
  }
1284
1258
  var _proto = XRHitTest.prototype;
@@ -1376,23 +1350,21 @@ XRHitTest = __decorate([
1376
1350
 
1377
1351
  /**
1378
1352
  * The anchor in XR space.
1379
- */ var XRAnchor = /*#__PURE__*/ function(XRTracked1) {
1380
- _inherits(XRAnchor, XRTracked1);
1353
+ */ var XRAnchor = /*#__PURE__*/ function(XRTracked) {
1354
+ _inherits(XRAnchor, XRTracked);
1381
1355
  function XRAnchor() {
1382
- return XRTracked1.apply(this, arguments);
1356
+ return XRTracked.apply(this, arguments) || this;
1383
1357
  }
1384
1358
  return XRAnchor;
1385
1359
  }(XRTracked);
1386
1360
 
1387
1361
  /**
1388
1362
  * The request anchor in XR space.
1389
- */ var XRRequestAnchor = /*#__PURE__*/ function(XRRequestTracking1) {
1390
- _inherits(XRRequestAnchor, XRRequestTracking1);
1363
+ */ var XRRequestAnchor = /*#__PURE__*/ function(XRRequestTracking) {
1364
+ _inherits(XRRequestAnchor, XRRequestTracking);
1391
1365
  function XRRequestAnchor(position, rotation) {
1392
1366
  var _this;
1393
- _this = XRRequestTracking1.call(this) || this;
1394
- _this.position = position;
1395
- _this.rotation = rotation;
1367
+ _this = XRRequestTracking.call(this) || this, _this.position = position, _this.rotation = rotation;
1396
1368
  return _this;
1397
1369
  }
1398
1370
  return XRRequestAnchor;
@@ -1402,8 +1374,7 @@ var XRAnchorTracking = /*#__PURE__*/ function(XRTrackableFeature1) {
1402
1374
  _inherits(XRAnchorTracking, XRTrackableFeature1);
1403
1375
  function XRAnchorTracking(xrManager) {
1404
1376
  var _this;
1405
- _this = XRTrackableFeature1.call(this, xrManager, XRFeatureType.AnchorTracking) || this;
1406
- _this._anchors = [];
1377
+ _this = XRTrackableFeature1.call(this, xrManager, XRFeatureType.AnchorTracking) || this, _this._anchors = [];
1407
1378
  return _this;
1408
1379
  }
1409
1380
  var _proto = XRAnchorTracking.prototype;
@@ -1478,12 +1449,11 @@ XRAnchorTracking = __decorate([
1478
1449
 
1479
1450
  /**
1480
1451
  * The request image in XR space.
1481
- */ var XRRequestImage = /*#__PURE__*/ function(XRRequestTracking1) {
1482
- _inherits(XRRequestImage, XRRequestTracking1);
1452
+ */ var XRRequestImage = /*#__PURE__*/ function(XRRequestTracking) {
1453
+ _inherits(XRRequestImage, XRRequestTracking);
1483
1454
  function XRRequestImage(image) {
1484
1455
  var _this;
1485
- _this = XRRequestTracking1.call(this) || this;
1486
- _this.image = image;
1456
+ _this = XRRequestTracking.call(this) || this, _this.image = image;
1487
1457
  return _this;
1488
1458
  }
1489
1459
  return XRRequestImage;
@@ -1491,10 +1461,10 @@ XRAnchorTracking = __decorate([
1491
1461
 
1492
1462
  /**
1493
1463
  * A tracked image in XR space.
1494
- */ var XRTrackedImage = /*#__PURE__*/ function(XRTracked1) {
1495
- _inherits(XRTrackedImage, XRTracked1);
1464
+ */ var XRTrackedImage = /*#__PURE__*/ function(XRTracked) {
1465
+ _inherits(XRTrackedImage, XRTracked);
1496
1466
  function XRTrackedImage() {
1497
- return XRTracked1.apply(this, arguments);
1467
+ return XRTracked.apply(this, arguments) || this;
1498
1468
  }
1499
1469
  return XRTrackedImage;
1500
1470
  }(XRTracked);
@@ -1587,10 +1557,10 @@ function _extends() {
1587
1557
  return _extends.apply(this, arguments);
1588
1558
  }
1589
1559
 
1590
- var XRReferenceImageLoader = /*#__PURE__*/ function(Loader1) {
1591
- _inherits(XRReferenceImageLoader, Loader1);
1560
+ var XRReferenceImageLoader = /*#__PURE__*/ function(Loader) {
1561
+ _inherits(XRReferenceImageLoader, Loader);
1592
1562
  function XRReferenceImageLoader() {
1593
- return Loader1.apply(this, arguments);
1563
+ return Loader.apply(this, arguments) || this;
1594
1564
  }
1595
1565
  var _proto = XRReferenceImageLoader.prototype;
1596
1566
  _proto.load = function load(item, resourceManager) {