@galacean/engine-xr 2.0.0-alpha.49 → 2.0.0-alpha.50

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
@@ -208,7 +208,7 @@ function _instanceof(left, right) {
208
208
  {
209
209
  key: "fixedFoveation",
210
210
  get: /**
211
- * The fixed foveation of the camera.
211
+ * Fixed foveation, or `undefined` if unsupported by the active session.
212
212
  */ function get() {
213
213
  var _this__xrManager_sessionManager = this._xrManager.sessionManager, platformSession = _this__xrManager_sessionManager._platformSession;
214
214
  if (platformSession) {
@@ -380,7 +380,7 @@ var XRTargetRayMode = /*#__PURE__*/ function(XRTargetRayMode) {
380
380
  controller.down = controller.up = 0;
381
381
  }
382
382
  // Handle events and update tracked devices
383
- var _this__xrManager_sessionManager = this._xrManager.sessionManager, platformSession = _this__xrManager_sessionManager._platformSession;
383
+ var platformSession = this._xrManager.sessionManager._platformSession;
384
384
  var platformEvents = platformSession.events;
385
385
  for(var i1 = 0, n1 = platformEvents.length; i1 < n1; i1++){
386
386
  this._handleEvent(platformEvents[i1]);
@@ -682,7 +682,7 @@ var XRTargetRayMode = /*#__PURE__*/ function(XRTargetRayMode) {
682
682
  {
683
683
  key: "supportedFrameRate",
684
684
  get: /**
685
- * Return a list of supported frame rates.(only available in-session)
685
+ * Supported frame rates, or `undefined` if unsupported. Only available in-session.
686
686
  */ function get() {
687
687
  return this._platformSession.supportedFrameRates;
688
688
  }
@@ -690,7 +690,7 @@ var XRTargetRayMode = /*#__PURE__*/ function(XRTargetRayMode) {
690
690
  {
691
691
  key: "frameRate",
692
692
  get: /**
693
- * Return the current frame rate as reported by the device.
693
+ * Current frame rate, or `undefined` if unsupported. Only available in-session.
694
694
  */ function get() {
695
695
  return this._platformSession.frameRate;
696
696
  }
@@ -982,7 +982,7 @@ var XRRequestTrackingState = /*#__PURE__*/ function(XRRequestTrackingState) {
982
982
  }
983
983
  var _proto = XRTrackableFeature.prototype;
984
984
  _proto._onUpdate = function _onUpdate() {
985
- var _this__xrManager_sessionManager = this._xrManager.sessionManager, platformSession = _this__xrManager_sessionManager._platformSession;
985
+ var platformSession = this._xrManager.sessionManager._platformSession;
986
986
  var platformFrame = platformSession.frame;
987
987
  var _this = this, platformFeature = _this._platformFeature, requestTrackings = _this._requestTrackings, statusSnapshot = _this._statusSnapshot, allTracked = _this._tracked, added = _this._added, updated = _this._updated, removed = _this._removed;
988
988
  if (!platformFrame || !requestTrackings.length) {