@galacean/engine-xr-webxr 1.3.19 → 1.3.20

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/browser.js CHANGED
@@ -1616,9 +1616,9 @@
1616
1616
  _inherits(XRReferenceImageLoader, Loader1);
1617
1617
  var _proto = XRReferenceImageLoader.prototype;
1618
1618
  _proto.load = function load(item, resourceManager) {
1619
- var _this = this;
1620
1619
  return new engine.AssetPromise(function(resolve, reject) {
1621
- _this.request(item.url, resourceManager, _extends({}, item, {
1620
+ resourceManager // @ts-ignore
1621
+ ._request(item.url, _extends({}, item, {
1622
1622
  type: "arraybuffer"
1623
1623
  })).then(function(data) {
1624
1624
  engine.decode(data, resourceManager.engine).then(function(referenceImage) {
@@ -1991,6 +1991,16 @@
1991
1991
  return this;
1992
1992
  };
1993
1993
  /**
1994
+ * Copy to vector3 like object.
1995
+ * @param target - Vector3 like object
1996
+ * @returns This Vector3 like object
1997
+ */ _proto.copyTo = function copyTo(target) {
1998
+ target.x = this._x;
1999
+ target.y = this._y;
2000
+ target.z = this._z;
2001
+ return target;
2002
+ };
2003
+ /**
1994
2004
  * Copy the value of this vector from an array.
1995
2005
  * @param array - The array
1996
2006
  * @param offset - The start offset of the array
@@ -3707,6 +3717,17 @@
3707
3717
  return this;
3708
3718
  };
3709
3719
  /**
3720
+ * Copy this quaternion to the specified quaternion.
3721
+ * @param target - The specified quaternion
3722
+ * @returns This specified quaternion
3723
+ */ _proto.copyTo = function copyTo(target) {
3724
+ target.x = this._x;
3725
+ target.y = this._y;
3726
+ target.z = this._z;
3727
+ target.w = this._w;
3728
+ return target;
3729
+ };
3730
+ /**
3710
3731
  * Copy the value of this quaternion from an array.
3711
3732
  * @param array - The array
3712
3733
  * @param offset - The start offset of the array
@@ -5228,6 +5249,15 @@
5228
5249
  return this;
5229
5250
  };
5230
5251
  /**
5252
+ * Copy to vector2 like object.
5253
+ * @param target - Vector2 like object
5254
+ * @returns This Vector2 like object
5255
+ */ _proto.copyTo = function copyTo(target) {
5256
+ target.x = this._x;
5257
+ target.y = this._y;
5258
+ return target;
5259
+ };
5260
+ /**
5231
5261
  * Copy the value of this vector from an array.
5232
5262
  * @param array - The array
5233
5263
  * @param offset - The start offset of the array
@@ -5574,6 +5604,17 @@
5574
5604
  return this;
5575
5605
  };
5576
5606
  /**
5607
+ * Copy to vector4 like object.
5608
+ * @param target - Vector4 like object
5609
+ * @returns This Vector4 like object
5610
+ */ _proto.copyTo = function copyTo(target) {
5611
+ target.x = this._x;
5612
+ target.y = this._y;
5613
+ target.z = this._z;
5614
+ target.w = this._w;
5615
+ return target;
5616
+ };
5617
+ /**
5577
5618
  * Copy the value of this vector by an array.
5578
5619
  * @param array - The array
5579
5620
  * @param offset - The start offset of the array