@galacean/engine-xr 0.0.0-experimental-1.3-xr.2 → 0.0.0-experimental-1.3-xr.5

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.
@@ -100,9 +100,10 @@ function _instanceof(left, right) {
100
100
  */ exports.XRSessionState = void 0;
101
101
  (function(XRSessionState) {
102
102
  XRSessionState[XRSessionState[/** Not initialized. */ "None"] = 0] = "None";
103
- XRSessionState[XRSessionState[/** Initialized but not started. */ "Initialized"] = 1] = "Initialized";
104
- XRSessionState[XRSessionState[/** Running. */ "Running"] = 2] = "Running";
105
- XRSessionState[XRSessionState[/** Paused. */ "Paused"] = 3] = "Paused";
103
+ XRSessionState[XRSessionState[/** Requesting the session. */ "Requesting"] = 1] = "Requesting";
104
+ XRSessionState[XRSessionState[/** Initialized but not started. */ "Initialized"] = 2] = "Initialized";
105
+ XRSessionState[XRSessionState[/** Running. */ "Running"] = 3] = "Running";
106
+ XRSessionState[XRSessionState[/** Paused. */ "Paused"] = 4] = "Paused";
106
107
  })(exports.XRSessionState || (exports.XRSessionState = {}));
107
108
 
108
109
  /**
@@ -782,6 +783,7 @@ exports.XRTargetRayMode = void 0;
782
783
  return new Promise(function(resolve, reject) {
783
784
  // 1. Check if this xr mode is supported
784
785
  sessionManager.isSupportedMode(sessionMode).then(function() {
786
+ sessionManager.state = exports.XRSessionState.Requesting;
785
787
  // 2. Initialize session
786
788
  sessionManager._initialize(sessionMode, _this.features).then(function() {
787
789
  autoRun && sessionManager.run();
@@ -994,78 +996,6 @@ ApplyMixins(miniprogram.XRManager, [
994
996
  return XRFeature;
995
997
  }();
996
998
 
997
- /**
998
- * Enum for the types of hit test that can be performed.
999
- * Note: currently only supports plane.
1000
- */ exports.TrackableType = void 0;
1001
- (function(TrackableType) {
1002
- TrackableType[TrackableType[/** Tracked plane. */ "Plane"] = 0x1] = "Plane";
1003
- TrackableType[TrackableType[/** All tracked objects. */ "All"] = 0x1] = "All";
1004
- })(exports.TrackableType || (exports.TrackableType = {}));
1005
-
1006
- /**
1007
- * XR hit result.
1008
- * It is the detection result returned by using XR HitTest feature.
1009
- */ var XRHitResult = function XRHitResult() {
1010
- /** The position of the hit point. */ this.point = new miniprogram.Vector3();
1011
- /** The normal of the hit point. */ this.normal = new miniprogram.Vector3();
1012
- };
1013
-
1014
- /******************************************************************************
1015
- Copyright (c) Microsoft Corporation.
1016
-
1017
- Permission to use, copy, modify, and/or distribute this software for any
1018
- purpose with or without fee is hereby granted.
1019
-
1020
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1021
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1022
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1023
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1024
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1025
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1026
- PERFORMANCE OF THIS SOFTWARE.
1027
- ***************************************************************************** */
1028
-
1029
- function __decorate(decorators, target, key, desc) {
1030
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1031
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1032
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1033
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1034
- }
1035
-
1036
- function __generator(thisArg, body) {
1037
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1038
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1039
- function verb(n) { return function (v) { return step([n, v]); }; }
1040
- function step(op) {
1041
- if (f) throw new TypeError("Generator is already executing.");
1042
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
1043
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1044
- if (y = 0, t) op = [op[0] & 2, t.value];
1045
- switch (op[0]) {
1046
- case 0: case 1: t = op; break;
1047
- case 4: _.label++; return { value: op[1], done: false };
1048
- case 5: _.label++; y = op[1]; op = [0]; continue;
1049
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
1050
- default:
1051
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1052
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1053
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1054
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1055
- if (t[2]) _.ops.pop();
1056
- _.trys.pop(); continue;
1057
- }
1058
- op = body.call(thisArg, _);
1059
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1060
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1061
- }
1062
- }
1063
-
1064
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1065
- var e = new Error(message);
1066
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1067
- };
1068
-
1069
999
  exports.XRFeatureType = void 0;
1070
1000
  (function(XRFeatureType) {
1071
1001
  XRFeatureType[XRFeatureType["AnchorTracking"] = 0] = "AnchorTracking";
@@ -1184,10 +1114,6 @@ exports.XRRequestTrackingState = void 0;
1184
1114
  // prettier-ignore
1185
1115
  this._requestTrackings.length = this._tracked.length = this._added.length = this._updated.length = this._removed.length = 0;
1186
1116
  };
1187
- _proto._onDestroy = function _onDestroy() {
1188
- // prettier-ignore
1189
- this._requestTrackings.length = this._tracked.length = this._added.length = this._updated.length = this._removed.length = 0;
1190
- };
1191
1117
  _proto._addRequestTracking = function _addRequestTracking(requestTracking) {
1192
1118
  var _this = this, platformFeature = _this._platformFeature;
1193
1119
  if (this._xrManager.sessionManager._platformSession && !platformFeature.canModifyRequestTrackingAfterInit) {
@@ -1219,6 +1145,85 @@ exports.XRRequestTrackingState = void 0;
1219
1145
  XRTrackableFeature._uuid = 0;
1220
1146
  })();
1221
1147
 
1148
+ /**
1149
+ * The base class of XR tracked object.
1150
+ */ var XRTracked = function XRTracked() {
1151
+ /** The pose of the trackable in XR space. */ this.pose = new XRPose();
1152
+ /** The tracking state of the trackable. */ this.state = exports.XRTrackingState.NotTracking;
1153
+ };
1154
+
1155
+ /**
1156
+ * Enum for the types of hit test that can be performed.
1157
+ * Note: currently only supports plane.
1158
+ */ exports.TrackableType = void 0;
1159
+ (function(TrackableType) {
1160
+ TrackableType[TrackableType[/** Tracked plane. */ "Plane"] = 0x1] = "Plane";
1161
+ TrackableType[TrackableType[/** All tracked objects. */ "All"] = 0x1] = "All";
1162
+ })(exports.TrackableType || (exports.TrackableType = {}));
1163
+
1164
+ /**
1165
+ * XR hit result.
1166
+ * It is the detection result returned by using XR HitTest feature.
1167
+ */ var XRHitResult = function XRHitResult() {
1168
+ /** The position of the hit point. */ this.point = new miniprogram.Vector3();
1169
+ /** The normal of the hit point. */ this.normal = new miniprogram.Vector3();
1170
+ };
1171
+
1172
+ /******************************************************************************
1173
+ Copyright (c) Microsoft Corporation.
1174
+
1175
+ Permission to use, copy, modify, and/or distribute this software for any
1176
+ purpose with or without fee is hereby granted.
1177
+
1178
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1179
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1180
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1181
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1182
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1183
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1184
+ PERFORMANCE OF THIS SOFTWARE.
1185
+ ***************************************************************************** */
1186
+
1187
+ function __decorate(decorators, target, key, desc) {
1188
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1189
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1190
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1191
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1192
+ }
1193
+
1194
+ function __generator(thisArg, body) {
1195
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1196
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1197
+ function verb(n) { return function (v) { return step([n, v]); }; }
1198
+ function step(op) {
1199
+ if (f) throw new TypeError("Generator is already executing.");
1200
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
1201
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1202
+ if (y = 0, t) op = [op[0] & 2, t.value];
1203
+ switch (op[0]) {
1204
+ case 0: case 1: t = op; break;
1205
+ case 4: _.label++; return { value: op[1], done: false };
1206
+ case 5: _.label++; y = op[1]; op = [0]; continue;
1207
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
1208
+ default:
1209
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1210
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1211
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1212
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1213
+ if (t[2]) _.ops.pop();
1214
+ _.trys.pop(); continue;
1215
+ }
1216
+ op = body.call(thisArg, _);
1217
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1218
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1219
+ }
1220
+ }
1221
+
1222
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1223
+ var e = new Error(message);
1224
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1225
+ };
1226
+
1222
1227
  /**
1223
1228
  * Enumerates modes of plane in XR.
1224
1229
  */ exports.XRPlaneMode = void 0;
@@ -1249,13 +1254,6 @@ exports.XRRequestTrackingState = void 0;
1249
1254
  return XRRequestPlane;
1250
1255
  }(XRRequestTracking);
1251
1256
 
1252
- /**
1253
- * The base class of XR tracked object.
1254
- */ var XRTracked = function XRTracked() {
1255
- /** The pose of the trackable in XR space. */ this.pose = new XRPose();
1256
- /** The tracking state of the trackable. */ this.state = exports.XRTrackingState.NotTracking;
1257
- };
1258
-
1259
1257
  /**
1260
1258
  * The tracked plane in XR space.
1261
1259
  */ var XRTrackedPlane = /*#__PURE__*/ function(XRTracked1) {
@@ -1867,5 +1865,7 @@ exports.XRInputManager = XRInputManager;
1867
1865
  exports.XRPose = XRPose;
1868
1866
  exports.XRReferenceImage = XRReferenceImage;
1869
1867
  exports.XRSessionManager = XRSessionManager;
1868
+ exports.XRTrackableFeature = XRTrackableFeature;
1869
+ exports.XRTracked = XRTracked;
1870
1870
  exports.XRTrackedImage = XRTrackedImage;
1871
1871
  exports.XRTrackedPlane = XRTrackedPlane;
package/dist/module.js CHANGED
@@ -95,9 +95,10 @@ function _instanceof(left, right) {
95
95
  */ var XRSessionState;
96
96
  (function(XRSessionState) {
97
97
  XRSessionState[XRSessionState[/** Not initialized. */ "None"] = 0] = "None";
98
- XRSessionState[XRSessionState[/** Initialized but not started. */ "Initialized"] = 1] = "Initialized";
99
- XRSessionState[XRSessionState[/** Running. */ "Running"] = 2] = "Running";
100
- XRSessionState[XRSessionState[/** Paused. */ "Paused"] = 3] = "Paused";
98
+ XRSessionState[XRSessionState[/** Requesting the session. */ "Requesting"] = 1] = "Requesting";
99
+ XRSessionState[XRSessionState[/** Initialized but not started. */ "Initialized"] = 2] = "Initialized";
100
+ XRSessionState[XRSessionState[/** Running. */ "Running"] = 3] = "Running";
101
+ XRSessionState[XRSessionState[/** Paused. */ "Paused"] = 4] = "Paused";
101
102
  })(XRSessionState || (XRSessionState = {}));
102
103
 
103
104
  /**
@@ -777,6 +778,7 @@ var XRTargetRayMode;
777
778
  return new Promise(function(resolve, reject) {
778
779
  // 1. Check if this xr mode is supported
779
780
  sessionManager.isSupportedMode(sessionMode).then(function() {
781
+ sessionManager.state = XRSessionState.Requesting;
780
782
  // 2. Initialize session
781
783
  sessionManager._initialize(sessionMode, _this.features).then(function() {
782
784
  autoRun && sessionManager.run();
@@ -989,78 +991,6 @@ ApplyMixins(XRManager, [
989
991
  return XRFeature;
990
992
  }();
991
993
 
992
- /**
993
- * Enum for the types of hit test that can be performed.
994
- * Note: currently only supports plane.
995
- */ var TrackableType;
996
- (function(TrackableType) {
997
- TrackableType[TrackableType[/** Tracked plane. */ "Plane"] = 0x1] = "Plane";
998
- TrackableType[TrackableType[/** All tracked objects. */ "All"] = 0x1] = "All";
999
- })(TrackableType || (TrackableType = {}));
1000
-
1001
- /**
1002
- * XR hit result.
1003
- * It is the detection result returned by using XR HitTest feature.
1004
- */ var XRHitResult = function XRHitResult() {
1005
- /** The position of the hit point. */ this.point = new Vector3();
1006
- /** The normal of the hit point. */ this.normal = new Vector3();
1007
- };
1008
-
1009
- /******************************************************************************
1010
- Copyright (c) Microsoft Corporation.
1011
-
1012
- Permission to use, copy, modify, and/or distribute this software for any
1013
- purpose with or without fee is hereby granted.
1014
-
1015
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1016
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1017
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1018
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1019
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1020
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1021
- PERFORMANCE OF THIS SOFTWARE.
1022
- ***************************************************************************** */
1023
-
1024
- function __decorate(decorators, target, key, desc) {
1025
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1026
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1027
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1028
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1029
- }
1030
-
1031
- function __generator(thisArg, body) {
1032
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1033
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1034
- function verb(n) { return function (v) { return step([n, v]); }; }
1035
- function step(op) {
1036
- if (f) throw new TypeError("Generator is already executing.");
1037
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
1038
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1039
- if (y = 0, t) op = [op[0] & 2, t.value];
1040
- switch (op[0]) {
1041
- case 0: case 1: t = op; break;
1042
- case 4: _.label++; return { value: op[1], done: false };
1043
- case 5: _.label++; y = op[1]; op = [0]; continue;
1044
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
1045
- default:
1046
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1047
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1048
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1049
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1050
- if (t[2]) _.ops.pop();
1051
- _.trys.pop(); continue;
1052
- }
1053
- op = body.call(thisArg, _);
1054
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1055
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1056
- }
1057
- }
1058
-
1059
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1060
- var e = new Error(message);
1061
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1062
- };
1063
-
1064
994
  var XRFeatureType;
1065
995
  (function(XRFeatureType) {
1066
996
  XRFeatureType[XRFeatureType["AnchorTracking"] = 0] = "AnchorTracking";
@@ -1179,10 +1109,6 @@ var XRRequestTrackingState;
1179
1109
  // prettier-ignore
1180
1110
  this._requestTrackings.length = this._tracked.length = this._added.length = this._updated.length = this._removed.length = 0;
1181
1111
  };
1182
- _proto._onDestroy = function _onDestroy() {
1183
- // prettier-ignore
1184
- this._requestTrackings.length = this._tracked.length = this._added.length = this._updated.length = this._removed.length = 0;
1185
- };
1186
1112
  _proto._addRequestTracking = function _addRequestTracking(requestTracking) {
1187
1113
  var _this = this, platformFeature = _this._platformFeature;
1188
1114
  if (this._xrManager.sessionManager._platformSession && !platformFeature.canModifyRequestTrackingAfterInit) {
@@ -1214,6 +1140,85 @@ var XRRequestTrackingState;
1214
1140
  XRTrackableFeature._uuid = 0;
1215
1141
  })();
1216
1142
 
1143
+ /**
1144
+ * The base class of XR tracked object.
1145
+ */ var XRTracked = function XRTracked() {
1146
+ /** The pose of the trackable in XR space. */ this.pose = new XRPose();
1147
+ /** The tracking state of the trackable. */ this.state = XRTrackingState.NotTracking;
1148
+ };
1149
+
1150
+ /**
1151
+ * Enum for the types of hit test that can be performed.
1152
+ * Note: currently only supports plane.
1153
+ */ var TrackableType;
1154
+ (function(TrackableType) {
1155
+ TrackableType[TrackableType[/** Tracked plane. */ "Plane"] = 0x1] = "Plane";
1156
+ TrackableType[TrackableType[/** All tracked objects. */ "All"] = 0x1] = "All";
1157
+ })(TrackableType || (TrackableType = {}));
1158
+
1159
+ /**
1160
+ * XR hit result.
1161
+ * It is the detection result returned by using XR HitTest feature.
1162
+ */ var XRHitResult = function XRHitResult() {
1163
+ /** The position of the hit point. */ this.point = new Vector3();
1164
+ /** The normal of the hit point. */ this.normal = new Vector3();
1165
+ };
1166
+
1167
+ /******************************************************************************
1168
+ Copyright (c) Microsoft Corporation.
1169
+
1170
+ Permission to use, copy, modify, and/or distribute this software for any
1171
+ purpose with or without fee is hereby granted.
1172
+
1173
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1174
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1175
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1176
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1177
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1178
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1179
+ PERFORMANCE OF THIS SOFTWARE.
1180
+ ***************************************************************************** */
1181
+
1182
+ function __decorate(decorators, target, key, desc) {
1183
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1184
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1185
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1186
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1187
+ }
1188
+
1189
+ function __generator(thisArg, body) {
1190
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1191
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1192
+ function verb(n) { return function (v) { return step([n, v]); }; }
1193
+ function step(op) {
1194
+ if (f) throw new TypeError("Generator is already executing.");
1195
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
1196
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1197
+ if (y = 0, t) op = [op[0] & 2, t.value];
1198
+ switch (op[0]) {
1199
+ case 0: case 1: t = op; break;
1200
+ case 4: _.label++; return { value: op[1], done: false };
1201
+ case 5: _.label++; y = op[1]; op = [0]; continue;
1202
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
1203
+ default:
1204
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1205
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1206
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1207
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1208
+ if (t[2]) _.ops.pop();
1209
+ _.trys.pop(); continue;
1210
+ }
1211
+ op = body.call(thisArg, _);
1212
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1213
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1214
+ }
1215
+ }
1216
+
1217
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1218
+ var e = new Error(message);
1219
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1220
+ };
1221
+
1217
1222
  /**
1218
1223
  * Enumerates modes of plane in XR.
1219
1224
  */ var XRPlaneMode;
@@ -1244,13 +1249,6 @@ var XRRequestTrackingState;
1244
1249
  return XRRequestPlane;
1245
1250
  }(XRRequestTracking);
1246
1251
 
1247
- /**
1248
- * The base class of XR tracked object.
1249
- */ var XRTracked = function XRTracked() {
1250
- /** The pose of the trackable in XR space. */ this.pose = new XRPose();
1251
- /** The tracking state of the trackable. */ this.state = XRTrackingState.NotTracking;
1252
- };
1253
-
1254
1252
  /**
1255
1253
  * The tracked plane in XR space.
1256
1254
  */ var XRTrackedPlane = /*#__PURE__*/ function(XRTracked1) {
@@ -1852,5 +1850,5 @@ function setCamera(cameraManager, device, entity) {
1852
1850
  camera && cameraManager.attachCamera(device, camera);
1853
1851
  }
1854
1852
 
1855
- export { TrackableType, XRAnchor, XRAnchorTracking, XRCamera, XRCameraManager, XRController, XRFeature, XRFeatureType, XRHitResult, XRHitTest, XRImageTracking, XRInputButton, XRInputEventType, XRInputManager, XRPlaneMode, XRPlaneTracking, XRPose, XRReferenceImage, XRReferenceImageDecoder, XRReferenceImageLoader, XRRequestTrackingState, XRSceneExtendParser, XRSessionManager, XRSessionMode, XRSessionState, XRTargetRayMode, XRTrackedImage, XRTrackedInputDevice, XRTrackedPlane, XRTrackingState };
1853
+ export { TrackableType, XRAnchor, XRAnchorTracking, XRCamera, XRCameraManager, XRController, XRFeature, XRFeatureType, XRHitResult, XRHitTest, XRImageTracking, XRInputButton, XRInputEventType, XRInputManager, XRPlaneMode, XRPlaneTracking, XRPose, XRReferenceImage, XRReferenceImageDecoder, XRReferenceImageLoader, XRRequestTrackingState, XRSceneExtendParser, XRSessionManager, XRSessionMode, XRSessionState, XRTargetRayMode, XRTrackableFeature, XRTracked, XRTrackedImage, XRTrackedInputDevice, XRTrackedPlane, XRTrackingState };
1856
1854
  //# sourceMappingURL=module.js.map